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.

Below is a MWE. While the pdf output seems ok, TeXniccenter displays error in the equation line. Not able to understand what's wrong. Happens even when I put in the code to close the curly brackets.

\documentclass{article}%

\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}
\usepackage{comment}

\begin{document}
$\mu(S_{QX})=N$ where $S_{QX}=\left\{c\in N \lvert $U_{c}(X) > U_{c}(Q)$\} $ 
\end{document}
share|improve this question
    
Welcome to TeX.sx! We don't usually start questions with a greeting, so I've edited the question slightly. –  Joseph Wright Oct 1 '11 at 8:46
add comment

1 Answer

up vote 6 down vote accepted

Braces which opened by \left must be closed with \right in the same math-part/line.

The next problem is the underscore. It is only available in mathmode.

To avoid combination with left/right you can influence the size via \big or \bigg etc. For more details see mathmode by Herbert Voß.

\documentclass{article}%

\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}
\usepackage{comment}

\begin{document}
$\mu(S_{QX})=N$ where $S_{QX}=\left\{c\in N \lvert U_{c}(X) > U_{c}(Q)\right\} $ 


\end{document}
share|improve this answer
    
Thank you Marco, the math mode link is extremely useful :-). –  Abhimanyu Arora Oct 1 '11 at 9:10
add comment

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.