I am using the \begin{align*} command to structure equations such that they align along the first equal sign. I want to be able to change from one equal sign to another, such that I centre equations a to w on the first equal sign, and then centre the z equation on the second equal sign. Attached is the output I'm getting. Any pointers?
\begin{align*}
a&=b\\
c&=d\\
e&=f+g+h+j=w\\
x&=y\\
z&=0\\
\end{align*}
I would like to be able to align the first three equations on the first equal sign and the last two equations on the second equal sign like so:
a=b
c=d
e=f+g+h+j=w
x=y
z=0
alignedat
. something useful might be found here: tex.stackexchange.com/q/200813/579