diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/qtree/qtree.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/qtree/qtree.sty | 19 |
1 files changed, 11 insertions, 8 deletions
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 |