summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cals/test/colsep/test_20_row.tex
blob: db97970dd32778ab9c96188ec0f1ecfda0522d8c (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
\def\cals@cs@width{1pt}
\def\cals@framecs@width{2pt}
\def\cals@bgcolor{black}

%
% Normal use
%
\cals@csrow@begin
\def\rborder{4pt}
\cals@csrow@nextcell{100pt}{3pt}\rborder{green}
\def\rborder{6pt}
\cals@csrow@nextcell{110pt}{5pt}\rborder{red}
\cals@csrow@end
\showbox\cals@current@cs

%
% What happens if we have no columns (should never happen)
%
\cals@csrow@begin
\cals@csrow@end
\showbox\cals@current@cs

%
% Defaults are used
%
\cals@csrow@begin
\cals@csrow@nextcell{120pt}\relax\relax\relax
\cals@csrow@nextcell{130pt}\relax\relax\relax
\cals@csrow@end
\showbox\cals@current@cs

%
% test: left frame is bigger as the user-specified width:
% we should not use the maximal width, but drop the default.
% (The first run is not for the test, but for comparation.)
%
\def\rborder{4pt}
\def\cals@framecs@width{2pt}
\cals@csrow@begin
\cals@csrow@nextcell{100pt}{3pt}\rborder{}
\cals@csrow@end
\showbox\cals@current@cs
\def\cals@framecs@width{10pt}
\cals@csrow@begin
\cals@csrow@nextcell{100pt}{3pt}\rborder{}
\cals@csrow@end
\showbox\cals@current@cs

%
% Bug hunting (a space)
%
\setbox\cals@current@cs=\hbox{}
\let\cals@lastWidth=\relax
\cals@csrow@nextcell\relax\cals@framecs@width\relax\relax
\showbox\cals@current@cs