From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2556 Path: main.gmane.org!not-for-mail From: Berend de Boer Newsgroups: gmane.comp.tex.context Subject: Re: New \setup... Date: Mon, 28 Aug 2000 21:13:53 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <39AAB9F1.48A5D847@pobox.com> References: <39AA8876.7F8993E@econ.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035393342 9844 80.91.224.250 (23 Oct 2002 17:15:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:15:42 +0000 (UTC) Cc: Context Original-To: Michal Kvasnicka Xref: main.gmane.org gmane.comp.tex.context:2556 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2556 Michal Kvasnicka wrote: > > Hallo! > > I'm updating my package for direct typesetting SGML with TeX. I'd like > to customize it in time to be ConTeXt-like. How those \setup...'s are > working? > How can I write my own? Is there some tool (macro) for that? I'd like > something > like this: > \definesgmltag [tag name] [based on] > [grouped = yes|no, > beforegroup = command, > aftergroup = command, > before = command, > after = command, > swallowed =command] > where "based on" is voluntary. And similar to that: > \setupsgmltag[tag name] [see #3 in \definesgmltag] > > \definesgmlspecialtag [tag name] [based on] [command = command] This is: \def\definesgmltag% [\dotripleempty\dodefinesgmltag] \def\dodefinesgmltag[#1][#2][#3]% {...} Keys can be processed with \processallactionsinset (or \processfirstactioninset and such). Look in the source for examples: \processallactionsinset [#2] [baseon=> \somemacro, notbasedon=> \someothermacro, \s!unknown=>\elsemacro] Important source files are syst-ext.tex, syst-gen.tex > Is there some documentation for this? Not really, but the source is clear, but perhaps you need to know dutch :-) Groetjes, Berend. (-: