summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cals/test/table/test_20_dispatch.tex
blob: 4d4910c2e2690ec41704688d8b4f79e90c07d79b (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
%
% Some redefs
%
\def\cals@issue@rowsep{\vbox{\hrule width400pt height4pt depth0pt}}
\def\cals@issue@row{\nointerlineskip \box\cals@current@row}

\def\cals@current@rs@above{rsabove}
\def\cals@current@rs@below{rsbelow}
\renewcommand\lastrule{}

\def\somerow#1#2{%
\setbox\cals@current@row=\vbox{\hrule width#1 height#1 depth0pt}%
\let\cals@current@context=#2%
\cals@row@dispatch
}

\def\bodyrowI{\somerow{10pt}b}
\def\bodyrowII{\somerow{20pt}b}
\def\headrowI{\somerow{110pt}h}
\def\headrowII{\somerow{120pt}h}
\def\footrowI{\somerow{210pt}f}
\def\footrowII{\somerow{220pt}f}

%
% Normal table
%
\setbox0=\vbox{%
\headrowI
\headrowII
\headrowI
\bodyrowI
\bodyrowII
\bodyrowI
\footrowI
\footrowII
\footrowI
}
\showbox0

%
% Make a break
%
\setbox0=\vbox{%
\def\cals@thead@tokens{\headrowI\headrowII}
\def\cals@tfoot@tokens{\footrowI}
\bodyrowI
\tbreak{\break}
\bodyrowII
}
\showbox0

%
% Span
%
\setbox0=\vbox{%
\bodyrowI
  \let\cals@ifInRspan=\cals@iftrue
  \let\cals@ifLastRspanRow=\cals@iffalse
\bodyrowII
  \let\cals@ifLastRspanRow=\cals@iftrue
\bodyrowI
  \let\cals@ifInRspan=\cals@iffalse
\bodyrowII
}
\showbox0