For instance, how do I add a break after the first line in
\[
a + b = c // what should I add here?
a = c - b
\]
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe \[...\]
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:
gather*
and align*
.\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}
align
, it shows everything on the same line. My code: pastebin.com/FwwSmiCp Result: image description
Jan 16, 2017 at 9:46
In case gather
is not an option, for example, an imported command where everything is in math mode, consider make them a single-columned matrix without showing the symbol, then you can use \\
.
Code:
\[
\begin{array}{c}
a + b = c \\ % just use \\
a = c - b
\end{array}
\]
array
environment, the content is (by default) in \textstyle
rather than in \displaystyle
. Hence, for example, a fraction written with \frac{}{}
will be smaller than in an usual display math environment, and the limits of a sum or of an integral will be displayed differently. But one could simply add a \displaystyle
command in cells where this behavior should be changed.
Why not use two modes.
\[
a + b = c
\]
\[
a = c - b
\]