In this MWE, I need to preserve the equations alignment at both prescribed positions (i.e. equal signs and \text{}
) while controlling the columns spacing (i.e. \qquad
).
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\begin{document}
\begin{alignat}{2}
%
a &= 1 & \qquad &\text{in } \Omega\\
b &= 2 &&\text{on } \Gamma_1\\
%
\shortintertext{and}
%
\begin{alignedat}{2}
c &= 3 && \text{on } \Gamma_2\\
d &= 4 && \text{on } \Gamma_3\\
\end{alignedat}
%
\end{alignat}
\end{document}
alignedat
?