
我有這段程式碼,但想減少等級之間的距離。有什麼建議麼?
\begin{forest}
for tree={
circle,
draw,
fill,
minimum width=2pt, % size
inner sep=0pt,
parent anchor=center,
child anchor=center,
s sep+=25pt, % distance between children
grow = north
}
[
[
[]
]
]
\end{forest}
答案1
l
可以使用 鍵和來調整水平距離l sep
。詳細資訊請參閱手冊的3.7.2(參考)和2.4(教程)部分。