1

I am new to latex. I need to write the following equation in latex.

enter image description here

I have tried following packages:-

\usepackage{amssymb}
\usepackage{amsmath}
   L1 \cap Li \neq \Phi

But i constantly get error and non of the symbols gets displayed. what am i doing wrong. (i am using XeLatex as there are both English and urdu Fonts in my article)

5
  • 2
    please show a complete 5 or 6 line document that you tried to generate that expression. Did you put the expression in math mode \[...\] Jun 26, 2015 at 20:52
  • 1
    It doesn't look like you are in math mode, you will need to put $ ... $ around your equation, or \( ... \). Try $\mathbf{L}_{1} \cap \mathbf{L}_{i} \neq \mathbf{\Phi}$
    – Au101
    Jun 26, 2015 at 20:55
  • Just seen @DavidCarlisle's post. \[ ... \] will also work, although that will enter a displayed maths environment. Use \[ ... \] for displayed maths and $ ... $ or \( ... \) for in-line maths
    – Au101
    Jun 26, 2015 at 20:55
  • 1
    \Phi is probably quite wrong and the symbol means the empty set instead. Jun 26, 2015 at 21:06
  • @HeikoOberdiek fair point that
    – Au101
    Jun 26, 2015 at 21:09

2 Answers 2

5

It works for me if I complete your code to create a minimal example:

\documentclass{article}
\usepackage{amssymb}
\usepackage{amsmath}

\begin{document}
\[
   L1 \cap Li \neq \Phi
\]
\end{document}

initial result

Admittedly, this isn't yet quite right because it does not look quite like the target set of symbols.

To obtain a subscript in a mathematical expression, just use L_{<subscript>}. To obtain the lowercase Greek letter, use \phi rather than \Phi.

\[
   L_1 \cap L_i \neq \phi
\]

second pass

EDIT

In light of Heiko Oberdiek's comment, for the final symbol, I'm not entirely clear which one you want but I suspect that Heiko may be right. In any case, here's a selection to choose from:

\[
   \phi \Phi \varphi \emptyset \varnothing
\]

Greek letters and empty sets

2
  • 2
    I think, it's neither \Phi or \phi but the empty set. Jun 26, 2015 at 21:03
  • 1
    @HeikoOberdiek Thanks. I thought I'd provide a choice, just in case... ;).
    – cfr
    Jun 26, 2015 at 21:24
1

Not a direct answer but I have always found this to be exceedingly useful when creating complex equations or text with extraordinary symbols.

[http://www.ctan.org/tex-archive/info/symbols/comprehensive/[1]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .