答案1
欢迎使用 TeX-SE!有了 forest 就很容易了(当然,我没有从您的屏幕截图中插入文本)。添加注释也很容易,我仅为rows
但一旦您拥有足够多的级别,您也可以为它们添加类似的语句。
\documentclass[border=3.14mm]{standalone}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={grow'=east,l sep+=4mm,s sep+=2mm,
draw, semithick,forked edges,edge={-latex},
before typesetting nodes={
where level=0{draw=none}{},
where level=1{label=above:\emph{rows}}{},
where level=4{label=above:\emph{columns}}{},
% you can add the other labels at the respective levels analogously
where n children=0{draw=none}{}
}
}
[Start
[A
[A1
[A1a
[A11 [A11a]]
[A12 [A12a]]
]
]
[A2
[A2a
[A21 [A21a]]
[A22 [A22a]]
]
]
]
[B
[B1
[B1a
[B11 [B11a]]
[B12 [B12a]]
]
]
[B2
[B2a
[B11 [B11a]]
[B12 [B12a]]
]
]
]
]
\end{forest}
\end{document}