ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Berend de Boer <berend@pobox.com>
Cc: Context <ntg-context@ntg.nl>
Subject: Re: New \setup...
Date: Mon, 28 Aug 2000 21:13:53 +0200	[thread overview]
Message-ID: <39AAB9F1.48A5D847@pobox.com> (raw)
In-Reply-To: <39AA8876.7F8993E@econ.muni.cz>

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. (-:


  reply	other threads:[~2000-08-28 19:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-28 15:42 Michal Kvasnicka
2000-08-28 19:13 ` Berend de Boer [this message]
2000-08-29 11:31   ` New \setup... / sgml processing Hans Hagen
2000-08-29 17:24     ` Berend de Boer
2000-08-29 22:04       ` Hans Hagen
2000-08-30 10:23       ` Michal Kvasnicka
2000-08-30 12:16         ` Hans Hagen
2000-08-30 13:37     ` Johannes Huesing
2000-08-31 11:03       ` Radhakrishnan C V

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39AAB9F1.48A5D847@pobox.com \
    --to=berend@pobox.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).