I want to align some equations. One equation has some text that I want pushed back to the margin. I tried
\begin{align*}
\text{Text: } \hspace{\stretch{1}} \text{more text} x^2 &=y\\
m^2 &= 2\\
\end{align*}
which gives
Text: more textx2 = y
m2 = 2
but what I want is this:
Text: more textx2 = y
m2 = 2
The hspace stretch combination works great on lines that aren't within an align
block. I don't want to add a specific size (like hspace{10em}
) since I may have to edit the line a bit later, and I do need to keep the pushed text ("Text") on the same line. Any ideas?
Best Answer
We will understand your needs better through a MWE. With
amsart
your needs will be met like this: