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've got the following code, but I dont know why it creates line breaks in the equation

\begin{enumerate}
  \item My Equation 
  \begin{equation}
      P$\wedge$S \equiv \emph{False} $\implies$ L : lineBreaks
  \end{equation}
\end{enumerate} 

Output:

Unwanted line breaks

share|improve this question
1  
There should be no $ in an equation environment. And no \\ either. Please, state precisely what's the output you're expecting. –  egreg Dec 17 '12 at 18:52
    
@egreg Oh!, I need to define escape key for the equation? –  asghar ashgari Dec 17 '12 at 18:54
    
What you put in an equation is already "between $". And if you want to split it between different lines you should look at amsmath's environments (align, gather, split, multline,... ). –  Manuel Dec 17 '12 at 18:59
    
@egreg and Manuael thanks for the comments and tips! I added the working version. –  asghar ashgari Dec 17 '12 at 19:01
    
@Manuel thanks for pointing out!, just realised this fact! :P –  asghar ashgari Dec 17 '12 at 19:02

1 Answer 1

The equation should be written like this:

\begin{equation}
     P \wedge S \equiv \textit{False}   \implies  L : \textit{lineBreaks}
\end{equation}

output

share|improve this answer
3  
I would make the equation read as follows: P\wedge S \equiv \textit{False} \implies L : \textit{lineBreaks}. That way, you'll get better kerning of the letters in "False" and "lineBreaks". –  Mico Dec 17 '12 at 19:34
    
@Mico thanks, updated it. –  asghar ashgari Dec 18 '12 at 13:05

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.