publ-imp-list.mkvi /size: 2636 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=publ-imp-list,
3%D        version=2014.06.16,
4%D          title=\CONTEXT\ Publication Support,
5%D       subtitle=Lists,
6%D         author=Alan Braslau and Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\unprotect
15
16\starttexdefinition mutable protected btx:list:inject:text #content
17    \ifconditional\btxinteractivetext
18        \ifx\currentbtxinternal\empty
19            #content
20        \else
21            \goto {
22                #content
23            } [
24                \s!internal(\currentbtxinternal)
25            ]
26        \fi
27    \else
28        #content
29    \fi
30\stoptexdefinition
31
32\startsetups \s!btx:\s!list:text
33   \texdefinition {\s!btx:\s!list:inject:text} {
34        \btxflushlisttext
35        \ifx\currentbtxcombis\empty \else
36            \btxrenderingparameter\c!separator
37            \btxflushlistcombis
38        \fi
39   }
40\stopsetups
41
42\starttexdefinition mutable protected btx:list:inject:number #content
43    \ifconditional\btxinteractivenumber
44        \ifx\currentbtxinternal\empty
45            #content
46        \else
47            \goto {
48                #content
49            } [
50                \s!internal(\currentbtxinternal)
51            ]
52        \fi
53    \else
54        #content
55    \fi
56\stoptexdefinition
57
58\starttexdefinition mutable protected btx:list:helpers:concat
59    \space
60\stoptexdefinition
61
62\startsetups[\s!btx:\s!list:\s!numbering]
63    \texdefinition {\s!btx:\s!list:inject:number} {
64        \currentbtxfirst
65        \btxparameter\c!stopper
66    }
67\stopsetups
68
69\starttexdefinition mutable protected btx:list:numbering #variant
70    \btxstartstyleandcolor [\currentbtxspecification:\s!list:\s!numbering:#variant]
71        \btxusecommand[\currentbtxspecification:\s!list:\s!numbering:#variant] {
72            \fastsetup{\s!btx:\s!list:\s!numbering}
73        }
74    \btxstopstyleandcolor
75\stoptexdefinition
76
77\startsetups[\s!btx:\s!list:\s!numbering:default]
78    \texdefinition {\s!btx:\s!list:\s!numbering} {default}
79\stopsetups
80
81\startsetups[\s!btx:\s!list:\s!numbering:num]
82    \texdefinition {\s!btx:\s!list:\s!numbering} {num}
83\stopsetups
84
85\startsetups[\s!btx:\s!list:\s!numbering:short]
86    \texdefinition {\s!btx:\s!list:\s!numbering} {short}
87\stopsetups
88
89\startsetups[\s!btx:\s!list:\s!numbering:tag]
90    \texdefinition {\s!btx:\s!list:\s!numbering} {tag}
91\stopsetups
92
93\startsetups[\s!btx:\s!list:\s!numbering:index]
94    \texdefinition {\s!btx:\s!list:\s!numbering} {index}
95\stopsetups
96
97\protect
98