summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/syntrace/README3
-rw-r--r--Master/texmf-dist/doc/latex/syntrace/syntrace.pdfbin0 -> 80670 bytes
-rw-r--r--Master/texmf-dist/source/latex/syntrace/syntrace.dtx188
-rw-r--r--Master/texmf-dist/source/latex/syntrace/syntrace.ins55
-rw-r--r--Master/texmf-dist/tex/latex/syntrace/syntrace.sty66
-rw-r--r--Master/texmf-dist/tpm/syntrace.tpm29
-rw-r--r--Master/texmf/lists/syntrace8
-rw-r--r--Master/texmf/tpm/collection-latexextra.tpm1
8 files changed, 350 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/syntrace/README b/Master/texmf-dist/doc/latex/syntrace/README
new file mode 100644
index 00000000000..dcc20f53b45
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/syntrace/README
@@ -0,0 +1,3 @@
+This package add support for trace in tree created using synttree
+package. It provides two commands to (\traceLabel et \traceReference)
+set and use trace.
diff --git a/Master/texmf-dist/doc/latex/syntrace/syntrace.pdf b/Master/texmf-dist/doc/latex/syntrace/syntrace.pdf
new file mode 100644
index 00000000000..84907ae6c00
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/syntrace/syntrace.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/syntrace/syntrace.dtx b/Master/texmf-dist/source/latex/syntrace/syntrace.dtx
new file mode 100644
index 00000000000..653603b1a28
--- /dev/null
+++ b/Master/texmf-dist/source/latex/syntrace/syntrace.dtx
@@ -0,0 +1,188 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2006 by Mathieu Boretti
+%
+% This file may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3 of this license or (at your option) any later
+% version. The latest version of this license is in:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2003/12/01 or later.
+%
+% The current Maintainer of this work is Mathieu Boretti
+%
+% This work consists of the file syntrace.ins and
+% syntrace.dtx and the derived file syntrace.sty
+%
+%
+% \fi
+% \iffalse
+%<package>\NeedsTeXFormat{LaTeX2e}
+%<package>\ProvidesPackage{syntrace}[2006/08/13 v1.0 Package for dealing with trace in synttree]
+%<package>\RequirePackage{ifthen}
+%<package>\RequirePackage{synttree}
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{syntrace}
+\usepackage{verbatim}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges
+\begin{document}
+ \DocInput{syntrace.dtx}
+\end{document}
+%</driver>
+% \fi
+% \GetFileInfo{syntrace.sty}
+% \title{The \textsf{syntrace} package\thanks{This document corresponds to \textsf{syntrace}~\fileversion, dated~\filedate.}}
+% \author{Mathieu Boretti \\ \texttt{mathieu.boretti@gmail.com}}
+%
+% \maketitle
+%
+% \begin{abstract}
+% This file describe the \textsf{syntrace} package. This package is intended for \LaTeX\ users who must deal with
+% traces in synttree.
+% \end{abstract}
+%
+% \section{Usage}
+% The \textsf{syntrace} package add a way to deal with trace in tree produce using the \textsf{synttree} package.
+%
+% \DescribeMacro{\traceLabel} The |\traceLabel{label}| set and draw a start trace. The parameter is the label to use for
+% the reference.
+%
+% \DescribeMacro{\traceReference} The |\traceReference{ref}| draw a trace linked with the specified reference.
+%
+% \DescribeMacro{\synttree} The |\synttree| is redefined to auto reset the counter of trace at the start of a tree. The |\synttree*| work as the standard |\synttree| command (without auto reseting the counter).
+%
+% \section{Examples}
+% \subsection{Simply example}
+% \begin{verbatim}
+% \synttree[A %
+% [B [C\traceLabel{l1}] [D]] %
+% [E [F] [\traceReference{l1}]]%
+% ]
+% \end{verbatim}
+% \synttree[A %
+% [B [C\traceLabel{l1}] [D]] %
+% [E [F] [\traceReference{l1}]]%
+% ]
+% \subsection{One complexe example}
+% \begin{verbatim}
+% \synttree[AgrP
+% [\traceReference{sujet1}]
+% [Agr'
+% [Arg [\traceReference{verbe1}]]
+% [TP
+% [T'
+% [T [\traceReference{verbe1}]]
+% [VP
+% [DP\traceLabel{sujet1} [.t Le chat]]
+% [V' [V [dort\traceLabel{verbe1}]]]
+% ]
+% ]
+% ]
+% ]
+% ]
+% \end{verbatim}
+% \synttree[AgrP
+% [\traceReference{sujet1}]
+% [Agr'
+% [Arg [\traceReference{verbe1}]]
+% [TP
+% [T'
+% [T [\traceReference{verbe1}]]
+% [VP
+% [DP\traceLabel{sujet1} [.t Le chat]]
+% [V' [V [dort\traceLabel{verbe1}]]]
+% ]
+% ]
+% ]
+% ]
+% ]
+% \section{Implementation}
+%
+% \begin{macro}{syntrace@startvalue}
+% This counter define the start value of the trace numbering
+% \begin{macrocode}
+\newcounter{syntrace@startvalue}
+\setcounter{syntrace@startvalue}{0}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{syntrace@labelcounter}
+% This counter count the trace
+% \begin{macrocode}
+\newcounter{syntrace@labelcounter}
+\setcounter{syntrace@labelcounter}{\arabic{syntrace@startvalue}}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\thesyntrace@labelcounter}
+% This macro display the value of the trace counter
+% \begin{macrocode}
+\renewcommand*{\thesyntrace@labelcounter}{%
+ \alph{syntrace@labelcounter}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\syntrace@labelletter}
+% This macro display the default letter for the trace
+% \begin{macrocode}
+\newcommand*{\syntrace@labelletter}{%
+ \ensuremath{t}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\syntrace@displaytrace}
+% This macro display the value of a trace
+% \begin{macrocode}
+\newcommand*{\syntrace@displaytrace}[1]{%
+ \raisebox{-.5\height}{\scriptsize\mbox{#1}}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\traceLabel}
+% This macro add a start trace
+% \begin{macrocode}
+\newcommand*{\traceLabel}[1]{%
+ \refstepcounter{syntrace@labelcounter}%
+ \syntrace@displaytrace{\thesyntrace@labelcounter}%
+ \label{syntrace-#1}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\traceLabel}
+% This macro add a reference to a trace
+% \begin{macrocode}
+\newcommand*{\traceReference}[1]{%
+ \syntrace@labelletter\syntrace@displaytrace{\ref{syntrace-#1}}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\syntrace@reset}
+% This macro reset the trace counter
+% \begin{macrocode}
+\newcommand*{\syntrace@reset}{%
+ \setcounter{syntrace@labelcounter}{\arabic{syntrace@startvalue}}%
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{synttree}
+% This macro add the autoreset to the synttree command
+% \begin{macrocode}
+\let\syntrace@syntree=\synttree
+\def\synttree{\@ifstar%
+ \syntrace@syntree%
+ \syntree@star%
+}
+\def\syntree@star{%
+ \syntrace@reset%
+ \syntrace@syntree%
+}
+% \end{macrocode}
+% \end{macro}
+% \Finale
+
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/syntrace/syntrace.ins b/Master/texmf-dist/source/latex/syntrace/syntrace.ins
new file mode 100644
index 00000000000..552d949b7c2
--- /dev/null
+++ b/Master/texmf-dist/source/latex/syntrace/syntrace.ins
@@ -0,0 +1,55 @@
+%%
+%% Copyright (C) 2006 by Mathieu Boretti
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2003/12/01 or later.
+%%
+%% The current Maintainer of this work is Mathieu Boretti
+%%
+%% This work consists of the file syntrace.ins and
+%% syntrace.dtx and the derived file syntrace.sty
+%%
+\input docstrip.tex
+\keepsilent
+\usedir{tex/latex/syntrace}
+\preamble
+This is a generated file.
+
+Copyright (C) 2006 by Mathieu Boretti
+
+This file may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3 of this license or (at your option) any later
+version. The latest version of this license is in:
+
+http://www.latex-project.org/lppl.txt
+
+and version 1.3 or later is part of all distributions of
+LaTeX version 2003/12/01 or later.
+
+The current Maintainer of this work is Mathieu Boretti
+
+This work consists of the file syntrace.ins and
+syntrace.dtx and the derived file syntrace.sty
+\endpreamble
+\generate{\file{syntrace.sty}{\from{syntrace.dtx}{package}}}
+\obeyspaces
+\Msg{*****************************************************}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the *}
+\Msg{* following file into a directory searched by LaTeX *}
+\Msg{* *}
+\Msg{* syntrace.sty *}
+\Msg{* *}
+\Msg{* To producre the documentation run the file *}
+\Msg{* syntrace.dtx through LaTeX. *}
+\Msg{* *}
+\Msg{*****************************************************}
+\endbatchfile
diff --git a/Master/texmf-dist/tex/latex/syntrace/syntrace.sty b/Master/texmf-dist/tex/latex/syntrace/syntrace.sty
new file mode 100644
index 00000000000..2a208c230c1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/syntrace/syntrace.sty
@@ -0,0 +1,66 @@
+%%
+%% This is file `syntrace.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% syntrace.dtx (with options: `package')
+%% This is a generated file.
+%%
+%% Copyright (C) 2006 by Mathieu Boretti
+%%
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2003/12/01 or later.
+%%
+%% The current Maintainer of this work is Mathieu Boretti
+%%
+%% This work consists of the file syntrace.ins and
+%% syntrace.dtx and the derived file syntrace.sty
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{syntrace}[2006/08/13 v1.0 Package for dealing with trace in synttree]
+\RequirePackage{ifthen}
+\RequirePackage{synttree}
+\newcounter{syntrace@startvalue}
+\setcounter{syntrace@startvalue}{0}
+\newcounter{syntrace@labelcounter}
+\setcounter{syntrace@labelcounter}{\arabic{syntrace@startvalue}}
+\renewcommand*{\thesyntrace@labelcounter}{%
+ \alph{syntrace@labelcounter}%
+}
+\newcommand*{\syntrace@labelletter}{%
+ \ensuremath{t}%
+}
+\newcommand*{\syntrace@displaytrace}[1]{%
+ \raisebox{-.5\height}{\scriptsize\mbox{#1}}%
+}
+\newcommand*{\traceLabel}[1]{%
+ \refstepcounter{syntrace@labelcounter}%
+ \syntrace@displaytrace{\thesyntrace@labelcounter}%
+ \label{syntrace-#1}%
+}
+\newcommand*{\traceReference}[1]{%
+ \syntrace@labelletter\syntrace@displaytrace{\ref{syntrace-#1}}%
+}
+\newcommand*{\syntrace@reset}{%
+ \setcounter{syntrace@labelcounter}{\arabic{syntrace@startvalue}}%
+}
+\let\syntrace@syntree=\synttree
+\def\synttree{\@ifstar%
+ \syntrace@syntree%
+ \syntree@star%
+}
+\def\syntree@star{%
+ \syntrace@reset%
+ \syntrace@syntree%
+}
+
+\endinput
+%%
+%% End of file `syntrace.sty'.
diff --git a/Master/texmf-dist/tpm/syntrace.tpm b/Master/texmf-dist/tpm/syntrace.tpm
new file mode 100644
index 00000000000..40ad51c370e
--- /dev/null
+++ b/Master/texmf-dist/tpm/syntrace.tpm
@@ -0,0 +1,29 @@
+<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/">
+ <rdf:Description about="http://texlive.dante.de/texlive/Package/syntrace.zip">
+ <TPM:Name>syntrace</TPM:Name>
+ <TPM:Type>Package</TPM:Type>
+ <TPM:Date>2006/08/17 09:59:00</TPM:Date>
+ <TPM:Version></TPM:Version>
+ <TPM:Creator>karl</TPM:Creator>
+ <TPM:Title>The syntrace package.</TPM:Title>
+ <TPM:Description></TPM:Description>
+ <TPM:Author></TPM:Author>
+ <TPM:Size>90208</TPM:Size>
+ <TPM:Build/>
+ <TPM:RunFiles size="2954">
+texmf-dist/tex/latex/syntrace/syntrace.sty
+texmf-dist/tpm/syntrace.tpm
+ </TPM:RunFiles>
+ <TPM:DocFiles size="80827">
+texmf-dist/doc/latex/syntrace/README
+texmf-dist/doc/latex/syntrace/syntrace.pdf
+ </TPM:DocFiles>
+ <TPM:SourceFiles size="7458">
+texmf-dist/source/latex/syntrace/syntrace.dtx
+texmf-dist/source/latex/syntrace/syntrace.ins
+ </TPM:SourceFiles>
+ <TPM:Provides>Package/syntrace</TPM:Provides>
+ </rdf:Description>
+</rdf:RDF>
+
diff --git a/Master/texmf/lists/syntrace b/Master/texmf/lists/syntrace
new file mode 100644
index 00000000000..92367250677
--- /dev/null
+++ b/Master/texmf/lists/syntrace
@@ -0,0 +1,8 @@
+texmf-dist/doc/latex/syntrace/README
+texmf-dist/doc/latex/syntrace/syntrace.pdf
+texmf-dist/source/latex/syntrace/syntrace.dtx
+texmf-dist/source/latex/syntrace/syntrace.ins
+texmf-dist/tex/latex/syntrace/syntrace.sty
+texmf-dist/tpm/syntrace.tpm
+
+texmf/lists/syntrace
diff --git a/Master/texmf/tpm/collection-latexextra.tpm b/Master/texmf/tpm/collection-latexextra.tpm
index dcecadfe9c0..144ac201ce7 100644
--- a/Master/texmf/tpm/collection-latexextra.tpm
+++ b/Master/texmf/tpm/collection-latexextra.tpm
@@ -454,6 +454,7 @@ A large collection of add-on packages for LaTeX.
<TPM:Package name="svn-multi"/>
<TPM:Package name="svninfo"/>
<TPM:Package name="syntax"/>
+ <TPM:Package name="syntrace"/>
<TPM:Package name="synttree"/>
<TPM:Package name="tableaux"/>
<TPM:Package name="tabulary"/>