43

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?

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

1 Answer 1

50

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.