在此示例中,使用pst-tree
包:
\def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]}
\pstree[treemode=R, levelsep=3cm] {\Toval{ root }} {
\Toval{ Tom }
\Toval{ Cat }
\Toval{ Very very very very very long entry }
\Toval{ Jerry }
}
输出很丑陋,因为节点按中心对齐,我怎样才能使其向左对齐?
答案1
\def\psedge{\ncangle[armA=.5cm,angleB=180, linearc=.2]}
\pstree[treemode=R, levelsep=3cm] {\Toval{ root }} {
\Toval{ Tom }
\Toval{ Cat }
\Tr{\makebox[4em][l]{\psovalbox{Very very very very very long entry}}}
\Toval{ Jerry }
}