summaryrefslogtreecommitdiff
path: root/tex/context/third/enigma/t-enigma.mkvi
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2012-02-22 13:59:16 +0100
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2012-02-22 13:59:16 +0100
commit93bc0e3e7ddf05dc368468fc4ecb13d6bd69d727 (patch)
treee11a76d80a6a2547c6b7fb6cffbe731d166f2737 /tex/context/third/enigma/t-enigma.mkvi
parentd80b2ce2aeb716c91fb4ffe6a3fb7cd2bc1ebe1f (diff)
downloadenigma-93bc0e3e7ddf05dc368468fc4ecb13d6bd69d727.tar.gz
docstring restructuring; [preproc] fixed multichar replacements
Diffstat (limited to 'tex/context/third/enigma/t-enigma.mkvi')
-rw-r--r--tex/context/third/enigma/t-enigma.mkvi12
1 files changed, 10 insertions, 2 deletions
diff --git a/tex/context/third/enigma/t-enigma.mkvi b/tex/context/third/enigma/t-enigma.mkvi
index 49ebc54..3165e43 100644
--- a/tex/context/third/enigma/t-enigma.mkvi
+++ b/tex/context/third/enigma/t-enigma.mkvi
@@ -39,13 +39,15 @@ thirddata = thirddata or { }
\stopluacode
\registerctxluafile{enigma}
-%D \startsection[title=setups]
+%D \startdocsection[title=setups]
+%D \startparagraph
%D The main setup. The \texmacro{defineenigma} macro does not adhere to
%D the reommended practis of automatical macro derivation. Rather, we
%D have our own parser do the job of setting globals. This is a
%D consequence of the intention to offer the same behavior in any of the
%D three main formats, \PLAIN, \CONTEXT and \LATEX. Hence, we don’t rely
%D on the internal mechanisms but implement our own macro generator.
+%D \stopparagraph
\def\do_define_enigma#id{%
\expandafter\gdef\csname start\enigmaid\endcsname{%
@@ -76,8 +78,9 @@ thirddata = thirddata or { }
\endgroup%
}
-%D \stopsection
+%D \stopdocsection
+%D \startdocsection[title=Setup]
\def\do_setup_enigma#args{%
\ctxlua{
local enigma = thirddata.enigma
@@ -91,8 +94,11 @@ thirddata = thirddata or { }
\egroup%
}
+%D \startparagraph
%D The module setup \texmacro{setupenigma} expects key=value, notation.
%D All the logic is at the Lua end, not much to see here …
+%D \stopparagraph
+
\def\setupenigma#id{%
\bgroup
\edef\currentenigmaid{#id}
@@ -101,5 +107,7 @@ thirddata = thirddata or { }
\do_setup_enigma%
}
+%D \stopdocsection
+
\protect
% vim:ft=context:sw=2:ts=2:tw=72