# Align multiple equations with text

I have 4 equations (2 on each line) separated by text. I cannot get the equal signs (red box) to align. Here is the code to recreate the image:

\begin{equation*}
\end{equation*}
where
\begin{equation*}
\end{equation*}


I have tried with alignedat but cannot find a way to include the text "where" to be left justified

    \begin{equation*}
\begin{alignedat}{2}
\end{alignedat}
\end{equation*}


You can use alignat* and the command \intertext or shorintertext of mathtools:

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\begin{alignat*}{2}
\shortintertext{where}
\end{alignat*}

\end{document}

• Why not simply align? No need to specify the horizontal spacing. – egreg Apr 10 '20 at 12:16
• @egreg: Yes, I should have used align. I used alignat only because alignedat was used in the question... – F. Pantigny Apr 10 '20 at 12:19