答案1
使用包forest
,您可以轻松调整树的节点之间的距离:
\documentclass{article}
\usepackage{geometry}
\usepackage{forest}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{center}
\begin{forest}
for tree = {font=\small,
s sep=1mm, % <---
l sep=3mm % <---
}
%
[F
[{F[0]},fit=band
[{F[0][0]}
[{[x, y, z]}]
]
[{F[0][1]}
[{[x, y, z]}]
]
[\ldots]
[{F[0][m-1]}
[{[x, y, z]} ]
]
]
[{F[1]},fit=band
[{\ldots}]
]
[\ldots]
[{F[n-1]},fit=band
[{F[n-1][0]}
[{[x, y, z]}]
]
[{F[n-1][1]}
[{[x, y, z]}]
]
[\ldots]
[{F[n-1][m-1]}
[{[x, y, z]} ]
]
]
]
\end{forest}
\end{center}
\end{document}
(红线表示文本边框)