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.

For instance, how do I add a break after the first line in

\[
    a + b = c // what should I add here?
    a = c - b
\]
share|improve this question

1 Answer 1

up vote 40 down vote accepted

The \[...\] is used to typeset a single equation, not multiple equations.

You need to use an environment that allows for multiple equations. One way is to use gather, but I normally use align, both from the amsmath package:

enter image description here

Notes:

  • With display math environments if you leave blank lines in between you get additional vertical spacing and the possibility of a page break between a paragraph and following display.
  • If you don't want the equations numbered use the starred versions of the environments: gather* and align*.
  • A really good reference is Herbert Voss's comprehensive review of mathematics in (La)TeX.

Code:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
    a + b = c \\ 
    a = c - b
\end{gather}
%
With the align environment you can align equations:
%
\begin{align}
    a + b &= c \\
    a &= c - b
\end{align}
\end{document}
share|improve this answer
    
should there be a blank line immediately before your align environment? –  cmhughes Feb 29 '12 at 3:19
    
@cmhughes: Thanks. Have corrected and made a note of it in the solution. –  Peter Grill Feb 29 '12 at 3:35

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.