blob: 0fd3440e0ed43c3613951d104ea00c8371cd589a (
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
|
%D \module
%D [ file=publ-tra,
%D version=2013.12.24,
%D title=\CONTEXT\ Publication Support,
%D subtitle=Tracing,
%D author=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.
% todo: make this a runtime module
% todo: use the module interface
\writestatus{loading}{ConTeXt Publication Support / Tracing}
\registerctxluafile{publ-tra}{1.001}
\unprotect
\unexpanded\def\showbtxdatasetfields
{\dosingleempty\publ_show_dataset_fields}
\def\publ_show_dataset_fields[#1]%
{\ctxcommand{showbtxdatasetfields("\iffirstargument#1\else\currentbtxdataset\fi")}}
\unexpanded\def\showbtxdatasetcompleteness
{\dosingleempty\publ_show_dataset_completeness}
\def\publ_show_dataset_completeness[#1]%
{\ctxcommand{showbtxdatasetcompleteness("\iffirstargument#1\else\currentbtxdataset\fi")}}
\unexpanded\def\showbtxfields
{\dosingleempty\publ_show_fields}
\def\publ_show_fields[#1]%
{\begingroup
\getdummyparameters[#1]%
\ctxcommand{showbtxfields{ rotation = "\dummyparameter\c!rotation" }}%
\endgroup}
\unexpanded\def\btxaddfields
{\dodoubleempty\publ_add_fields}
\def\publ_add_fields[#1][#2]%
{\ifsecondargument
\ctxcommand{btxaddfield("#1","#2")}%
\fi}
\protect
\continueifinputfile{publ-tra.mkiv}
\starttext
\btxaddfields[one,two][extra one, extra two]
\showbtxfields[rotation=85] \page
\showbtxfields[rotation=90] \page
\stoptext
|