von localghost » Fr 3. Mai 2013, 17:23
Patrick1990 hat geschrieben:Ich dachte, das reicht so, […]
Nicht denken, wissen.
Um die Zeilen brauchbar untereinander zu schreiben, kannst Du eine mathematische Umgebung von
amsmath benutzen.
\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{
adieresis={ä},
germandbls={ß}
}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage{mathtools} % lädt »amsmath«
\begin{document}
\begin{tikzpicture}[
->,
>=stealth',
shorten >=1pt,
auto,
node distance=2cm,
state/.style=state with output
]
\node[state](Z_0){
$Z_0$
\nodepart{lower}{
\(
\begin{aligned}
y_l &= x_s, \\
y_r &= 0
\end{aligned}
\)
}
};
\node[state]at(10,0)(Z_1){
$Z_1$
\nodepart{lower}{
\(
\begin{aligned}
y_l &= 0, \\
y_r &= x_s
\end{aligned}
\)
}
};
\path[every node/.style={font=\Large}]
(Z_0) edge[bend left] node {$x_l$} (Z_1)
edge[loop above] node{$\overline{x}_l$} (Z_0)
(Z_1) edge[bend left] node {$x_r$} (Z_0)
edge[loop above] node{$\overline{x}_r$} (Z_1);
\end{tikzpicture}
\end{document}
[quote="Patrick1990"]Ich dachte, das reicht so, […][/quote]
Nicht denken, wissen.
Um die Zeilen brauchbar untereinander zu schreiben, kannst Du eine mathematische Umgebung von [url=http://ctan.org/pkg/amsmath]amsmath[/url] benutzen.
[code]\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{
adieresis={ä},
germandbls={ß}
}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage{mathtools} % lädt »amsmath«
\begin{document}
\begin{tikzpicture}[
->,
>=stealth',
shorten >=1pt,
auto,
node distance=2cm,
state/.style=state with output
]
\node[state](Z_0){
$Z_0$
\nodepart{lower}{
\(
\begin{aligned}
y_l &= x_s, \\
y_r &= 0
\end{aligned}
\)
}
};
\node[state]at(10,0)(Z_1){
$Z_1$
\nodepart{lower}{
\(
\begin{aligned}
y_l &= 0, \\
y_r &= x_s
\end{aligned}
\)
}
};
\path[every node/.style={font=\Large}]
(Z_0) edge[bend left] node {$x_l$} (Z_1)
edge[loop above] node{$\overline{x}_l$} (Z_0)
(Z_1) edge[bend left] node {$x_r$} (Z_0)
edge[loop above] node{$\overline{x}_r$} (Z_1);
\end{tikzpicture}
\end{document}[/code]