190 lines
4.5 KiB
TeX

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{trees}
\usepackage{verbatimbox}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}
\begin{document}
\tikzstyle{every node}=[draw=black,thick,anchor=west]
\tikzstyle{selected}=[draw=red,fill=red!30]
\tikzstyle{foot}=[fill=gray!50]
\tikzstyle{rel}=[fill=blue!70]
\tikzstyle{partition}=[draw=white]
\begin{tikzpicture}[%
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node {/ oder C:}
child { node {home}
child { node {knut}
child { node {pictures}}
child { node {docs}
child { node { latex}
child { node { main.tex}}}
}
}
};
\end{tikzpicture}
\begin{tikzpicture}[%
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node [foot] {/ oder C:}
child { node [foot] {home}
child { node [foot] {knut}
child { node {pictures}}
child { node [foot] {docs}
child { node [foot] {latex}
child { node [selected] { main.tex}}}
}
}
};
\end{tikzpicture}
\begin{tikzpicture}[%
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node {/ oder C:}
child { node {home}
child { node {knut}
child { node {pictures}}
child { node {docs}
child { node [foot] {latex}
child { node [rel] { main.tex}}
child { node [selected] { part1.tex}}
}
}
}
};
\end{tikzpicture}
\begin{tikzpicture}[%
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node {/ oder C:}
child { node {home}
child { node {knut}
child { node {pictures}}
child { node {docs}
child { node [foot] {latex}
child { node [rel] { main.tex}}
child {node [foot] {sections}
child { node [selected] {part1.tex}}
}
}
}
}
};
\end{tikzpicture}
\begin{tikzpicture}[%
grow via three points={one child at (0.5,-0.7) and
two children at (0.5,-0.7) and (0.5,-1.4)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node {/ oder C:}
child { node {home}
child { node {knut}
child { node {pictures}}
child { node {docs}
child { node [foot] {latex}
child { node [foot] {main}
child { node [rel] { main.tex}}
}
child [missing] {}
child {node [foot] {sections}
child { node [selected] {part1.tex}}
}
}
}
}
};
\end{tikzpicture}
\begin{myverbbox}{\main}
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Ein Titel}
\begin{document}
\maketitle
\tableofcontents
\input{part1.tex}
\input{part2.tex}
\end{document}
\end{myverbbox}
\begin{myverbbox}{\one}
\section{Dies ist Abschnitt 1}
Hier ein Absatz zum
Inhalt von Abschnitt 1.
\end{myverbbox}
\begin{myverbbox}{\two}
\section{Dies ist Abschnitt 2}
Hier ein Absatz zum
Inhalt von Abschnitt 2.
\end{myverbbox}
\tikzstyle{every node}=[shape=rectangle]
\tikzstyle{boxy}=[draw]
\tikzstyle{mega}=[fill=gray!30]
\begin{tikzpicture}
\node(main) at (5,5) [mega, boxy] {\main};
\node(one) at (0,0) [boxy] {\one};
\node(two) at (10,0) [boxy] {\two};
\node at (5,2.45) {main.tex};
\node at (0,-1) {part1.tex};
\node at (10,-1) {part2.tex};
\draw[->] (one) -- (main);
\draw[->] (two) -- (main);
\end{tikzpicture}
\begin{myverbbox}{\mayn}
\input{header.tex}
\begin{document}
\maketitle
\tableofcontents
\input{part1.tex}
\input{part2.tex}
\end{document}
\end{myverbbox}
\begin{myverbbox}{\header}
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Ein Titel}
\end{myverbbox}
\tikzstyle{every node}=[shape=rectangle]
\tikzstyle{boxy}=[draw]
\tikzstyle{mega}=[fill=gray!30]
\begin{tikzpicture}
\node(main) at (7.5,5) [mega, boxy] {\mayn};
\node(header) at (0,0) [boxy] {\header};
\node(one) at (7.5,0) [boxy] {\one};
\node(two) at (15,0) [boxy] {\two};
\node at (6.5,3.2) {main.tex};
\node at (0,-1.45) {header.tex};
\node at (7.5,-1) {part1.tex};
\node at (15,-1) {part2.tex};
\draw[->] (header) -- (main);
\draw[->] (one) -- (main);
\draw[->] (two) -- (main);
\end{tikzpicture}
\end{document}