答案1
Tikz 树更复杂,但允许微调:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\tikzstyle{every node}=[draw=gray, very thick,anchor=west]
\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 {root}
child { node {spam}}
child { node {ham}}
child { node {eggs}
child {node {more spam} }
child { node {dead parrots}}}
child [missing] {}
child [missing] {}
child [missing] {}
child { node {peanuts}};
\end{tikzpicture}
\end{document}