blob: e13294f6f5b304a9663b3345b9f7187197e83d37 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
%D \module
%D [ file=publ-imp-list,
%D version=2014.06.16,
%D title=\CONTEXT\ Publication Support,
%D subtitle=Lists,
%D author=Alan Braslau and Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\unprotect
\starttexdefinition btx:list:inject #content
\ifconditional\btxinteractive
\ifx\currentbtxinternal\empty
#content
\else
\goto {
#content
} [
\s!internal(\currentbtxinternal)
]
\fi
\else
#content
\fi
\stoptexdefinition
\starttexdefinition btx:list:helpers:concat
% \ifcase\currentbtxconcat \or \or
% \btxparameter\c!pubsep
% \or
% \btxparameter\c!finalpubsep
% \or
% \btxparameter\c!lastpubsep
% \fi
\space
\stoptexdefinition
\startsetups \s!btx:\s!list:page
\texdefinition{\s!btx:\s!list:concat}
\texdefinition{\s!btx:\s!list:inject} {
% real pagenumber: todo, userpage
\currentbtxfirst
% order
\high{\currentbtxsecond}
}
\stopsetups
\startsetups \s!btx:\s!list:numbering
\btxparameter\c!left
\texdefinition {\s!btx:\s!list:inject} {
\currentbtxfirst
\btxparameter\c!stopper
}
\btxparameter\c!right
\stopsetups
\startsetups \s!btx:\s!list:num
\btxstartstyleandcolor [\currentbtxspecification:list:num]
\btxusecommand[\currentbtxspecification:list:num] {
\fastsetup{\s!btx:\s!list:numbering}
}
\btxstopstyleandcolor
\stopsetups
\startsetups \s!btx:\s!list:yes
\fastsetup{\s!btx:\s!list:num}
\stopsetups
\startsetups \s!btx:\s!list:short
\btxstartstyleandcolor [\currentbtxspecification:list:short]
\btxusecommand[\currentbtxspecification:list:short] {
\fastsetup{\s!btx:\s!list:numbering}
}
\btxstopstyleandcolor
\stopsetups
\startsetups \s!btx:\s!list:bib
\btxstartstyleandcolor [\currentbtxspecification:list:bib]
\btxusecommand[\currentbtxspecification:list:bib] {
\fastsetup{\s!btx:\s!list:numbering}
}
\btxstopstyleandcolor
\stopsetups
\protect
|