0

I would like to align equations from two different lines.

\documentclass[12pt]{article}
\begin{document}
$$ a = b +1 = c +2 = d +3$$
The quick brown fox jumps over the lazy dogs.
$$ a = b$$ 
\end{document}

This sample document centers the equations separately. I would like to have the math-mode symbols a = b to align vertically.

enter image description here

1 Answers1

2

Two 'equivalent' ways, effectively

\documentclass[12pt]{article}
\usepackage{mathtools}
\begin{document}
\begin{alignat*}{3}
   a &= b + 1   &{}= c + 2 &= d + 3 \\
   \shortintertext{The quick brown fox jumps over the lazy dogs.}
   a &= b   
\end{alignat*}

\begin{align*}
   a &= b + 1   = c + 2 = d + 3 \\
   \shortintertext{The quick brown fox jumps over the lazy dogs.}
   a &= b   
\end{align*}

\end{document}

enter image description here