为什么不将其嵌套进去minipage
?
\documentclass{article}
\usepackage{dirtree}
\begin{document}
\begin{enumerate}
\item A
\item Here is a \texttt{dirtree}\\
\begin{minipage}{2cm}
\dirtree{%
.1 a.
.2 b.
.3 c.
.2 d.
}
\end{minipage}
\item C
\end{enumerate}
\end{document}