[Tex/LaTex] Multiline equation without number

equations

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?

Best Answer

How about:

\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.

Related Question