Debian Codegraph @

texmf-dist/doc/latex/cals/test/colsep/test_20_row.tex

raw
1 \def\cals@cs@width{1pt}
2 \def\cals@framecs@width{2pt}
3 \def\cals@bgcolor{black}
4
5 %
6 % Normal use
7 %
8 \cals@csrow@begin
9 \def\rborder{4pt}
10 \cals@csrow@nextcell{100pt}{3pt}\rborder{green}
11 \def\rborder{6pt}
12 \cals@csrow@nextcell{110pt}{5pt}\rborder{red}
13 \cals@csrow@end
14 \showbox\cals@current@cs
15
16 %
17 % What happens if we have no columns (should never happen)
18 %
19 \cals@csrow@begin
20 \cals@csrow@end
21 \showbox\cals@current@cs
22
23 %
24 % Defaults are used
25 %
26 \cals@csrow@begin
27 \cals@csrow@nextcell{120pt}\relax\relax\relax
28 \cals@csrow@nextcell{130pt}\relax\relax\relax
29 \cals@csrow@end
30 \showbox\cals@current@cs
31
32 %
33 % test: left frame is bigger as the user-specified width:
34 % we should not use the maximal width, but drop the default.
35 % (The first run is not for the test, but for comparation.)
36 %
37 \def\rborder{4pt}
38 \def\cals@framecs@width{2pt}
39 \cals@csrow@begin
40 \cals@csrow@nextcell{100pt}{3pt}\rborder{}
41 \cals@csrow@end
42 \showbox\cals@current@cs
43 \def\cals@framecs@width{10pt}
44 \cals@csrow@begin
45 \cals@csrow@nextcell{100pt}{3pt}\rborder{}
46 \cals@csrow@end
47 \showbox\cals@current@cs
48
49 %
50 % Bug hunting (a space)
51 %
52 \setbox\cals@current@cs=\hbox{}
53 \let\cals@lastWidth=\relax
54 \cals@csrow@nextcell\relax\cals@framecs@width\relax\relax
55 \showbox\cals@current@cs