summaryrefslogtreecommitdiff
path: root/tex/context/base/attr-mkr.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-01-10 02:20:15 +0200
committerMarius <mariausol@gmail.com>2013-01-10 02:20:15 +0200
commitd38d94fe9542984e38b9839eb2383656328b9da9 (patch)
tree2b14bc228f545d31c35076e1e395113c3abdf393 /tex/context/base/attr-mkr.mkiv
parent0f948daabca9dcfb92d6325b9a7a5edba22c5abb (diff)
downloadcontext-d38d94fe9542984e38b9839eb2383656328b9da9.tar.gz
beta 2013.01.10 01:04
Diffstat (limited to 'tex/context/base/attr-mkr.mkiv')
-rw-r--r--tex/context/base/attr-mkr.mkiv25
1 files changed, 25 insertions, 0 deletions
diff --git a/tex/context/base/attr-mkr.mkiv b/tex/context/base/attr-mkr.mkiv
new file mode 100644
index 000000000..c8818ebae
--- /dev/null
+++ b/tex/context/base/attr-mkr.mkiv
@@ -0,0 +1,25 @@
+%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}{1.001}
+
+\unexpanded\def\definemarker [#1]{\defineattribute[\s!marker:#1]}
+\unexpanded\def\setmarker [#1]#2[#3]{\dosetattribute{\s!marker:#1}{#3}}
+\unexpanded\def\resetmarker [#1]{\dogetattribute{\s!marker:#1}}
+ \def\boxmarker #1#2{attr \numexpr\dogetattributeid{\s!marker:#1}\numexpr \numexpr#2\relax}
+
+\protect \endinput