strc-doc.mkiv /size: 1934 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=strc-doc,
3
%D version=2008.10.20,
4
%D title=\CONTEXT\ Structure Macros,
5
%D subtitle=Document Structure,
6
%D author=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
\writestatus
{
loading
}
{
ConTeXt
Structure
Macros
/
Document
Structure
}
15 16
\registerctxluafile
{
strc
-
doc
}
{
}
17 18
\unprotect
19 20
%D This will move:
21 22
% \unexpanded\def\setstructuresynchronization#1% todo: use ctxcontext
23
% {\clf_setinternalreference
24
% prefix {\currentstructurereferenceprefix}%
25
% reference {\currentstructurereference}
26
% internal \locationcount
27
% view {\interactionparameter\c!focus}%
28
% \relax
29
% \xdef\currentstructureattribute {\the\lastdestinationattribute}%
30
% \xdef\currentstructuresynchronize{\strc_lists_inject_enhance{#1}}}
31 32
\unexpanded
\def
\setstructuresynchronization
#
1
% todo: use ctxcontext
33
{
\clf_setinternalreference
34
prefix
{
\currentstructurereferenceprefix
}
%
35
reference
{
\currentstructurereference
}
36
internal
\locationcount
37
view
{
\interactionparameter
\c!focus
}
%
38
\relax
39
\xdef
\currentstructureattribute
40
{
\the
\lastdestinationattribute
}
%
41
\xdef
\currentstructuresynchronize
42
{
\currentstructuresynchronize
43
\strc_lists_inject_enhance
{
#
1
}
}
}
44 45
\unexpanded
\def
\setstructurecomponentsynchronization
#
1
% todo: use ctxcontext
46
{
\clf_setinternalreference
47
prefix
{
\currentstructurecomponentreferenceprefix
}
%
48
reference
{
\currentstructurecomponentreference
}
49
internal
\locationcount
50
view
{
\interactionparameter
\c!focus
}
%
51
\relax
52
\xdef
\currentstructurecomponentattribute
{
\the
\lastdestinationattribute
}
%
53
\xdef
\currentstructurecomponentsynchronize
{
\strc_lists_inject_enhance
{
#
1
}
}
}
54 55
\protect
\endinput
56