答案1
使用 forest with 可以轻松实现这些目标where n children=0{tier=murmel}{rotate=90}
。
\documentclass{article}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={grow'=0,font=\sffamily,
where n children=0{tier=murmel}{rotate=90}}
[,phantom
[clk]
[Master
[ctrl
[write]
[read]
]
[addr]
[wdata]
]
[Slave
[ctrl
[ack]
]
[rdata]
]
]
\end{forest}
\end{document}