Fretschi
23-12-2009, 18:52
Ok zuerst das "Minimalbeispiel"
\documentclass[11pt,twoside,ngerman,a4paper]{scrbook}
%Einstellungen der Seitenränder
\usepackage[inner=2cm,outer=2.5cm,top=1.5cm,bottom=2cm,include headfoot]{geometry}
\usepackage{tikz}
\usepgflibrary{snakes}
\usetikzlibrary{trees}
\usetikzlibrary{mindmap}
\usetikzlibrary{arrows}
\usepackage{xcolor}
\usetikzlibrary{chains}
\usetikzlibrary{automata}
\usetikzlibrary{backgrounds}
\usetikzlibrary{er}
\usetikzlibrary{fadings}
\usepgflibrary{fadings}
\usetikzlibrary{matrix}
\usetikzlibrary{patterns}
\usepgflibrary{patterns}
\usetikzlibrary{petri}
\usetikzlibrary{shadows}
\usetikzlibrary{trees}
\usetikzlibrary{calendar}
\usetikzlibrary{decorations.pathmorphing}
\usepgflibrary{decorations.pathmorphing}
\usetikzlibrary{calc}
\usetikzlibrary{fit}
\usepackage[ngerman]{babel}
\begin{document}
\chapter{Hallo}
\label{sec:Hallo}
\section{hallo2}
\label{sec:hallo2}
\begin{tikzpicture}[point/.style={coordinate},>=stealth',thick,draw=black!50,
tip/.style={->,shorten >=1pt},every join/.style={rounded corners},
hv path/.style={to path={-| (\tikztotarget)}},
vh path/.style={to path={|- (\tikztotarget)}}]
\matrix[column sep=4mm] {
% First row:
& & & & & & & & & & & \node (plus) [terminal] {+};\\
% Second row:
\node (p1) [point] {}; & \node (ui1) [nonterminal] {unsigned integer}; &
\node (p2) [point] {}; & \node (dot) [terminal] {.}; &
\node (p3) [point] {}; & \node (digit) [terminal] {digit}; &
\node (p4) [point] {}; & \node (p5) [point] {}; &
\node (p6) [point] {}; & \node (e) [terminal] {E}; &
\node (p7) [point] {}; & &
\node (p8) [point] {}; & \node (ui2) [nonterminal] {unsigned integer}; &
\node (p9) [point] {}; & \node (p10) [point] {};\\
% Third row:
& & & & & & & & & & & \node (minus)[terminal] {-};\\
};
{ [start chain]
\chainin (p1);
\chainin (ui1) [join=by tip];
\chainin (p2) [join];
\chainin (dot) [join=by tip];
\chainin (p3) [join];
\chainin (digit) [join=by tip];
\chainin (p4) [join];
{ [start branch=digit loop]
\chainin (p3) [join=by {skip loop=-6mm,tip}];
}
\chainin (p5) [join,join=with p2 by {skip loop=6mm,tip}];
\chainin (p6) [join];
\chainin (e) [join=by tip];
\chainin (p7) [join];
{ [start branch=plus]
\chainin (plus) [join=by {vh path,tip}];
\chainin (p8) [join=by {hv path,tip}];
}
{ [start branch=minus]
\chainin (minus) [join=by {vh path,tip}];
\chainin (p8) [join=by {hv path,tip}];
}
\chainin (p8) [join];
\chainin (ui2) [join=by tip];
\chainin (p9) [join,join=with p6 by {skip loop=-11mm,tip}];
\chainin (p10) [join=by tip];
}
\end{tikzpicture}\end{document}
Erzeugt bei mir 27 Fehlermeldungen mit denen ich relativ wenig anfangen kann...
Was für Bibliotheken muss ich denn genau laden, um dieses Beispiel zum laufen zu bringen?
Schon mal jetzt vielen Dank für eure Hilfe :)
\documentclass[11pt,twoside,ngerman,a4paper]{scrbook}
%Einstellungen der Seitenränder
\usepackage[inner=2cm,outer=2.5cm,top=1.5cm,bottom=2cm,include headfoot]{geometry}
\usepackage{tikz}
\usepgflibrary{snakes}
\usetikzlibrary{trees}
\usetikzlibrary{mindmap}
\usetikzlibrary{arrows}
\usepackage{xcolor}
\usetikzlibrary{chains}
\usetikzlibrary{automata}
\usetikzlibrary{backgrounds}
\usetikzlibrary{er}
\usetikzlibrary{fadings}
\usepgflibrary{fadings}
\usetikzlibrary{matrix}
\usetikzlibrary{patterns}
\usepgflibrary{patterns}
\usetikzlibrary{petri}
\usetikzlibrary{shadows}
\usetikzlibrary{trees}
\usetikzlibrary{calendar}
\usetikzlibrary{decorations.pathmorphing}
\usepgflibrary{decorations.pathmorphing}
\usetikzlibrary{calc}
\usetikzlibrary{fit}
\usepackage[ngerman]{babel}
\begin{document}
\chapter{Hallo}
\label{sec:Hallo}
\section{hallo2}
\label{sec:hallo2}
\begin{tikzpicture}[point/.style={coordinate},>=stealth',thick,draw=black!50,
tip/.style={->,shorten >=1pt},every join/.style={rounded corners},
hv path/.style={to path={-| (\tikztotarget)}},
vh path/.style={to path={|- (\tikztotarget)}}]
\matrix[column sep=4mm] {
% First row:
& & & & & & & & & & & \node (plus) [terminal] {+};\\
% Second row:
\node (p1) [point] {}; & \node (ui1) [nonterminal] {unsigned integer}; &
\node (p2) [point] {}; & \node (dot) [terminal] {.}; &
\node (p3) [point] {}; & \node (digit) [terminal] {digit}; &
\node (p4) [point] {}; & \node (p5) [point] {}; &
\node (p6) [point] {}; & \node (e) [terminal] {E}; &
\node (p7) [point] {}; & &
\node (p8) [point] {}; & \node (ui2) [nonterminal] {unsigned integer}; &
\node (p9) [point] {}; & \node (p10) [point] {};\\
% Third row:
& & & & & & & & & & & \node (minus)[terminal] {-};\\
};
{ [start chain]
\chainin (p1);
\chainin (ui1) [join=by tip];
\chainin (p2) [join];
\chainin (dot) [join=by tip];
\chainin (p3) [join];
\chainin (digit) [join=by tip];
\chainin (p4) [join];
{ [start branch=digit loop]
\chainin (p3) [join=by {skip loop=-6mm,tip}];
}
\chainin (p5) [join,join=with p2 by {skip loop=6mm,tip}];
\chainin (p6) [join];
\chainin (e) [join=by tip];
\chainin (p7) [join];
{ [start branch=plus]
\chainin (plus) [join=by {vh path,tip}];
\chainin (p8) [join=by {hv path,tip}];
}
{ [start branch=minus]
\chainin (minus) [join=by {vh path,tip}];
\chainin (p8) [join=by {hv path,tip}];
}
\chainin (p8) [join];
\chainin (ui2) [join=by tip];
\chainin (p9) [join,join=with p6 by {skip loop=-11mm,tip}];
\chainin (p10) [join=by tip];
}
\end{tikzpicture}\end{document}
Erzeugt bei mir 27 Fehlermeldungen mit denen ich relativ wenig anfangen kann...
Was für Bibliotheken muss ich denn genau laden, um dieses Beispiel zum laufen zu bringen?
Schon mal jetzt vielen Dank für eure Hilfe :)