summaryrefslogtreecommitdiff
path: root/info/examples/tip/ts-page2.tip
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-01 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2024-02-01 03:00:51 +0000
commita494a509f3f4a13a450c898488155f7aa5353bd3 (patch)
treeab11a3116dfe36f273b0eefe1a7abb556253a9c8 /info/examples/tip/ts-page2.tip
parent79e1bbc1ad6b308aa2074540b2afd43b6a72ce03 (diff)
CTAN sync 202402010300
Diffstat (limited to 'info/examples/tip/ts-page2.tip')
-rw-r--r--info/examples/tip/ts-page2.tip122
1 files changed, 0 insertions, 122 deletions
diff --git a/info/examples/tip/ts-page2.tip b/info/examples/tip/ts-page2.tip
deleted file mode 100644
index 974be452c2..0000000000
--- a/info/examples/tip/ts-page2.tip
+++ /dev/null
@@ -1,122 +0,0 @@
-% 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 30.8.6.3, p. III-571.
-% Original source in file "pp1.TEX", starting line 1937.
-\wlog{L: "ts-page2.tip" ["pp1.TEX," l. 1937, p. III-571]}%
-% This file DOES belong to format "texip."
-\InputD{part-cr.tip}
-\InputD{rangetst.tip}
-\InputD{ts-pager.tip}
-\catcode`\@ = 11
-\newcount\@PageRefLimitLow
-\newcount\@PageRefLimitHigh
-\newif\if@CloseByReference
-\newcount\@PageCloseRefCount
-\newcount\@PageNumberActual
-\def\NoSpecialPageRef{%
- \global\@NoSpecialPageReftrue
-}
-\newif\if@NoSpecialPageRef
-\@NoSpecialPageReffalse
-\def\@PageRef #1{%
- \def\@PageRefResult{}%
- \global\@CloseByReferencefalse
- \StepCounter{CloseByReferenceCount}%
- \CounterToRegister{\global\@PageCloseRefCount}%
- {CloseByReferenceCount}%
- \@ref{1}{#1}%
- \if\StringsEqualConditional{\@TheExpandedLabel}{??}%
- \def\@PageRefResult{??}%
- \else
- \if\PrefixConditional
- {\@TheExpandedLabel}%
- {\TheCounter{VolumeNo}-}%
- \DropPrefix{\@TheExpandedLabel}{\TheCounter{VolumeNo}-}%
- {\@TheShortenedLabel}%
- \def\@PageRefResult{\@TheShortenedLabel}%
- \Label{@READ@-%
- \@ThisLabel-\the\@PageCloseRefCount}%
- \@PageRefLimitLow = \@TheShortenedLabel
- \advance\@PageRefLimitLow by -1
- \@PageRefLimitHigh = \@TheShortenedLabel
- \advance\@PageRefLimitHigh by 1
- \edef\@Ref@Temp@Name{%
- \@LabelRefPrefix @READ@-%
- \@ThisLabel-\the\@PageCloseRefCount
- }%
- \if\NameDefinedConditional{\@Ref@Temp@Name}%
- \edef\@Ref@Temp@NameTwo{%
- \NameUse{\@Ref@Temp@Name}%
- }%
- \wlog{@READ@: 1 \@Ref@Temp@Name /
- \@Ref@Temp@NameTwo}%
- \edef\@Ref@Temp@NameThree{%
- \expandafter\PickSecondOfTwo
- \@Ref@Temp@NameTwo
- }%
- \wlog{@READ@ 1a: \@Ref@Temp@NameThree}%
- \DropPrefix
- {\@Ref@Temp@NameThree}%
- {\TheCounter{VolumeNo}-}%
- {\@ResultLocalRef}%
-% \show\@ResultLocalRef
- \@PageNumberActual = \@ResultLocalRef
- \else
- \wlog{@READ@ 2}%
- \@PageNumberActual = \count0
- \@PageRefLimitLow = -10
- \@PageRefLimitHigh = -10
- \fi
- \if\InRangeConditional
- {\@PageNumberActual}%
- {\@PageRefLimitLow}%
- {\@PageRefLimitHigh}%
- \wlog{@READ@ 3}%
- \@CloseByReferencetrue
- \if@NoSpecialPageRef
- \@CloseByReferencefalse
- \fi
- \else
- \wlog{@READ@ 4}%
- \@CloseByReferencefalse
- \fi
- \global\@NoSpecialPageReffalse
- \if@CloseByReference
- \ifnum\@PageNumberActual = \@PageRefLimitLow
- \wlog{\string\PageRef: Reference "\@ThisLabel,"
- on page \the\@PageNumberActual
- \space refers to the next page.}%
- \def\@PageRefResult{the next}%
- \fi
- \ifnum\@PageNumberActual = \@TheShortenedLabel
- \wlog{\string\PageRef: Reference "\@ThisLabel"
- on page \the\@PageNumberActual
- \space refers to the current page.}%
- \def\@PageRefResult{this}%
- \fi
- \ifnum\@PageNumberActual = \@PageRefLimitHigh
- \wlog{\string\PageRef: Reference "\@ThisLabel"
- on page \the\@PageNumberActual
- \space refers to the preceding page.}%
- \def\@PageRefResult{the previous}%
- \fi
- \fi
- \else
- \def\@PageRefResult{\@TheExpandedLabel}%
- \fi
- \fi
- \edef\@PageRefResult{\@PageRefResult}%
-}
-\catcode`\@ = 12