Debian Codegraph @

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

raw
1 %
2 %
3 \def\cals@cs@width{2pt}
4 \def\cals@bgcolor{green}
5
6 %
7 % cals@cs@outone:
8 % #1: cell width
9 % #2: left border width
10 % #3: background color
11 %
12 %
13 % test1: everything disabled
14 %
15 \setbox0=\hbox{\cals@cs@outOne\relax{0pt}{}%
16 \show\cals@lastLeftWidth
17 }
18 \showbox0
19
20 %
21 % test2: everything specified
22 %
23 \setbox0=\hbox{\cals@cs@outOne{50pt}{4pt}{red}%
24 \show\cals@lastLeftWidth
25 }
26 \showbox0
27 %
28 % test3: use defaults for everything
29 %
30 \setbox0=\hbox{\cals@cs@outOne{100pt}\relax\relax%
31 \show\cals@lastLeftWidth
32 }
33 \showbox0
34 %
35 % test4: background color ignored if no cell width
36 %
37 \setbox0=\hbox{\cals@cs@outOne\relax{2pt}{green}}
38 \showbox0
39 %
40 % test5: defaults are no colors, no borders
41 %
42 \def\cals@cs@width{0pt}
43 \def\cals@bgcolor{}
44 \setbox0=\hbox{\cals@cs@outOne{300pt}\relax\relax}
45 \showbox0
46 %
47 % test6: cell width: 0pt != \relax
48 %
49 \setbox0=\hbox{\cals@cs@outOne{0pt}{0pt}{}}
50 \showbox0
51
52 %
53 % test7: only \relax
54 % (Bug hunting for a space)
55 %
56 \setbox0=\hbox{\cals@cs@outOne\relax\relax\relax}
57 \showbox0