Seite 1 von 1
nodepart-Befehl DRINGEND!!!
Verfasst: Do 2. Mai 2013, 22:37
von Patrick1990
Hallo, ist es möglich bei dem nodepart Befehl meine zwei Gleichungen untereinander darzustellen?
\begin{tikzpicture}[state/.style=state with output]
\node[state]{$Z_0$\nodepart{lower}{$y_i=x_s$, $y_r=0$}};
\end{tikzpicture}
Bisher wird dies nur nebeneinander angezeigt.
Vielen Dank.
Nützliche Informationen liefern
Verfasst: Fr 3. Mai 2013, 10:01
von localghost
Gerade wenn es angeblich so dringend ist, ist ein
ordentliches Minimalbeispiel unabdingbar.
Thorsten
Verfasst: Fr 3. Mai 2013, 16:54
von Patrick1990
Ich dachte, das reicht so, hier nun mein Minimalbeispiel:
\documentclass[11pt,fleqn]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\usepackage{circuitikz}
\usetikzlibrary{automata}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2cm,
state/.style=state with output]
\node[state](Z_0){$Z_0$\nodepart{lower}{$y_l=x_s$, $y_r=0$}};
\node[state]at(10,0)(Z_1){$Z_1$\nodepart{lower}{$y_l=0$, $y_r=x_s$}};
\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}
Ausrichtung
Verfasst: Fr 3. Mai 2013, 17:23
von localghost
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}
Verfasst: Fr 3. Mai 2013, 17:25
von Patrick1990
vielen Dank.