ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Pawel Jackowski na Onet" <jackos1@poczta.onet.pl>
Subject: Re: XML command synonyms
Date: Sat, 27 Sep 2003 07:41:30 +0200	[thread overview]
Message-ID: <000201c384c6$c9e5d6a0$0500a8c0@best> (raw)
In-Reply-To: <20030925191353.GB603@scaprea>


From: "Simon Pepping" <spepping@scaprea.hobby.nl>

> >P: How to define 'SSSS' as a synonym of 'subsubsubsubsection' without
wrtiting
> >P:  the same code twice?
>
> From DocbookInContext:
>
> %D A \type{\let} for XML environments
> \def\letXMLenvironment#1#2%
>   {\letvaluevalue{\@@XMLelement:#1/}{\@@XMLelement:#2/}%
>    \letvaluevalue{\@@XMLelement:#1}{\@@XMLelement:#2}%
>    \letvaluevalue{\@@XMLelement:/#1}{\@@XMLelement:/#2}}%
>
> Works for XMLenvironment.
>
> Regards, Simon

Thanks a lot, but I'm afraid that doesn't work. TeX complains about
undefined control sequence:


    ConTeXt  ver: 2002.5.24  fmt: 2003.9.3  int: english  mes: english

    ....

    ! Undefined control sequence.
    \letXMLenvironment #1#2->\letvaluevalue

{\@@XMLelement:#1/}{\@@XMLelement:#2...
    l.15 \letXMLenvironment{chapter}{X}

    ?
    ! Emergency stop.
    \letXMLenvironment #1#2->\letvaluevalue

{\@@XMLelement:#1/}{\@@XMLelement:#2...
    l.15 \letXMLenvironment{chapter}{X}

    End of file on the terminal!


Is my ConTeXt to old?

Pawe/l

  reply	other threads:[~2003-09-27  5:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25 12:57 Pawel Jackowski na Onet
2003-09-25 14:41 ` Willi Egger
2003-09-25 15:18   ` Willi Egger
2003-09-25 19:13 ` Simon Pepping
2003-09-27  5:41   ` Pawel Jackowski na Onet [this message]
2003-09-27 10:18     ` Hans Hagen
2003-09-27 22:28       ` Pawel Jackowski na Onet
2003-09-29 18:30       ` Simon Pepping
2003-09-30  8:04         ` Hans Hagen
2003-09-30 19:06           ` pushmacro Simon Pepping
2003-09-30 19:47 XML command synonyms Pawel Jackowski na Onet

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='000201c384c6$c9e5d6a0$0500a8c0@best' \
    --to=jackos1@poczta.onet.pl \
    --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).