I'm having trouble using the example code from tikz-qtree to typeset a Japanese syntax tree. Here's my MWE:
\documentclass[10pt,letterpaper]{article}
\usepackage{xeCJK}
\setCJKmainfont{MS Mincho}% for \rmfamily
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\tikzset{every leaf node/.style={font=\ja}}
\begin{document}
\begin{tikzpicture}
\Tree [ .VP [ .V\1 いる ] ]
\end{tikzpicture}
\end{document}
And I get this error:
! Undefined control sequence.
\tikz@textfont ->\ja
I am using XeLaTeX in a just-updated distribution of MiKTeX on Windows 7. Anyone know how to fix this?
xelatex
, you wouldn't need the line\tikzset{every leaf node/.style={font=\ja}}
for font switching at all. – imnothere Jan 31 '12 at 7:30