I want to use the right side of an aligned environment to present the reason for the next line.
If the explanation requires more than one line the alignment fails.
This could be eye-balled by adding a horizontal space but there should be a better way.
How can this be fixed?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a + b &= \quad \text{short reason} \\
c + d &= \quad \text{a really long and} \\
&\phantom{=} \quad \text{complicated reason} \notag \\
e + f \text{.}
\end{align}
\end{document}
If you compile the above code you will see what I mean.
I can't figure out how to add compiled code to a question.
If you know how do add compiled code to the question, please do so.
Best Answer
One option is to use the
aligned
construct for the multi-line comments as below.