# vertical alignment of the equation label in amsmath

I have an equation which is almost as long as the linewidth of my document. Hence, the equation number is moved into the next line. Normally this is totally fine for me. However, I have one equation which includes an underbrace and therefore, there is quite lot of space within the equation. Look at the following minimal example:

\documentclass[conference]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{align}
aaa & = -\underbrace{bbbbbbbb\frac{cccccc}{dddddd\frac{den}{DE}}}_{=\frac{x}{y}} + zzzzz-zzzzzzzz+zzzz \label{eq:induced_amplitude_change}
\end{align}
\lipsum[1]
\end{document}


There would be enough space to move the label a little bit higher. Since I need to get rid of one or two lines in my whole document, this would help me a lot. Does anybody know how to achieve this?

• amsmath tries its best but also provides \raisetag{length} to adjust the vertical position of a tag. Aug 17 '17 at 12:27

It would be better to split the equation over two lines.

\documentclass[conference]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
$$aaa = -\underbrace{bbbbbbbb\frac{cccccc}{dddddd\frac{den}{DE}}}_{=\frac{x}{y}} + zzzzz-zzzzzzzz+zzzz \label{eq:induced_amplitude_change}$$
\lipsum[1]
\begin{gather}\raisetag{5ex}
aaa  = -\underbrace{bbbbbbbb\frac{cccccc}{dddddd\frac{den}{DE}}}_{=\frac{x}{y}} + zzzzz-zzzzzzzz+zzzz \label{eq:induced_amplitude_change2}
\end{gather}
\lipsum[1]
\begin{multline}
aaa  = -\underbrace{bbbbbbbb\frac{cccccc}{dddddd\frac{den}{DE}}}_{=x\mathrel/ y} \\
+ zzzzz-zzzzzzzz+zzzz \label{eq:induced_amplitude_change3}
\end{multline}
\end{document}


• as I said, I rather have too many lines, that's why I try to squeeze everything rather than extend it. \raisetag{} actually did its job.
– bene
Aug 17 '17 at 14:33
• It doesn't work in OP's align environment, either. but thanks for pointing out that it works in gather. But either one uses a single equation, in which case gather causes spacing issues, or one has multiple equations, in which case the problem doesn't arise.
– JPi
Aug 17 '17 at 14:38
• It doesn't for me.... hmmmm.
– JPi
Aug 17 '17 at 14:44
• OK, now I'm puzzled. If I take the original question and simply add \raisetag{2ex} it works. I've got amsmath 2016/03/10 v2.15b and IEEEtran 2015/08/26 V1.8b. Aug 17 '17 at 14:54
• I can't update the installation on my work computer but copying the newest version in the local folder (and renaming it just to be sure) still works for me... And it works also if I copy-paste your code and change the second equation into gather. Aug 17 '17 at 15:16