Take the 2-minute tour ×
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.

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

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

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 
$\begin{cases}$
 \textit{$dz_{f_{1}}$} $\supseteq$ \textit{$dz_{f_{2}}$} \\
 \textit{$outPorts_{f_{1}}$} $\in$ \textit{$outPorts_{f_{2}}$}
$\end{cases}$

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

Any help ?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Shouldn't

\[
f_{1} \succ f_{2} \text{ if }
\begin{cases}
 dz_{f_{1}} \supseteq dz_{f_{2}} \\
 \textit{outPorts}_{f_{1}} \in \textit{outPorts}_{f_{2}}
\end{cases}
\]

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

\usepackage{amsmath}

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 
\begin{equation*}
  \begin{cases}
   dz_{f_{1}} \supseteq dz_{f_{2}}
 \\
 \textup{outPorts}_{f_{1}} \in \textup{outPorts}_{f_{2}}
 \end{cases}
\end{equation*}

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

share|improve this answer
1  
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

 
discard

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.