attr-mkr.mkxl /size: 1024 b    last modification: 2023-12-21 09:44
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}{autosuffix}
19
20\permanent         \protected\def\definemarker    [#1]{\defineattribute[\s!marker:#1]}
21\permanent\tolerant\protected\def\setmarker [#1]#*[#2]{\dosetattribute{\s!marker:#1}{#2}}
22\permanent         \protected\def\resetmarker     [#1]{\dogetattribute{\s!marker:#1}}
23\permanent                   \def\boxmarker       #1#2{attr \numexpr\dogetattributeid{\s!marker:#1}\relax \numexpr#2\relax}
24\permanent         \protected\def\marker            #1{\numexpr\dogetattributeid{\s!marker:#1}\relax}
25
26\protect \endinput
27