On Thu, 23 Sep 2010, Wolfgang Schuster wrote:
Am 23.09.2010 um 22:32 schrieb Hans Hagen:
On 23-9-2010 6:35, Jaroslav Hajtmar wrote:
Hello, masters ...
I would like create my first context mkiv module.
Can someone please steer me what the first study and where to find some
good advice for beginners?
Appropriate would be also a simple module, which was easy to read and
find out how to do everything correctly.
just take a look at wolfgang's ... they use the latest mkiv abstractions
(module namespaces etc, something that Wolfgang, Aditya and I are working on).
fancybreak [1] is at the moment the only module with all these things but the
other will follow
Does it make sense to copy the definition of mult-aux.mkiv to mkii?
Everything other than \definenamespace should work in both mkii and mkiv.
That way, I can use it in modules that target both mkii and mkiv.
BTW, I am still amused how Hans manages to write such code. If you
replace \expandafter with \...@ea, this code will have more # than other
characters combined :)
\unexpanded\def\doinstallparameterhandler#1#2#3#4#5#6#7%
{\def#3##1{\csname#4{#1#2}{##1}\endcsname}%
\def#4##1##2{\ifcsname##1##2\endcsname##1##2\else\expandafter#5\csname##1\s!parent\endcsname{##2}\fi}%
\def#5##1##2{\ifx##1\relax\s!empty\else#4{##1}{##2}\fi}%
\def#6##1##2{\csname#4{#1##1}{##2}\endcsname}%
\def#7##1{\detokenize\expandafter\expandafter\expandafter{\csname#1##1\endcsname}}}
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________