summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/synttree
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-30 23:10:15 +0000
committerKarl Berry <karl@freefriends.org>2009-11-30 23:10:15 +0000
commitfa182c5f72009db598962d13ffab23797626c555 (patch)
treef92e4fabf1b4aea04391679990772ecd59035e52 /Master/texmf-dist/source/latex/synttree
parent9a6744b345473d6cc8636aecf1d95fdd1f292c07 (diff)
synttree update (30nov09)
git-svn-id: svn://tug.org/texlive/trunk@16252 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/synttree')
-rw-r--r--Master/texmf-dist/source/latex/synttree/synttree.dtx26
1 files changed, 17 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/synttree/synttree.dtx b/Master/texmf-dist/source/latex/synttree/synttree.dtx
index 71d4908ddec..5c219f1761d 100644
--- a/Master/texmf-dist/source/latex/synttree/synttree.dtx
+++ b/Master/texmf-dist/source/latex/synttree/synttree.dtx
@@ -1,8 +1,8 @@
-%% \CheckSum{747}
+%% \CheckSum{753}
% \iffalse meta-comment
%% synttree.dtx
%% Package `synttree' for use with LaTeX 2e
-%% Version 1.4.1
+%% Version 1.4.2
%
% See the section "Author and License" below for copyright and licensing
% information
@@ -42,6 +42,8 @@
% Updated documentation.
% 1.4.1 2006/07/20 Remove spurious spaces in output.
% Simplify label typesetting.
+% 1.4.2 2008/03/30 Fix dot option warning message.
+% Some refactoring to allow hacks.
%
%<*driver>
\documentclass[a4paper]{ltxdoc}
@@ -62,7 +64,7 @@
%\fi
%\MakeShortVerb{\"}
% \title{The "synttree" package for typesetting syntactic
-% trees.\footnote{Package version 1.4.1}}
+% trees.\footnote{Package version 1.4.2}}
% \author{Matijs van Zuijlen\footnote{e-mail: \texttt{mvz@xs4all}; web:
% \texttt{http://www.matijs.net/}}}
%
@@ -575,7 +577,7 @@
\ifx#2b\MTr@bottomnodetrue\else%
\ifx#2x\MTr@bottomnodetrue\MTr@mytriangletrue\else%
\ifx#2t\MTr@mytriangletrue\else%
- \typeout{synttree Warning: unknown dot option #1 in tree}%
+ \typeout{synttree Warning: unknown dot option #2 in tree}%
\fi\fi\fi%
\MTr@parsedot#3\END
\fi
@@ -830,6 +832,17 @@
\advance\MTr@tempcnta\MTr@lineoffset%
\expandafter
\ifnum\csname MTr@child#1triangle\endcsname=1%
+ \MTr@drawchildlinetriangle{#1}%
+ \else%
+ \MTr@drawchildlineline{#1}%
+ \fi%
+}
+\def\MTr@drawchildlineline#1{%
+ \put(0,0){\MTr@drawline%
+ (\MTr@treev,\MTr@parenty)%
+ (\MTr@childparam{#1}{x},\MTr@tempcnta)}%
+}
+\def\MTr@drawchildlinetriangle#1{%
\MTr@tempcntb\MTr@childparam{#1}{x}%
\MTr@tempcntc\MTr@tempcntb%
\advance\MTr@tempcntb \MTr@childparam{#1}{w}%
@@ -843,11 +856,6 @@
\put(0,0){\MTr@drawline%
(\MTr@tempcntc,\MTr@tempcnta)%
(\MTr@tempcntb,\MTr@tempcnta)}%
- \else%
- \put(0,0){\MTr@drawline%
- (\MTr@treev,\MTr@parenty)%
- (\MTr@childparam{#1}{x},\MTr@tempcnta)}%
- \fi%
}
% \end{macrocode}
% \end{macro}