I'm looking for something synonymous to tabbing
, but for math mode.
I read that alignat*
should do the trick, but this behaves differently it seems. For example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat*}{2}
S_4^{t} &= \{&\langle rdi, r12, rax' \rangle \mid \langle rdi, r12, rax \rangle \in S_4~\wedge \\
&& rax' = \{ rax \mid rax > 0 \} \}\\
\end{alignat*}
\end{document}
The second line appears to be right aligned, whereas I would like the &
markers to be aligned with each other and then all text left aligned (like in tabbing
).
Is anyone able to fix this code, or suggest an alternative.