blob: 2d9040b105a00aa7c84298add1a5ebbf12d1abcd (
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
|
%D \module
%D [ file=publ-imp-page,
%D version=2014.11.05,
%D title=\CONTEXT\ Publication Support,
%D subtitle=Page numbers,
%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
\startsetups \s!btx:\s!list:\s!page:concat
\ifcase\currentbtxoverflow
\btxparameter{\c!separator:\number\currentbtxconcat}
\fi
\stopsetups
% for the moment we have only one variant
\startsetups [\s!btx:\s!list:\s!page]
\fastsetup{\s!btx:\s!list:\s!page:concat}
\fastsetup{\s!btx:\currentbtxspecification:\s!list:page-or-pages}
\ifconditional\btxinteractive
\goto {
\currentbtxfirstpage
} [
internal(\currentbtxfirstinternal)
]
\ifx\currentbtxlastpage\empty \else
%\btxparameter\c!pageconnector
\btxparameter\c!range
\goto {
\currentbtxlastpage
} [
internal(\currentbtxlastinternal)
]
\fi
\else
\currentbtxfirstpage
\ifx\currentbtxlastpage\empty \else
\btxparameter\c!range
\currentbtxlastpage
\fi
\fi
\stopsetups
\protect
|