%D \module %D [ file=attr-mkr, %D version=2013.01.09, %D title=\CONTEXT\ Attribute Macros, %D subtitle=Markers, %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. \writestatus{loading}{ConTeXt Attribute Macros / Markers} \unprotect \registerctxluafile{attr-mkr}{autosuffix} \permanent \protected\def\definemarker [#1]{\defineattribute[\s!marker:#1]} \permanent\tolerant\protected\def\setmarker [#1]#*[#2]{\dosetattribute{\s!marker:#1}{#2}} \permanent \protected\def\resetmarker [#1]{\dogetattribute{\s!marker:#1}} \permanent \def\boxmarker #1#2{attr \numexpr\dogetattributeid{\s!marker:#1}\relax \numexpr#2\relax} \permanent \protected\def\marker #1{\numexpr\dogetattributeid{\s!marker:#1}\relax} \protect \endinput