blob: 8e099f76983f86da552a2d07d2421abb09bb1b14 (
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
|
% 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 9.3.6.1, p. I-327.
% Original source in file "boxit.TEX", starting line 719.
\wlog{L: "boxing5.tip" ["boxit.TEX," l. 719, p. I-327]}%
% This file DOES belong to format "texip."
\InputD{box-zero.tip}
\InputD{box-bul.tip}
\InputD{box-bb.tip}
\InputD{box-thck.tip}
\catcode`\@ = 11
\newif\ifBulletAndBaseLine
\BulletAndBaseLinetrue
\def\RulesOutSide #1#2#3{%
{%
\setbox 0 = \hbox{%
\ifBulletAndBaseLine
\copy\@BulletBox
\fi
\hskip -\BoxRuleThickness
\vrule width \BoxRuleThickness height #1 depth #2%
\hskip #3%
\vrule width \BoxRuleThickness height #1 depth #2%
\dimen0 = #3%
\advance \dimen0 by 2\BoxRuleThickness
\hskip -\dimen0
\dimen2 = #1%
\advance\dimen2 by \BoxRuleThickness
\vrule width \dimen0 height \dimen2 depth -#1%
\hskip -\dimen0
\dimen2 = #2%
\advance\dimen2 by \BoxRuleThickness
\vrule width \dimen0 height -#2 depth \dimen2
}%
\ZeroBoxOut{0}%
}%
}
\def\RulesInSide #1#2#3{%
{%
\setbox 0 = \hbox{%
\ifBulletAndBaseLine
\copy\@BulletBox
\fi
\vrule width \BoxRuleThickness height #1 depth #2%
\hskip #3%
\hskip -\BoxRuleThickness
\hskip -\BoxRuleThickness
\vrule width \BoxRuleThickness height #1 depth #2%
\hskip -#3%
\dimen2 = #1%
\advance\dimen2 by -\BoxRuleThickness
\vrule width #3 height #1 depth -\dimen2
\hskip -#3%
\dimen2 = #2%
\advance\dimen2 by -\BoxRuleThickness
\vrule width #3 height -\dimen2 depth #2%
}%
\ZeroBoxOut{0}%
}%
}
\def\RulesOnSide #1#2#3{%
{%
\setbox 0 = \hbox{%
\ifBulletAndBaseLine
\copy\@BulletBox
\fi
\hskip -0.5\BoxRuleThickness
\vrule width \BoxRuleThickness height #1 depth #2%
\hskip #3%
\hskip -\BoxRuleThickness
\vrule width \BoxRuleThickness height #1 depth #2%
\hskip -#3%
\hskip -\BoxRuleThickness
\dimen0 = #3%
\advance\dimen0 by \BoxRuleThickness
\dimen2 = #1%
\advance\dimen2 by 0.5\BoxRuleThickness
\dimen4 = #1%
\advance\dimen4 by -0.5\BoxRuleThickness
\dimen4 = -\dimen4
\vrule width \dimen0 height \dimen2 depth \dimen4
\hskip -\dimen0
\dimen2 = #2%
\advance\dimen2 by -0.5\BoxRuleThickness
\dimen2 = -\dimen2
\dimen4 = #2%
\advance\dimen4 by 0.5\BoxRuleThickness
\vrule width \dimen0 height \dimen2 depth \dimen4
}%
\ZeroBoxOut{0}%
}%
}
\catcode`\@ = 12
|