In order to fix that, you will have to give the \left\{
its counterpart which would be \right.
on the same line. The second line would need a \left. ... \right\}
.
As you do not need auto-sized brackets here, I would leave it all away.
Here is your example and my version:
% arara: pdflatex
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
R = \left\{(S_1,S_1), (S_1,S_4), (S_4,S_4), (S_4,S_1), (S_2,S_2), (S_2,S_3), (S_3,S_3), (S_3,S_2), (S_0,S_0),\right. \\
\left.(S_0, S_5), (S_5,S_5) , (S_5,S_0)\right\}
\end{align}
\begin{equation}
\begin{split}
R = \{(S_1,S_1), (S_1,S_4), (S_4,S_4), (S_4,S_1), (S_2,S_2), (S_2,S_3), (S_3,S_3),\\ (S_3,S_2), (S_0,S_0), (S_0, S_5), (S_5,S_5) , (S_5,S_0)\}
\end{split}
\end{equation}
\end{document}
And here is a screen-shot of the second version (as the first version exceeds all possible limits...)
The cases
environment, provided by the amsmath
package, is ready-made for your math expression. Note that the cases
environment renders each line in text-style math mode (aka inline math mode). If you don't need to conserve space, consider using a dcases
environment instead: It displays the fractional term in display-style math mode and also increases the space between rows.
Either way, the entire expression, starting with H=
, has to be in math mode. This can be achieved by placing it in a \[ ... \]
group.
\documentclass[11pt]{article}
\usepackage{mathtools} % loads 'amsmath' package, provides 'dcases' env.
\begin{document}
Using a \texttt{cases} environment:
\[
H= \begin{cases}
0 & \text{if $n$ even, $n\neq2$}\\
\frac{5\pi + 2n\pi + 5\pi - 2n\pi}{\pi^2 (4 - n^2)} & \text{if $n$ odd}
\end{cases}
\]
\bigskip
Using a \texttt{dcases} environment:
\[
H= \begin{dcases}
0 & \text{if $n$ even, $n\neq2$}\\
\frac{5\pi + 2n\pi + 5\pi - 2n\pi}{\pi^2 (4 - n^2)} & \text{if $n$ odd}
\end{dcases}
\]
\end{document}
Addendum -- As @daleif has observed in a comment, the dcases*
environment may also be of interest. It differs from the dcases
environment in that the material after the &
character is automatically placed in text mode, obviating the need for the \text{...}
wrappers. Using a dcases*
environment, one could write the solution as follows:
\[
H= \begin{dcases*}
0 & if $n$ even, $n\neq2$\\
\frac{5\pi + 2n\pi + 5\pi - 2n\pi}{\pi^2 (4 - n^2)} & if $n$ odd
\end{dcases*}
\]
Best Answer
Use braces:
Note that
\Tilde
is provided byamsmath
, but it just does the same thing as\tilde
(it exists for back compatibility).You get the same output with
tensor
: