1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Table Module Natural Tables Extensions}
15
16\unprotect
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\newconditional\c_tabl_nte_in_nc
61
62\permanent\tolerant\protected\def\startTABLE[#S#1]
63 {\bgroup
64 \bTABLE[#1]
65 \enforced\let\NC\tabl_nte_start_nc
66 \enforced\let\NR\tabl_nte_start_nr
67 \enforced\let\bTR\relax
68 \enforced\let\bTD\relax
69 \enforced\let\bTH\relax
70 \enforced\let\bTN\relax}
71
72\permanent\protected\def\stopTABLE
73 {\eTABLE
74 \egroup}
75
76\permanent\protected\def\tabl_nte_start_nr
77 {\eTR
78 \c_tabl_nte_in_nc\conditionalfalse}
79
80\permanent\protected\def\tabl_nte_start_nc
81 {\futurelet\nexttoken\tabl_nte_start_nc_indeed}
82
83\def\tabl_nte_start_nc_indeed
84 {\ifx\nexttoken\tabl_nte_start_nr \else
85 \expandafter\tabl_nte_start_nc_finish
86 \fi}
87
88\def\tabl_nte_start_nc_finish#1\NC
89 {\ifconditional\c_tabl_nte_in_nc \else
90 \c_tabl_nte_in_nc\conditionaltrue
91 \tabl_ntb_bTR[]
92 \fi
93 \tabl_ntb_bTD#1\eTD\NC}
94
95
96
97\permanent\let\stopTABLEhead\relax
98\permanent\let\stopTABLEnext\relax
99\permanent\let\stopTABLEbody\relax
100\permanent\let\stopTABLEfoot\relax
101
102\permanent\tolerant\protected\def\startTABLEhead[#S#1]#:#2\stopTABLEhead{\toksapp\t_tabl_ntb_head{\tabl_ntb_section[#1]{#2}}}
103\permanent\tolerant\protected\def\startTABLEnext[#S#1]#:#2\stopTABLEnext{\toksapp\t_tabl_ntb_next{\tabl_ntb_section[#1]{#2}}}
104\permanent\tolerant\protected\def\startTABLEbody[#S#1]#:#2\stopTABLEbody{\toksapp\t_tabl_ntb_body{\tabl_ntb_section[#1]{#2}}}
105\permanent\tolerant\protected\def\startTABLEfoot[#S#1]#:#2\stopTABLEfoot{\toksapp\t_tabl_ntb_foot{\tabl_ntb_section[#1]{#2}}}
106
107\protect \endinput
108 |