Wednesday, April 6, 2011

Tip: Showing blocked syntactic movement in LaTeX with tikz(-qtree)

Minimal example showing how to indicate blocked/illegal syntactic movement in LaTeX using the tikz and tikz-qtree packages.

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree}
\begin{document}
\begin{tikzpicture}[baseline,description/.style={fill=white,inner sep=2pt}]
  \Tree [.A [.B \node(b){b}; ] [.C c [.D d [.E e [.F f [.G g [.H \node(h){h}; ]]]]]]]
  \draw [dashed, ->, bend left] (h) to node [description] {\LARGE $\times$} (b);
\end{tikzpicture}
\end{document}


Thanks to Andy L├╝cking and Alexis Dimitriadis from the Ling-TeX mailing list.

No comments :

Post a Comment