TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am facing a problem while displaying a mathematical expression. The code looks like this :

\textit{$f_{1}$} $\succ$ \textit{$f_{2}$} if 
 \textit{dz_{f_{1}}} \supseteq \textit{dz_{f_{2}}} \\
 \textit{outPorts_{f_{1}}} \in \textit{outPorts_{f_{2}}}

I am not getting what is wrong in this code. It says missing $ inserted. Then I tried keeping the scope of $ symbols minimal by writing this :

\textit{$f_{1}$} $\succ$ \textit{$f_{2}$} if 
 \textit{$dz_{f_{1}}$} $\supseteq$ \textit{$dz_{f_{2}}$} \\
 \textit{$outPorts_{f_{1}}$} $\in$ \textit{$outPorts_{f_{2}}$}

Still I am getting the same error on the lines within the case statement.

Any help ?

share|improve this question
up vote 5 down vote accepted


f_{1} \succ f_{2} \text{ if }
 dz_{f_{1}} \supseteq dz_{f_{2}} \\
 \textit{outPorts}_{f_{1}} \in \textit{outPorts}_{f_{2}}

be what you're looking for? Notice that it requires


in the preamble.

You seem to be using math mode in a wrong way.

share|improve this answer
Yes, I have used that package. Thanks for the answer. Accepting it as I am using this approach. – gaganbm May 30 '13 at 10:24

Sorry, but why are you using \textit{$f_{2}$} etc, there is no reason for this at all. Write

$f_{1} \succ f_{2}$ if 
   dz_{f_{1}} \supseteq dz_{f_{2}}
 \textup{outPorts}_{f_{1}} \in \textup{outPorts}_{f_{2}}

Sorry for saying this, but please consult a LaTeX manual.

share|improve this answer
Thanks! Yes, I need to go through the manual. I am a total beginner in this. – gaganbm May 30 '13 at 10:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.