我的文档如下所示:
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{tikz-qtree,tikz-qtree-compat}
\usepackage{graphicx}
\title{}
\author{}
\begin{document}
\begin{frame}
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[level 1/.style={level distance=1cm}]
\Tree
[.(-,(3,3),1)
[.(1,(8,0),2)
[. (1,(1,1),1) {(1,(1,1),$\perp $)\\ (-1,1)} ]
[.(1,(1,1),2) [.(1,(1,1),1) {(1,(1,1),$\perp $) (-1,1)} ] ]
[.(1,(8,0),1) (1,(8,0),$\perp $) ]
]
[.(-,(3,3),2)
[.(2,(0,8),1)
[.(2,(1,1),2) {(2,(1,1),$\perp $)} ]
[.(2,(1,1),1) {(2,(1,1),2)} ]
[.(2,(0,8),2) {(2,(0,8),$\perp $)} ]]
{ (-,(3,3),$\perp$)}
]
]
\bigskip
\end{tikzpicture}
}
\end{frame}
\end{document}
文本(-1,1)
(在第一个缩进行中)应该出现在叶子下方,但是当我插入换行符(\\
)时,出现错误。