If you do not object to using tikz
, you have a number of more flexible options. tikz
has a trees
library but you will probably prefer something with a brackets-type syntax. tikz-qtree
is one option. forest
is another.
tikz-qtree
This option lets you keep using just the same syntax as qtree
.
\documentclass{standalone}
\usepackage{tikz, tikz-qtree}
\begin{document}
\Tree
[.n 1 2 3 4 5 6 ]
\end{document}
forest
This option requires you to use a different syntax but it should nonetheless be rather familiar in many respects. The pay-off comes in the form of greater power and flexibility. While that's not needed for this example, it would be worth switching if you have more demanding trees to draw.
\documentclass{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
[n
[1]
[2]
[3]
[4]
[5]
[6]
]
\end{forest}
\end{document}
Or perhaps:
\documentclass{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
parent anchor=south,
child anchor=north,
}
[n
[1]
[3]
[3]
[4]
[5]
[6]
]
\end{forest}
\end{document}
\documentclass{...}
and ending with\end{document}
. Are you tied toqtree
or can you consider an alternative?beamer
. (If a logician had written the package, it probably wouldn't have as many as 5!)