From fbf0a6f692a83eb3fe2b4edf96e576ff4fe6ba6f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 25 Jan 2009 16:14:05 +0000 Subject: qtree update (23jan09) git-svn-id: svn://tug.org/texlive/trunk@11969 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/qtree/qtree.sty | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/qtree/qtree.sty') diff --git a/Master/texmf-dist/tex/latex/qtree/qtree.sty b/Master/texmf-dist/tex/latex/qtree/qtree.sty index f0f72543a47..4db8284bcbc 100644 --- a/Master/texmf-dist/tex/latex/qtree/qtree.sty +++ b/Master/texmf-dist/tex/latex/qtree/qtree.sty @@ -2,8 +2,8 @@ % qtree.sty, a LaTeX macro package for drawing trees from descriptions % given in bracket notation. % - \def\qTreeVersion{3.1} - \def\qTreeDate{2006/07/10 } + \def\qTreeVersion{3.1b} + \def\qTreeDate{2008/12/12 } % QobiTree tree macros written by Jeffrey Mark Siskind (Qobi@cis.upenn.edu). % Front end and extensions by Alexis Dimitriadis (alexis@ling.upenn.edu). @@ -13,6 +13,9 @@ % Most recent revisions: +% 2008/12/12 -- 3.1b A roof with an empty label will be connected to the tree +% branches (but will look ugly because of the different angles) + % 2006/03/08 -- Protected pict2e loading from possible redefinition of ^. % Reported by Alan Munn. Extended documentation. @@ -917,19 +920,19 @@ both pdf and PostScript is now provided by the package pict2e.sty. % User command for requesting a roof % \def\qroof#1.#2 {{% - % padding under the ``eaves'' of the roof + % padding under the "eaves" of the roof \setbox\@qrscratchbox = \hbox{\let\qtreepadding=\qroofpadding \qshow@text[l]{\qleafhook}{#1}}% % we don't pad here, since the entire roof gets padded as a leaf. - \def\qtreepadding{0pt}% - \begin{tabular}{@{}c@{}} - \qshow@text{\qlabelhook}{#2}\\ - \unitlength=\wd\@qrscratchbox \qdraw@roof \\[-0.6ex] + \def\qtreepadding{0pt}% + \begin{tabular}{@{}c@{}} + \setbox\@tempboxa = \hbox{\qshow@text{\qlabelhook}{#2}}% + \ifdim\wd\@tempboxa>0pt \box\@tempboxa \\ \fi + \unitlength=\wd\@qrscratchbox \qdraw@roof \\[-0.6ex] \box\@qrscratchbox \end{tabular}}} - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DRAWING UTILITIES -- cgit v1.2.3