I am trying to use label nodes for a tikz qtree that include the lower-than < and greater-than > characters like shown in the first node of the example below. The problem is that instead of showing < and > some other strange symbols are presented - see first node label of the picture below.
While the second node does solve the problem somehow by just forcing < and > to be in math-mode I seek for a solution which also forces the text to accept the \textbf command it is enclosed in.
\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\usepackage{tikz-qtree}
\begin{document}
\begin{tikzpicture}
\Tree
[.\node(html){\textbf{<html>}};
[.\node(html){\textbf{$<$html$>$}}; ]
]
\end{tikzpicture}
\end{document}

- Is there a solution?
- What is the reason for this - in my eyes - strange behavior?
\usepackage[T1]{fontenc}. – Ulrike Fischer Mar 27 '13 at 12:55tikz-qtreeortikzat all. This is why constructing true minimal examples is important in diagnosing problems. The minimal example that shows the problem is simply a document that contains just<>and no other packages loaded. – Alan Munn Mar 27 '13 at 13:11