PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : subequations alignat alignedat (align split)



Thesis
25-10-2014, 20:25
Hallo!


Im Zusammenhang mit ausgerichteten Formeln (alignat), die zusammengefasst (alignedat) und unternummeriert (subequations) werden sollten, hätte ich eine Frage.

Dazu zuerst ein MWE:


\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{subequations}\label{Eq:A}
\begin{alignat}{3}
& \begin{alignedat}{3}
& \text{A} && \qquad & x & = 1 \\
& \text{BBB} && \qquad & x + y + z & = 1
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{3}
& \text{C} && \qquad & y & = a + b + c + d + e + f + g + h + i + j \\
& \text{DDDDD} && \qquad & x + y + z & = a + b
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{3}
& \text{EEEEEEEEEE} && \qquad & a + b & = 1 \\
& \text{F} && \qquad & b & = 1 \\
& \text{G} && \qquad & c & = 1 + b
\end{alignedat}
\end{alignat}
\end{subequations}

\end{document}


Das Ergebnis entspricht fast meinen Wünschen.
Das Ziel wäre jedoch, nicht nur den Text (\text{X}) an einer gemeinsamen Linie auszurichten, sondern auch alle Formeln am Gleichheitszeichen auszurichten, damit alle sieben Gleichheitszeichen die gleiche horizontale Position besitzen.
Der Rest sollte gleich bleiben, nämlich die Unterteilung in drei vertikal nummerierte Unterformelgruppen mit je zwei bzw. drei Zeilen.

Die Frage ist also, ob man die &-Symbole, sprich die Ausrichtung, auch über mehrere Grenzen von aligned bzw. alignedat retten kann.

Das Verwenden von align anstatt alignat und/oder von aligned anstatt alignedat ist übrigens auch nicht besser:


\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{subequations}\label{Eq:A}
\begin{alignat}{3}
& \begin{aligned}
& \text{A} && \qquad & x & = 1 \\
& \text{BBB} && \qquad & x + y + z & = 1
\end{aligned}\\*[3.5mm]
%
& \begin{aligned}
& \text{C} && \qquad & y & = a + b + c + d + e + f + g + h + i + j \\
& \text{DDDDD} && \qquad & x + y + z & = a + b
\end{aligned}\\*[3.5mm]
%
& \begin{aligned}
& \text{EEEEEEEEEE} && \qquad & a + b & = 1 \\
& \text{F} && \qquad & b & = 1 \\
& \text{G} && \qquad & c & = 1 + b
\end{aligned}
\end{alignat}
\end{subequations}

\end{document}



\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{subequations}\label{Eq:A}
\begin{align}
& \begin{aligned}
& \text{A} && \qquad & x & = 1 \\
& \text{BBB} && \qquad & x + y + z & = 1
\end{aligned}\\*[3.5mm]
%
& \begin{aligned}
& \text{C} && \qquad & y & = a + b + c + d + e + f + g + h + i + j \\
& \text{DDDDD} && \qquad & x + y + z & = a + b
\end{aligned}\\*[3.5mm]
%
& \begin{aligned}
& \text{EEEEEEEEEE} && \qquad & a + b & = 1 \\
& \text{F} && \qquad & b & = 1 \\
& \text{G} && \qquad & c & = 1 + b
\end{aligned}
\end{align}
\end{subequations}

\end{document}



\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{subequations}\label{Eq:A}
\begin{align}
& \begin{alignedat}{3}
& \text{A} && \qquad & x & = 1 \\
& \text{BBB} && \qquad & x + y + z & = 1
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{3}
& \text{C} && \qquad & y & = a + b + c + d + e + f + g + h + i + j \\
& \text{DDDDD} && \qquad & x + y + z & = a + b
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{3}
& \text{EEEEEEEEEE} && \qquad & a + b & = 1 \\
& \text{F} && \qquad & b & = 1 \\
& \text{G} && \qquad & c & = 1 + b
\end{alignedat}\\*[3.5mm]
\end{align}
\end{subequations}

\end{document}


Die split-Umgebung kann ich übrigens nicht verwenden, da dort nur eine Ausrichtung erlaubt ist, ich hingegen benötige mehrere (Text gemeinsam links ausrichten, Gleichheitszeichen gemeinsam mittig ausrichten, Symbole links und rechts des Gleichheitszeichens jeweils so nah wie möglich an das Gleichheitszeichen heranschieben).

Hätte jemand eine andere, funktionierende Idee?

Besten Dank im Voraus,
Thesis

esdd
26-10-2014, 00:14
Hier ist ein Vorschlag, der aber etwas Handarbeit erfordert und \phantom sowie die beiden Befehle \mathrlap und \mathllap aus dem mathtools Paket verwendet:


\documentclass{article}
\usepackage{mathtools}% lädt auch amsmath

\begin{document}

\begin{subequations}\label{Eq:A}
\begin{align}
& \begin{alignedat}{2}
& \mathrlap{\text{A}}\phantom{\text{EEEEEEEEEE}}\qqu ad & x & = 1 \\
& \text{BBB} & x + y + z & = 1
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{2}
& \mathrlap{\text{C}}\phantom{\text{EEEEEEEEEE}}\qqu ad & y & = a + b + c + d + e + f + g + h + i + j \\
& \text{DDDDD} & x + y + z & = a + b
\end{alignedat}\\*[3.5mm]
%
& \begin{alignedat}{2}
& \text{EEEEEEEEEE}\qquad & \phantom{x + y + z }\mathllap{a + b} & = 1 \\
& \text{F} & b & = 1 \\
& \text{G} & c & = 1 + b
\end{alignedat}
\end{align}
\end{subequations}

\end{document}

Gruß
Elke

Thesis
26-10-2014, 12:10
Hallo Elke,
Fantastisch, besten Dank!
Viele Grüße, Thesis