source files and ConTeXt style
Hi. I'm just starting to look at detailed TeX stuff. I'd like to write some ConTeXt-style macros to support a user. I've already wrapped some MPGraph functions in some old-fashioned TeX-style multiple-argument macros, but I would like to offer my user something more modern and ConTeXt-like. Does anyone have any hints on looking at the ConTeXt code for writing modules? Any hints on achieving Hans-like \dodododo zen? Ik heb een beetje nederlands, but finding mappings between nl-commando's and en- commands is still elusive when trying to decode some multilingual sources. So I know it's too much to ask to get inside Hans's brilliant mind, but I was wondering if some power-users can offer some hints in terms of starting to understand the style of the sources. Thanks, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Okay, I'll answer part of my own question, because some more concentrated looking helped at least get some of the structure: I believe Adam Lindsay said this around Sun, 27 Oct 2002:
finding mappings between nl-commando's and en- commands is still elusive when trying to decode some multilingual sources.
I don't know how I missed this, but mult-com.tex gives exactly that. A run through "texexec --pdf --module" gave a very nice guide. Similarly, context.tex gives a very clear idea of which modules get loaded in which order. I think syst-gen.tex will give me a good start on the ConTeXt "style" that I was looking for, but if anyone has any further advice on understanding the source code philosophy or on writing modules, it's very welcome. Is there central documentation that maps the source code names to something more understandable? (e.g. colo-*.tex => color macros cont-*.tex => language format generation java-*.tex => javascript support *-ini.tex => initialization ) I've figured it out myself, but want to know if there was an easier way of finding this information than doing "head -20" on a bunch of files. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
At 04:37 PM 10/27/2002 +0000, Adam Lindsay wrote:
Hi.
I'm just starting to look at detailed TeX stuff. I'd like to write some ConTeXt-style macros to support a user. I've already wrapped some MPGraph functions in some old-fashioned TeX-style multiple-argument macros, but I would like to offer my user something more modern and ConTeXt-like.
the metafun manuals explains how to pass key/values to mp graphics defined by \startuse...
Does anyone have any hints on looking at the ConTeXt code for writing modules? Any hints on achieving Hans-like \dodododo zen? Ik heb een beetje nederlands, but finding mappings between nl-commando's and en- commands is still elusive when trying to decode some multilingual sources.
hm, th es-pre-* styles are rather clean
So I know it's too much to ask to get inside Hans's brilliant mind, but I was wondering if some power-users can offer some hints in terms of starting to understand the style of the sources.
support stuff can be found in: syst-gen.tex syst-ext.tex supp-box.tex Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (2)
-
Adam Lindsay
-
Hans Hagen