summaryrefslogtreecommitdiff
path: root/info/examples/tip/printco.tip
blob: 2c41b3dc3c21fd85e384d87f682dd8f4d4480857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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