[Tex/LaTex] How to set the numbering of an equation set to align bottom

equations

How to set the numbering of an equation set to align bottom+right?

For example, in following code. The default numbering will be placed on the same row as S. But is it possible to change it to row 3 (the P = ??? row)?

\begin{equation}
\begin{split}
A &= 0011 0000 0_2\\
S &= 1101 0000 0_2\\
P &= 0000 1100 0_2
\end{split}
\end{equation}

Best Answer

Use the tbtags option to the amsmath package:

Sample output

tb stands for "top or bottom"; when the equation numbers are on the right the tag will be placed at the bottom of the block, when the numbering is on the left, the tags will be placed at the top. The opposite option is centertags. The split environment is defined by the amsmath package, but if you load mathtools instead you can write \usepackage[tbtags]{mathtools} which will pass the option on to amsmath when mathtools loads it.

\documentclass{article}

\usepackage[tbtags]{amsmath}

\begin{document}

\begin{equation}
  \begin{split}
    A &= 0011 0000 0_2\\
    S &= 1101 0000 0_2\\
    P &= 0000 1100 0_2
  \end{split}
\end{equation}

\end{document}