This is what I have so far:
Formatting in section 1 is a joke. I can't even read the cases. Under section 2 I cheated with a manual line break \\
and a parbox
. Still the result disgusts me.
What I would like to achieve is, that the equation number stays in front of the equation. Too long equation are broken automatically after \textwidth
has been reached and that the cases text starts right after the comma and behaves like normal text in regard to line breaks and text length. I don't know if other math environments are better suited for this (I am pretty used to align
) and if i can somehow control the cases environment better.
Small sidenote: When breaking the equation manually before the \right]
it won't get typesetted anymore
\documentclass{article}
\usepackage[leqno]{amsmath}
\begin{document}
\section{Unformated Solution}
\begin{align}
E_{h,betr} =
\begin{cases}
\left[ \left(Q_{h,li0} + Q_{h,li} \times GHZ \right) + f_{h,rech} + E_{e,hilf,spez} \times f_{e,prim} \right] \times A_{ebf} \times f_{h,red}, &wenn Lebenszyklus des Gebäudes kein Vielfaches des Lebenszyklus der Heizung ist\\
\left[ \left(Q_{h,li0} + Q_{h,li} \times GHZ \right) + f_{h,rech} + E_{e,hilf,spez} \times f_{e,prim} \right] \times A_{ebf} \times f_{h,red} + E_{h,erst} + E_{h,ent}, wenn Lebenszyklus des Gebäudes ein Vielfaches des Lebenszyklus der Heizung ist
\end{cases}
\end{align}
\section{Formated Solution}
\begin{align}
E_{h,betr} =
\begin{cases}
\left[ \left(Q_{h,li0} + Q_{h,li} \times GHZ \right) + f_{h,rech} + E_{e,hilf,spez} \times f_{e,prim} \right] \times \\ A_{ebf} \times f_{h,red},
&\parbox[t]{0.3\textwidth}{wenn Lebenszyklus des Gebäudes kein Vielfaches des Lebenszyklus der Heizung ist} \\
\left[ \left(Q_{h,li0} + Q_{h,li} \times GHZ \right) + f_{h,rech} + E_{e,hilf,spez} \times f_{e,prim} \right] \times \\ A_{ebf} \times f_{h,red} + E_{h,erst} + E_{h,ent},
&\parbox[t]{0.3\textwidth}{wenn Lebenszyklus des Gebäudes ein Vielfaches des Lebenszyklus der Heizung ist}
\end{cases}
\end{align}
\end{document}