TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

Possible Duplicate:
How can I get rid of indentation after an equation?

Just a quick question:

For clarity, in my LaTeX files I always leave a blank line after equations:

$$ equation $$

<- empty line ->

Text continued.

This automaticaly indents the next line. I know I can use the \noindent command to correct this, but it is rather tedious after every equation. Is there some universal command for this?

These are the packages I use:

share|improve this question

marked as duplicate by lockstep, Lev Bishop, Caramdir, TH., Matthew Leingang Feb 28 '11 at 2:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Not direct related your question but you shouldn't use $$ ... $$ with LaTeX but \[ ... \] instead. See "Why is [ … ] preferable to $$?" for an explanation. – Martin Scharrer Feb 27 '11 at 20:31
What are the advantages of \[ \]? – milcak Feb 27 '11 at 20:33
See my updated comment above. The \ in \[ \] were removed by the wiki syntax :-( – Martin Scharrer Feb 27 '11 at 20:38
Thank you Thank you – milcak Feb 27 '11 at 20:40
I agree with the duplicate. milcak: can you take a look at the question and answers that lockstep linked to? They may answer your question. If so, we'll close this one as a duplicate to make it easier for others searching this site. If not, please edit your question to explain why not. Thanks! – Loop Space Feb 27 '11 at 21:11
up vote 8 down vote accepted

Yet another version:

If $a$, $b$ and $c$ are such that 
    a^2 + b^2 = c^2,
then, does it follow that ...
share|improve this answer
This is my favorite convention. Then the equation "looks" displayed. – Matthew Leingang Feb 28 '11 at 2:10

with empty lines you get wrong vertical spacing. Uses always something like

If $a$, $b$ and $c$ are such that 
\[  a^2 + b^2 = c^2, \] 
then, does it follow that there is triangle whose sides' length is $a$, $b$ and

And also $$ should be used only for TeX and not LaTeX.

share|improve this answer

In ConTeXt, like almost all top level environments, \setupformulas and \defineformula accept a indentnext option that control the indentation of the next paragraph.

With \setupformulas[indentnext=no]


This is not indented

LaTeX's default behavior is equivalent to indentnext=auto. See ConTeXt wiki for more details.

share|improve this answer

How about using the following scheme, which makes the input clearer:

If $a$, $b$ and $c$ are such that \[
  a^2 + b^2 = c^2, 
\] then, does it follow that there is triangle whose sides' length is $a$, $b$ and
share|improve this answer
Yes thank you that is better. But I would still prefer something that would keep the code for the entire equation in one line. – milcak Feb 27 '11 at 20:35
@milcak: If you want to add an (almost) empty code line after your equations you can just place a single % in it, which avoids that it is taken as the start of a new paragraph. – Martin Scharrer Feb 27 '11 at 20:43
@milcak: You still get the equation in one line. The \[ \] is markup, not equation. – Yossi Gil Feb 27 '11 at 20:59

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