summaryrefslogtreecommitdiff
path: root/info/examples/tip/ts-verb.tip
blob: cd9fd48b91c14ce4f7b7a972d64fef8edc961ea3 (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
% 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.1
% Date: Sep 9, 1993
%
%
% This source code is documented in 18.3.15, p. III-57.
% Original source in file "tokens1.TEX", starting line 3306.
\wlog{L: "ts-verb.tip" ["tokens1.TEX," l. 3306, p. III-57]}%
% This file DOES belong to format "texip."
\InputD{verbdisp.tip}
\InputD{verb-mac.tip}
\InputD{verb.tip}
\InputD{verbwr.tip}
\InputD{vwrt-mac.tip}
\InputD{defauarg.tip}
\InputD{compst.tip}
\InputD{testsubs.tip}
\InputD{freespac.tip}
\InputD{fexist.tip}
\InputD{ts-verb1.tip}
\InputD{ts-verb2.tip}
\catcode`\@ = 11
\def\verb{\Verb}
\VerbLineNumtrue
\VerbatimTab = 4
\DisplayVerbatimVskip = 5pt
\def\VerbatimFont{\small\tt}%
\def\ListVerbTeXIP #1{%
    \par
    \medskip
    \vskip 60pt
    \vskip -60pt
    \def\ListAsFileName{#1}% 
    \def\LabelName{code-#1}% 
    \if\SuffixConditional{#1}{.flf}% 
        \def\ListAsFileName ##1.flf{\def\ListAsFileName{##1.log}}%
        \ListAsFileName #1% 
        \def\LabelName{}%
    \else
    \if\SuffixConditional{#1}{.flf2}%
        \def\ListAsFileName ##1.flf2{\def\ListAsFileName{##1.log}}%
        \ListAsFileName #1% 
        \def\LabelName{}%
    \fi
    \fi
    \if\StringsEqualConditional{#1}{\jobname.ver}%
        \def\ListAsFileName{}%
        \def\LabelName{}%
    \fi
    \if\StringsEqualConditional{#1}{ex-verbwr.ver}
        \def\LabelName{}% 
    \fi
    \if\EmptyStringConditional{\LabelName}% 
    \else
        \Label{code-#1}% 
    \fi
    \if\EmptyStringConditional{\ListAsFileName}
    \else
        \centerline{% 
            $\bullet$% 
            \space
            \tt\ListAsFileName
            \space
            $\bullet$% 
        }%
    \fi
    \@btex
    \@StartVerbatim{1}% 
    \wlog{[\string\ListVerbTeXIP:}%
    \input #1
    \wlog{]}%   svb: this was \message before
    \@DoneVerbatim
    \@etex
}
\catcode`\@ = 12