publ-imp-page.mkvi /size: 1412 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=publ-imp-page,
3%D        version=2014.11.05,
4%D          title=\CONTEXT\ Publication Support,
5%D       subtitle=Page numbers,
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\startsetups \s!btx:\s!list:\s!page:concat
17    \ifcase\currentbtxoverflow
18        \btxparameter{\c!separator:\number\currentbtxconcat}
19    \fi
20\stopsetups
21
22% for the moment we have only one variant
23
24\startsetups [\s!btx:\s!list:\s!page]
25    \fastsetup{\s!btx:\s!list:\s!page:concat}
26    \fastsetup{\s!btx:\currentbtxspecification:\s!list:page-or-pages}
27    \ifconditional\btxinteractivepage
28        \goto {
29            \currentbtxfirstpage
30        } [
31            internal(\currentbtxfirstinternal)
32        ]
33        \ifx\currentbtxlastpage\empty \else
34            %\btxparameter\c!pageconnector
35            \btxparameter\c!range
36            \goto {
37                \currentbtxlastpage
38            } [
39                internal(\currentbtxlastinternal)
40            ]
41        \fi
42    \else
43        \currentbtxfirstpage
44        \ifx\currentbtxlastpage\empty \else
45            \btxparameter\c!range
46            \currentbtxlastpage
47        \fi
48    \fi
49\stopsetups
50
51\protect
52