5

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}
milcak
  • 187

4 Answers4

10

Yet another version:

If $a$, $b$ and $c$ are such that 
\[
    a^2 + b^2 = c^2,
\]
then, does it follow that ...
Jukka Suomela
  • 20,795
  • 13
  • 74
  • 91
6

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.

2

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$?
Yossi Gil
  • 15,951
  • 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
  • 1
    @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
2

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.

Aditya
  • 62,301