summaryrefslogtreecommitdiff
path: root/info/examples/tex-in-practice/printco.tip
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/tex-in-practice/printco.tip')
-rw-r--r--info/examples/tex-in-practice/printco.tip68
1 files changed, 68 insertions, 0 deletions
diff --git a/info/examples/tex-in-practice/printco.tip b/info/examples/tex-in-practice/printco.tip
new file mode 100644
index 0000000000..2c41b3dc3c
--- /dev/null
+++ b/info/examples/tex-in-practice/printco.tip
@@ -0,0 +1,68 @@
+% This macro source file is from the four volume series
+% "TeX in Practice" by Stephan von Bechtolsheim, published
+% 1993 by Springer-Verlag, New York.
+% Copyright 1993 Stephan von Bechtolsheim.
+% No warranty or liability is assumed.
+% This macro may be copied freely if no fees other than
+% media cost or shipping charges are charged and as long
+% as this copyright and the following source code itself
+% is not changed. Please see the series for further information.
+%
+% Version: 1.0
+% Date: May 1, 1993
+%
+%
+% This source code is documented in 3.4.1, p. I-68.
+% Original source in file "reg1.TEX", starting line 2088.
+\wlog{L: "printco.tip" ["reg1.TEX," l. 2088, p. I-68]}%
+% This file DOES belong to format "texip."
+\catcode`\@ = 11
+\def\arabic #1{\number#1}
+\def\roman #1{%
+ \romannumeral #1%
+}
+\def\Roman #1{%
+ \ifcase #1\or
+ I\or II\or III\or IV\or V\or
+ VI\or VII\or VIII\or IX\or X\or
+ XI\or XII\or XIII\or XIV\or XV\or
+ XVI\or XVII\or XVIII\or XIX\or XX\or
+ XXI\or XXII\or XXIII\or XXIV\or XV%
+ \else
+ \errmessage{\string\Roman: argument \number#1 out
+ of range, larger than 25.}%
+ \fi
+}
+\def\alph #1{%
+ \ifcase #1%
+ \or a\or b\or c\or d\or e\or f\or g\or h\or i%
+ \else
+ \@Morealph{#1}%
+ \fi
+}
+\def\@Morealph #1{%
+ \ifcase #1%
+ \or \or \or \or \or \or \or \or \or
+ \or j\or k\or l\or m\or n\or o\or p\or q\or r%
+ \or s\or t\or u\or v\or w\or x\or y\or z%
+ \else
+ \errmessage{\string\@Morealph: argument too large.}%
+ \fi
+}
+\def\Alph #1{%
+ \ifcase #1%
+ \or A\or B\or C\or D\or E\or F\or G\or H\or I%
+ \else
+ \@MoreAlph{#1}%
+ \fi
+}
+\def\@MoreAlph #1{%
+ \ifcase #1%
+ \or \or \or \or \or \or \or \or \or
+ \or J\or K\or L\or M\or N\or O\or P\or Q\or R%
+ \or S\or T\or U \or V\or W\or X\or Y\or Z%
+ \else
+ \errmessage{\string\@MoreAlph: argument too large.}%
+ \fi
+}
+\catcode`\@ = 12