attr-mkr.mkiv /size: 842 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=attr-mkr,
3
%D version=2013.01.09,
4
%D title=\CONTEXT\ Attribute Macros,
5
%D subtitle=Markers,
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
Attribute
Macros
/
Markers
}
15 16
\unprotect
17 18
\registerctxluafile
{
attr
-
mkr
}{}
19 20
\unexpanded
\def
\definemarker
[#
1
]
{
\defineattribute
[
\s!marker
:
#
1
]
}
21
\unexpanded
\def
\setmarker
[#
1
]#
2
[#
3
]
{
\dosetattribute
{
\s!marker
:
#
1
}{
#
3
}}
22
\unexpanded
\def
\resetmarker
[#
1
]
{
\dogetattribute
{
\s!marker
:
#
1
}}
23
\def
\boxmarker
#
1
#
2
{
attr
\numexpr
\dogetattributeid
{
\s!marker
:
#
1
}
\numexpr
\numexpr
#
2
\relax
}
24 25
\protect
\endinput
26