I try to switch to XeLaTeX, but the package tree-dvips causes problems. It seems to require PostScript and pdftricks which causes a lot of other problems (puts a \begin{center} environment around everything, which adds to much space and so on).
I can run the following code under latex + dvips + ps2pdf but when I call XeLaTeX I get warnings and the connections between the nodes are not drawn.
** WARNING ** Unknown token "@beginspec"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(261.137, 712.838)" (in PDF)
** WARNING ** >> xxx "ps:@beginspec/nodemargin 2.0 pt def 0.3 pt setlinewidth [] 0..."
** WARNING ** >> Reading special command stopped around >>/nodemargin 2.0 pt def 0.3 pt setlinewidth [] 0 setdash/arro...<<
** WARNING ** Unknown token "@beginspec"
** WARNING ** Interpreting PS code failed!!! Output might be broken!!!
** WARNING ** Interpreting special command ps: (ps:) failed.
** WARNING ** >> at page="1" position="(117.303, 680.041)" (in PDF)
** WARNING ** >> xxx "ps:@beginspec/nodemargin 2.0 pt def 0.3 pt setlinewidth [] 0..."
** WARNING ** >> Reading special command stopped around >>/nodemargin 2.0 pt def 0.3 pt setlinewidth [] 0 setdash/arro...<<
** WARNING ** Unknown token "@beginspec"
Any suggestions for fixing this or for getting rid of tree-dvips in a painless way (I have tons of trees already done ...) are welcome.
Here is my code:
\documentclass{scrbook}
\usepackage{graphicx}
\usepackage{tree-dvips}
\begin{document}
This is some text and the figure should be the size of the text not larger and not smaller.
\begin{figure}[h]
\resizebox{\linewidth}{!}{
\begin{tabular}{@{}ccccc@{}}
\multicolumn{5}{c}{\node{sign}{sign}}\\[5ex]
\multicolumn{2}{c}{\node{root}{root}} & & \node{word}{word} & \node{phrase}{phrase}\\[3ex]
\node{noun}{noun-root} & \multicolumn{2}{c}{\node{verb}{verb-root}} & & \node{hp}{headed-phrase} \\[3ex]
& \node{iv}{intransitive-verb} & \multicolumn{2}{c}{\node{tv}{transitive-verb}} & \node{hap}{head-complement-phrase}\\[3ex]
& \node{siv}{strict-intr-verb} & \node{stv}{strict-transitive-verb} & \node{dv}{ditransitive-verb} \\[3ex]
& \node{schlaf}{schlaf-} & \node{lieb}{lieb-} & \node{geb}{geb-}\\
& (`to sleep') & (`to love') & (`to give')\\
\end{tabular}%
\nodeconnect{sign}{root}\nodeconnect{sign}{word}\nodeconnect{sign}{phrase}%
\nodeconnect{root}{noun}\nodeconnect{root}{verb}\nodeconnect{phrase}{hp}%
\nodeconnect{hp}{hap}%
\nodeconnect{verb}{iv}\nodeconnect{verb}{tv}\nodeconnect{tv}{stv}\nodeconnect{tv}{dv}%
\nodeconnect{iv}{siv}%
{\makedash{4pt}%
\nodeconnect{siv}{schlaf}\nodeconnect{stv}{lieb}\nodeconnect{dv}{geb}%
}%
}
\end{figure}
This is some text and the figure should be the size of the text not larger and not smaller.
\end{document}


tikz-qtree. It has a much easier syntax and gives you pretty much all of the same functionality astree-dvips. – Alan Munn Sep 11 '12 at 19:01