summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-05 00:25:10 +0000
committerKarl Berry <karl@freefriends.org>2011-01-05 00:25:10 +0000
commitfe2d303e194c1ffb09556443791c58c817d87f4e (patch)
tree4f9aad3128eb268fea023d54dccf1492ca9b13cc /Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex
parent16560d1d210460f05c89c4ffcb8409d935c46fae (diff)
tikz-qtree (4jan11)
git-svn-id: svn://tug.org/texlive/trunk@20936 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex7
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex b/Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex
index 7a0432bc577..7092a4d17ba 100644
--- a/Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex
+++ b/Master/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.tex
@@ -49,7 +49,7 @@ improves on TikZ's standard tree-drawing facility by laying out tree
nodes without collisions; it improves on Qtree by adding lots of
features from TikZ; and it improves on \verb|pst-qtree| in being
usable with pdf\TeX{} and
-\XeTeX{}.
+\XeTeX{}.\footnote{Although \XeTeX{} works with \verb|pst-qtree| using the \verb|xetex-pstricks| package. For typesetting very large trees or a large number of trees, this may be the better option.}
\section{Basics}
@@ -187,11 +187,11 @@ You can make the nodes in a sideways tree line up on their left edge using \verb
\end{SideBySideExample}
\end{center}
-In Qtree, it was allowed to use a line break (\verb|\\|) inside a node, but TikZ nodes by default don't allow this. You can enable it like so:
+In Qtree, it was allowed to use a line break (\verb|\\|) inside a node. TikZ nodes by default don't allow this, but the \verb|align| option (in PGF/TikZ version 2.1 or later) enables it as a side effect:\footnote{Thanks to Alan Munn for figuring this out. Prior to PGF/TikZ version 2.1, the fix was to use the options \verb|text width=2em,text centered|.}
\begin{center}
\begin{SideBySideExample}
\begin{tikzpicture}
-\tikzset{every tree node/.style={text width=2em,text centered}}
+\tikzset{every tree node/.style={align=center,anchor=north}}
\Tree [.S [.NP Det\\the N\\cat ]
[.VP V\\sat
[.PP P\\on
@@ -199,7 +199,6 @@ In Qtree, it was allowed to use a line break (\verb|\\|) inside a node, but TikZ
\end{tikzpicture}
\end{SideBySideExample}
\end{center}
-The downside is that you must specify a fixed node width. In the next release of TikZ, it will be possible to use instead a new \verb|align=center| option without the fixed width.\footnote{Thanks to Alan Munn for figuring this out.}
You can also define a style for all the edges in a tree. For example, if you want the edges to be a little darker:
\begin{center}