summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-28 20:11:43 +0000
committerKarl Berry <karl@freefriends.org>2024-05-28 20:11:43 +0000
commit6e1c35d76cb6e5dd167fc9b393411e39cc1ea60c (patch)
treeaf2988c465a9988de57c77cc8f39fac9f5aed74e /Master/texmf-dist/doc/latex
parentd4ae5d55b8e98c680a07b814195a714943d9ae72 (diff)
treesvr (denisb request, 28may24)
git-svn-id: svn://tug.org/texlive/trunk@71382 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/treesvr/legal.txt14
-rw-r--r--Master/texmf-dist/doc/latex/treesvr/treedoc.latex20965
-rw-r--r--Master/texmf-dist/doc/latex/treesvr/treedoc.pdfbin0 -> 55957 bytes
-rw-r--r--Master/texmf-dist/doc/latex/treesvr/treedoc.tex66
4 files changed, 145 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/treesvr/legal.txt b/Master/texmf-dist/doc/latex/treesvr/legal.txt
new file mode 100644
index 00000000000..b61c93b451a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/treesvr/legal.txt
@@ -0,0 +1,14 @@
+The files of this package "treesvr" may be distributed and/or modified
+under the conditions of the LaTeX Project Public License, either version
+1.2 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.2 or later is part of all distributions of LaTeX version
+1999/12/01 or later.
+
+The complete listing of files covered by this license is
+ treedoc.latex209
+ treedoc.tex
+ trees.sty
+
+May 2002, Reinhard Zierke with permission of the copyright owner.
diff --git a/Master/texmf-dist/doc/latex/treesvr/treedoc.latex209 b/Master/texmf-dist/doc/latex/treesvr/treedoc.latex209
new file mode 100644
index 00000000000..edf859f71d7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/treesvr/treedoc.latex209
@@ -0,0 +1,65 @@
+\documentstyle[trees,a4]{article}
+
+\title{{\tt trees.sty}: A Macro for Drawing Binary \\
+ or Ternary Trees}
+
+\author{Peter Vanroose \\
+ Peter.Vanroose@esat.kuleuven.ac.be}
+
+\date{18 april 1990}
+
+\begin{document}
+
+\maketitle
+
+The following macros let you draw a (binary or ternary) tree of any size.
+For each "internal node", you only have to specify which are the descending
+nodes, with a \verb|\branch| command (\verb|\tbranch| for ternary node.).
+To this end, nodes are given a label (only used internally!). These macros
+will give you some ideas on designing similar things for, e.g.,
+digital circuits.
+
+Trees are constructed with labels on the branches (default 0 and 1), and
+with text (e.g., its name or value) on the nodes. The first parameter to
+\verb|\branch| (0, 1, 2 or 3) determines the steepness of the branches.
+
+Example:
+\small
+\begin{verbatim}
+\begin{picture}(100,100)(-50,10)
+\unitlength=2mm
+\branchlabels ABC % 012 is the default
+\root(2,10) 0. % root at absolute coordinate (2,10)
+ % its (internally used) label is 0
+ % the space before the 0 is obligatory
+\branch2{16} 0:1,2. % node 0 (i.e., the root) has children 1 and 2
+ % the text "1.00" is written above it
+ % space is optional, :,. are obligatory
+ \leaf{4}{$u_1$} 1. % node 1 is a leaf
+ % "0.45" written above, "$u_1$" to the right
+ \branch2{12} 2:3,7. % branch to node 3 goes up, and has label A
+ \tbranch2{9} 3:4,5,6.
+ \leaf{4}{$u_3$}4. % the symbols 0--7 can be replaced by anything
+ \leaf{3}{$u_4$}5.
+ \leaf{2}{$u_5$}6.
+ \leaf{3}{$u_2$} 7.
+\end{picture}
+\end{verbatim}
+\normalsize
+will typeset something like:
+\begin{flushleft}
+\begin{picture}(100,100)(-50,10)
+\unitlength=2mm
+\branchlabels ABC
+\root(2,10) 0.
+\branch2{16} 0:1,2.
+ \leaf{4}{$u_1$} 1.
+ \branch2{12} 2:3,7.
+ \tbranch2{9} 3:4,5,6.
+ \leaf{4}{$u_3$}4.
+ \leaf{3}{$u_4$}5.
+ \leaf{2}{$u_5$}6.
+ \leaf{3}{$u_2$} 7.
+\end{picture}
+\end{flushleft}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/treesvr/treedoc.pdf b/Master/texmf-dist/doc/latex/treesvr/treedoc.pdf
new file mode 100644
index 00000000000..d7485414c90
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/treesvr/treedoc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/treesvr/treedoc.tex b/Master/texmf-dist/doc/latex/treesvr/treedoc.tex
new file mode 100644
index 00000000000..55b349e8ba9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/treesvr/treedoc.tex
@@ -0,0 +1,66 @@
+\documentclass{article}
+\usepackage{trees}
+\usepackage{a4}
+
+\title{{\tt trees.sty}: A Macro for Drawing Binary \\
+ or Ternary Trees}
+
+\author{Peter Vanroose \\
+ Peter.Vanroose@esat.kuleuven.ac.be}
+\date{18 april 1990}
+
+\begin{document}
+
+\maketitle
+
+The following macros let you draw a (binary or ternary) tree of any size.
+For each "internal node", you only have to specify which are the descending
+nodes, with a \verb|\branch| command (\verb|\tbranch| for ternary node.).
+To this end, nodes are given a label (only used internally!). These macros
+will give you some ideas on designing similar things for, e.g.,
+digital circuits.
+
+Trees are constructed with labels on the branches (default 0 and 1), and
+with text (e.g., its name or value) on the nodes. The first parameter to
+\verb|\branch| (0, 1, 2 or 3) determines the steepness of the branches.
+
+Example:
+\small
+\begin{verbatim}
+\begin{picture}(100,100)(-50,10)
+\unitlength=2mm
+\branchlabels ABC % 012 is the default
+\root(2,10) 0. % root at absolute coordinate (2,10)
+ % its (internally used) label is 0
+ % the space before the 0 is obligatory
+\branch2{16} 0:1,2. % node 0 (i.e., the root) has children 1 and 2
+ % the text "1.00" is written above it
+ % space is optional, :,. are obligatory
+ \leaf{4}{$u_1$} 1. % node 1 is a leaf
+ % "0.45" written above, "$u_1$" to the right
+ \branch2{12} 2:3,7. % branch to node 3 goes up, and has label A
+ \tbranch2{9} 3:4,5,6.
+ \leaf{4}{$u_3$}4. % the symbols 0--7 can be replaced by anything
+ \leaf{3}{$u_4$}5.
+ \leaf{2}{$u_5$}6.
+ \leaf{3}{$u_2$} 7.
+\end{picture}
+\end{verbatim}
+\normalsize
+will typeset something like:
+\begin{flushleft}
+\begin{picture}(100,100)(-50,10)
+\unitlength=2mm
+\branchlabels ABC
+\root(2,10) 0.
+\branch2{16} 0:1,2.
+ \leaf{4}{$u_1$} 1.
+ \branch2{12} 2:3,7.
+ \tbranch2{9} 3:4,5,6.
+ \leaf{4}{$u_3$}4.
+ \leaf{3}{$u_4$}5.
+ \leaf{2}{$u_5$}6.
+ \leaf{3}{$u_2$} 7.
+\end{picture}
+\end{flushleft}
+\end{document}