3

I drew a tree with the qtree package. However, this tree has no consistent baseline.

Screenshot:

enter image description here

MWE:

\documentclass{scrreprt}
\usepackage{qtree}
\begin{document}

  \Tree[.table 
         [.thead 
           [.tr 
             [.th [.\textit{Vorname} ] ]
             [.th [.\textit{Nachname} ] ]
           ]
         ]              
         [.tbody 
           [.tr 
             [.td [.\textit{Donald} ] ]
             [.td [.\textit{Duck} ] ]
           ]
         ]
       ]

\end{document}

How do I get a consistent baseline?

Marco Daniel
  • 95,681
Benny Code
  • 3,042

1 Answers1

3

Without changing anything in your tree-syntax, the tikz-qtree package allows you to get the right result:

\documentclass{scrreprt}
\usepackage{tikz-qtree}
\begin{document}

  \Tree[.table 
         [.thead 
           [.tr 
             [.th [.\textit{Vorname} ] ]
             [.th [.\textit{Nachname} ] ]
           ]
         ]              
         [.tbody 
           [.tr 
             [.td [.\textit{Donald} ] ]
             [.td [.\textit{Duck} ] ]
           ]
         ]
       ]

\end{document}

gives:

enter image description here