Seite 1 von 1

Ausrichtung in alignat - Umgebung

Verfasst: Mo 28. Dez 2015, 22:51
von Maik87
Guten Tag,

Ich habe schon einige Versuche durch andere Foreneinträge hinter mir, aber schaffe es leider nicht im folgenden Beispiel die linke Seite der Gleichungen an das Gleichheitszeichen zu rücken. Kann mir jemand eine elegante Lösung zeigen?
\documentclass{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{amsmath}		
\usepackage{framed}
\begin{document}

\section*{Differentiationsregeln}
\begin{framed}
\begin{alignat*}{2}
&\textnormal{Produktregel:} \left(u \cdot v \right)' &&= \,u' \cdot v +u \cdot v' \\
&  \left(u \cdot v \cdot w \right)'	&&= \, u' \cdot v \cdot w + u \cdot v' \cdot w + u \cdot v \cdot w' \\
&\textnormal{partielle Integration:} \int u' \cdot v \, \mathrm dx &&= u \cdot v - \int u \cdot v' \, \mathrm dx \\
\\
\hline
\\
&\textnormal{Quotientenregel:} \left( \frac{u}{v} \right)' &&= \frac{u' \cdot v - u \cdot v'}{v^2} \\
\\
\hline
\\
&\textnormal{Kettenregel:} \left(y(x(t))\right)' &&= \frac{\mathrm dy}{\mathrm dt} = \frac{\mathrm dy}{\mathrm dx} \cdot \frac{\mathrm dx}{\mathrm dt} = y'(x(t)) \cdot x'(t) \\
&\textnormal{Substitutionsregel:}  \int f(x)\, \mathrm dx &&= \int f(g(t)) \cdot g'(t)\, \mathrm  dt \hspace{10pt} \textnormal{, dabei ist} \begin{cases}  x &= g(t) \\ \mathrm dx &= g'(t) \mathrm dt \end{cases}
\end{alignat*}
\end{framed}
\end{document}

Verfasst: Mo 28. Dez 2015, 23:12
von Johannes_B
Herzlich Willkommen im Forum, schönes Minimalbeispiel.


Ich würde hier die Tabelle des Mathemodus nutzen, array.
\documentclass{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{amsmath}      
\usepackage{framed}
\begin{document}

\section*{Differentiationsregeln}
\begin{framed}
	\[
	\begin{array}{rl}
		\textnormal{Produktregel:} \left(u \cdot v \right)' &= \,u' \cdot v +u \cdot v' \\
		  \left(u \cdot v \cdot w \right)'   &= \, u' \cdot v \cdot w + u \cdot v' \cdot w + u \cdot v \cdot w' \\
		\textnormal{partielle Integration:} \int u' \cdot v \, \mathrm dx &= u \cdot v - \int u \cdot v' \, \mathrm dx \\
		\\
		\hline
		\\
		\textnormal{Quotientenregel:} \left( \frac{u}{v} \right)' &= \frac{u' \cdot v - u \cdot v'}{v^2} \\
		\\
		\hline
		\\
		\textnormal{Kettenregel:} \left(y(x(t))\right)' &= \frac{\mathrm dy}{\mathrm dt} = \frac{\mathrm dy}{\mathrm dx} \cdot \frac{\mathrm dx}{\mathrm dt} = y'(x(t)) \cdot x'(t) \\
		\textnormal{Substitutionsregel:}  \int f(x)\, \mathrm dx &= \int f(g(t)) \cdot g'(t)\, \mathrm  dt \hspace{10pt} \textnormal{, dabei ist} \begin{cases}  x &= g(t) \\ \mathrm dx &= g'(t) \mathrm dt \end{cases}
	\end{array}
\]
\end{framed}
\end{document}
Den \mathrm solltest du besser ein ordentliches Argument verpassen.

Verfasst: Di 29. Dez 2015, 00:16
von Maik87
Vielen Dank für die schnelle Hilfe und für den Tipp mit den \mathrm-Argumenten.

so einfach kann's gehen 8)
In meinem Dokument ist das ganze in eine 2-Spaltige Seite eingebunden und die horizontalen Linien ragten über den Rahmen hinaus. Das war im Minimalbeispiel leider nicht aufgefallen. Ich habe nun mein gewünschtes Layout und auch das Linien-Problem gelöst.

Für Interessierte auf der Suche nach ihrer eigenen Problemlösung stelle ich meinen Code nochmal hier rein.
\documentclass{scrartcl} 
\usepackage[ngerman]{babel} 
\usepackage{amsmath}       
\usepackage{framed}
\usepackage{booktabs}
\begin{document} 

\section*{Differentiationsregeln} 
\begin{framed}
   \[ 
   \begin{array}{@{}lrl@{}} 
\textnormal{Produktregel:}& \left(u \cdot v \right)' &= \,u' \cdot v +u \cdot v' \\
&\left(u \cdot v \cdot w \right)'	&= \, u' \cdot v \cdot w + u \cdot v' \cdot w + u \cdot v \cdot w' \\

\begin{array}{l} \textnormal{partielle} \\ \textnormal{Integration:}\end{array}& \int u' \cdot v \, \mathrm{dx} &= u \cdot v - \int u \cdot v' \, \mathrm dx \\
\\
\cmidrule(lr){1-3}
\\
\textnormal{Quotientenregel:}& \left( \frac{u}{v} \right)' &= \frac{u' \cdot v - u \cdot v'}{v^2} \\
\\
\cmidrule(lr){1-3}
\\
\textnormal{Kettenregel:}& \left(y(x(t))\right)' &= \frac{\mathrm{dy}}{\mathrm{dt}} = \frac{\mathrm{dy}}{\mathrm{dx}} \cdot \frac{\mathrm{dx}}{\mathrm{dt}} = y'(x(t)) \cdot x'(t) \\
\textnormal{Substitutionsregel:}&  \int f(x)\, \mathrm{dx} &= \int f(g(t)) \cdot g'(t)\, \mathrm{dt} \hspace{10pt} \textnormal{, dabei ist} \begin{cases}  x &= g(t) \\ \mathrm{dx} &= g'(t) \mathrm{dt} \end{cases}
\end{array} 
\] 
\end{framed}

\end{document}