答案1
考虑到@Qrrbrbirlbel 评论,你的树的 MWE 可以是:
\documentclass[margin=3mm]{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
draw, rounded corners, minimum size=4ex, inner sep=10pt, % <---
if level = 0{}{math content}, % <---
grow=south,
l sep = 4mm, % <---
}
[IP
[{(3,4,2,2)} % <--- see @Qrrbrbirlbel comment
[2]
]
]
\end{forest}
\end{document}
MWE 中的更改与标记为的代码片段相比% <---