# Multiline equation without number

I am trying to have a multiline equation without any numbering, even not in the last one.

\begin{align}
a = x \nonumber \\
b = y
\end{align}


However, this is producing a line number in the last line, which would like not to happen.

I have also tried the equation and equation* environments with no luck.

Thanks.

P.S. What' the markup for rendering LaTeX code. Can't seem to be able to find it in the help page?

• erh, align* should be obvious. There is no markup for rendering LaTeX code. Only source code Jun 19, 2013 at 15:33
• It might be a good to start reading the manual for the amsmath package and browsing align. Jun 19, 2013 at 18:06

\documentclass{article}
\usepackage{amsmath} % for the "align" and "align*" environments
\begin{document}
\begin{align*} % the "starred" equation environments produce no equation numbers
a &= b\\  % if no alignment is needed, use the gather* instead of the align* env.
&= c
\end{align*}
\end{document}


If you do use the unstarred version, remember that \nonumber operates on only one line, so to omit numbers entirely, \nonumber (or \notag) must be input for every line.