blob: 83327431f3115db1e81b36875947cf4631f9c48f (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
% 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 31.2.11, p. III-607.
% Original source in file "pp2.TEX", starting line 1114.
\wlog{L: "ts-crm.tip" ["pp2.TEX," l. 1114, p. III-607]}%
% This file DOES belong to format "texip."
\InputD{pm-wrc.tip}
\InputD{ts-page2.tip}
\catcode`\@ = 11
\def\PageRef #1{%
\@PageRef{#1}%
\@PageRefResult
\@PrintAfterLabel
}
\def\Page #1{%
\PageShortForm~\@PageRef{#1}%
\@PageRefResult
\@PrintAfterLabel
}
\def\OnPage #1{%
\@PageRef{#1}%
\if@CloseByReference
on \@PageRefResult\space page%
\else
on \PageShortForm~\@PageRefResult
\fi
\@PrintAfterLabel
}
\def\AtPage #1{%
\@PageRef{#1}%
\if@CloseByReference
at \@PageRefResult\space page%
\else
at \PageShortForm~\@PageRefResult
\fi
\@PrintAfterLabel
}
\def\CommaPage #1{%
\@PageRef{#1}%
\if@CloseByReference
\space on \@PageRefResult\space page%
\@PrintAfterLabel
\else
,\space
\PageShortForm~\@PageRefResult
\@PrintAfterLabel
\fi
}
\def\CommaPageComma{%
\@PageRef{,}%
\if@CloseByReference
\space on \@PageRefResult\space page\space
\else
,\space
\PageShortForm~\@PageRefResult
\@PrintAfterLabel
\space
\fi
}
\def\PageShortForm{p.}
\def\PagesShortForm{pp.}
\def\see #1#2{%
see \@SeeSee{#1}{#2}%
}
\def\See #1#2{%
See \@SeeSee{#1}{#2}%
}
\def\@SeeSee #1#2{%
\SectionRef{#1}%
\if\StringsEqualConditional{#2}{,}%
\CommaPageComma
\let\@SeeSeeEnd = \ignorespaces
\else
\CommaPage
#2%
\let\@SeeSeeEnd = \relax
\fi
\@SeeSeeEnd
}
\def\ChapterRef #1{%
Chapter~\Ref{#1}%
}
\def\SectionRef #1{%
\Ref{#1}%
}
\def\ItemRef #1{%
item~\Ref{#1}%
}
\def\FigRef #1{%
Fig.~\Ref{#1}%
}
\def\FigureRef #1{%
Figure~\Ref{#1}%
}
\def\TableRef #1{%
Table~\Ref{#1}%
}
\def\AppendixRef #1{%
Appendix~\Ref{#1}%
}
\def\PagesRef #1#2{%
\PagesShortForm~\PageRef{#1}--\PageRef{#2}%
}
\catcode`\@ = 12
|