I'd like all levels in my tree diagram to be aligned vertically. The problem is that some branches 'skip' a level. Specifically, all x's and all C's should be next to each other (the rest is fine as it is). I managed to to this for the x's by specifying the distance from the root. But the C's are all over the place.
\documentclass[12pt]{beamer}
\usepackage{tikz}
\usepackage{tikz-qtree}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\tikzset{frontier/.style={distance from root=150pt}}
\Tree [.{\textbf{W}}
[.{\textbf{S}}
[.\textit{Onset} [.C {\textit{xx}} ]
[.C {\textit{x}} ] ]
[.\textit{Reim}
[.\textit{Nukleus} [.C {\textit{x}} ]
[.C {\textit{x}} ] ]
[.\textit{Koda} {C} ] ] ]
[.{\textbf{S}}
[.\textit{Onset} [.C {\textit{x}} ] ]
[.\textit{Reim }
[.\textit{Nukleus} [.C {\textit{x}} ] ]
[.\textit{Koda} {C} {C} ] ] ]
]
\end{tikzpicture}
\end{frame}
\end{document}
with your code i obtain the following image:
C
belowOnset
is at the same level as areC
belowNukleus
? welcome to tex.se!before typesetting nodes={where content={C}{tier=c, font=\upshape}{font=\itshape, if content={x}{tier=x}{}}}
in the tree's preamble. (And drop the explicit\textit
s.