3

From this question we know that aligning the equal signs in

A = B = C
D = E = F

is done by using alignat, not align.

If we have instead

A = W + M = C
B = i + \iota = D

how can the equal signs as well as the + be aligned?

3

The important rule for all *align* environments is rlrlrlrl…, meaning that alternating columns are left-, right-, left-, right-, …-aligned.

Such basic question as you posted can be easily written in many ways (#1 = #2, #3 = #4):

Code (MWE)

\documentclass{article}
\usepackage{amsmath}
\begin{document}


\begin{alignat*}{3} % #1
A & = W & {}+{} & M     && = C \\
B & = i & {}+{} & \iota && = D
\end{alignat*}
\begin{alignat*}{3} % #2
A & = W && {} + M     && = C \\
B & = i && {} + \iota && = D
\end{alignat*}

\begin{alignat*}{3} % #3
A & ={} & W +{} & &     M & = C \\
B & =   & i +{} & & \iota & = D
\end{alignat*}
\begin{alignat*}{3} % #4
A & ={} & W & +{} &     M & = C \\
B & =   & i & +{} & \iota & = D
\end{alignat*}
\end{document}

Output

Left-aligned (#1 and #2)

left aligned (#1 and #2)

Right-aligned (#3 and #4)

right aligned (#3 and #4)

  • Is there any center-aligned option? – Unknown123 Apr 10 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.