Wednesday, 6 April 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.

\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);

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

No comments :

Post a Comment