How do I produce the following in align environment?
\begin{eqnarray*}& & abcd \\
&=& defg\\
&=& hijk
\end{eqnarray*}
I try
\begin{align*}& abcd \\
&= defg\\
&= hijk
\end{align*}
But the result is not what I wanted.
|
How do I produce the following in
I try
But the result is not what I wanted. |
|||
|
|
|
To avoid guessing about the space, you can use
|
|||
|
|
|
Here you've got the fifth solution, which shows you that what you want to do is indeed slightly tricky in
The trick: If you have the |
|||
|
|
|
|||
|
|
|
in this special case you can use the order
|
|||
|
|
|
A quick and dirty solution would be
Obviously, you can increase the whitespace as you might wish. |
|||
|
|
|
This is sort of cheating, but in your example document, the following also works:
Why? Because I know that a, d, and h all have the same width. This trick is surprisingly generalizable. Another solution gives virtually identical results as
This works because the
as in this answer: Could I change the default column sep of `aligned` from \quad to \qquad globally?. Personally, I would go with Hendrik Vogt's method, though. |
|||
|
|