latex-wochenende/svg/chapter-04/main-parts-preamble.tex

66 lines
1.6 KiB
TeX

\documentclass{article}
\usepackage{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]
4/12
\begin{myverbbox}{\one}
\section{This is section 1}
A paragraph about the content
of section 1.
\end{myverbbox}
\begin{myverbbox}{\two}
\section{This is section 2}
A paragraph about the content
of section 2.
\end{myverbbox}
\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{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{A Title}
\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}