ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Berend de Boer <berend@pobox.com>
Cc: ntg-context@ntg.nl
Subject: Re: Some XML typesetting questions
Date: 08 Oct 2001 09:07:30 +0200	[thread overview]
Message-ID: <87d73yy5hp.fsf@dellius.nederware.nl> (raw)
In-Reply-To: <WR21624906-23710@mail.tinysw.cz>

Jaroslav Snajdr <jarda@tinysoftware.cz> writes:

> Pushing and popping cannot cope with chapter content. Now I do this:
> 
> \defineXMLcommand[chapter]{\let\DBtitle=\chapter}
> \defineXMLargument[title]{\DBtitle}
> 
> But I'm a bit afraid what will happen when I come to support tag
> arguments or other things.

Perhaps do something like this:

\defineXMLcommand[chapter]
        {\global\defineXMLcommand[title]{..}{..}}

So you redefine the action for title based on
chapter/section/etc. Title can be defined more or less according to
the code in the manual I assume.

(not sure if the global is needed)

-- 
Groetjes,

Berend. (-:


  reply	other threads:[~2001-10-08  7:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-07 21:05 Jaroslav Snajdr
2001-10-08  7:07 ` Berend de Boer [this message]
2001-10-08  7:10 ` Berend de Boer
2001-10-08  9:25   ` Hans Hagen
2001-10-08 10:00     ` Berend de Boer
2001-10-08 16:15       ` Hans Hagen
2001-10-08 17:16         ` Berend de Boer
2001-10-09  7:24           ` Hans Hagen
2001-10-09  9:53             ` Berend de Boer
2001-10-09 15:38               ` Hans Hagen
2001-10-09 19:10                 ` Simon Pepping
2001-10-08 20:33     ` Simon Pepping
2001-10-09  7:40       ` Hans Hagen
     [not found] ` <87lmiksq01.fsf@dellius.nederware.nl>
2001-10-10  8:21   ` Hans Hagen
2001-10-23 11:08   ` Hans Hagen

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=87d73yy5hp.fsf@dellius.nederware.nl \
    --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).