2014-03-29 20:07:17 +00:00
|
|
|
\newcommand{\treeroot}[1]{% Title
|
|
|
|
\node[above] at (0,0) {#1};%
|
|
|
|
\setcounter{treeline}{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
\newcommand{\treeentry}[2]{% Title, Level
|
|
|
|
\draw[->] (#2-1,-\value{treeline}/2) -- (#2-1,-\value{treeline}/2-0.5) --
|
|
|
|
(#2+0.5,-\value{treeline}/2-0.5) node[right] {#1};
|
|
|
|
\stepcounter{treeline}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\altentry}[2]{% Title, Level
|
|
|
|
\draw[->] (#2-1,-\value{treeline}/2) -- (#2-1,-\value{treeline}/2-0.5) --
|
|
|
|
(#2+0.5,-\value{treeline}/2-0.5) node[right] {#1};
|
|
|
|
\foreach \x in {1,...,#2}
|
|
|
|
{ \draw (\x-1,-\value{treeline}/2) -- (\x-1,-\value{treeline}/2-0.5);
|
|
|
|
}
|
|
|
|
\stepcounter{treeline}
|
|
|
|
}
|
|
|
|
|
2013-11-05 09:50:33 +00:00
|
|
|
\newcommand{\shellcmd}[1]{\nopagebreak\hspace{1cm}\texttt{\footnotesize\$ #1}}
|