# How Can I Avoid Writing “\noindent” After Equations [duplicate]

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:

\documentclass{article}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

-

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 ## 4 Answers Yet another version: If a, b and c are such that $a^2 + b^2 = c^2,$ then, does it follow that ...  - 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 c?  And also $$ should be used only for TeX and not LaTeX.

-

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]

\startformula
...
\stopformula

This is not indented


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

-

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
$c$?

-
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