summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cals/test/colsep/test_10_outone.tex
blob: fec00899ac72eb82c82aef6d2cbc597cdca502b6 (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
%
%
\def\cals@cs@width{2pt}
\def\cals@bgcolor{green}

%
% cals@cs@outone:
% #1: cell width
% #2: left border width
% #3: background color
%
%
% test1: everything disabled
%
\setbox0=\hbox{\cals@cs@outOne\relax{0pt}{}%
\show\cals@lastLeftWidth
}
\showbox0

%
% test2: everything specified
%
\setbox0=\hbox{\cals@cs@outOne{50pt}{4pt}{red}%
\show\cals@lastLeftWidth
}
\showbox0
%
% test3: use defaults for everything
%
\setbox0=\hbox{\cals@cs@outOne{100pt}\relax\relax%
\show\cals@lastLeftWidth
}
\showbox0
%
% test4: background color ignored if no cell width
%
\setbox0=\hbox{\cals@cs@outOne\relax{2pt}{green}}
\showbox0
%
% test5: defaults are no colors, no borders
%
\def\cals@cs@width{0pt}
\def\cals@bgcolor{}
\setbox0=\hbox{\cals@cs@outOne{300pt}\relax\relax}
\showbox0
%
% test6: cell width: 0pt != \relax
%
\setbox0=\hbox{\cals@cs@outOne{0pt}{0pt}{}}
\showbox0

%
% test7: only \relax
% (Bug hunting for a space)
%
\setbox0=\hbox{\cals@cs@outOne\relax\relax\relax}
\showbox0