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: Sun, 28 Sep 2003 00:28:20 +0200	[thread overview]
Message-ID: <003b01c38546$ae887810$0500a8c0@best> (raw)
In-Reply-To: <5.2.0.9.1.20030927121550.01b54f30@server-1>

Hello!

From: "Hans Hagen" <pragma@wxs.nl>


 >
\letcsnamecsname\csname\@@XMLelement:#1\endcsname\csname\@@XMLelement:#2\end
csname
>
> etc, but before you enter that track, what exactly do you want?

In example; assume that 'subsubsubsubsection' is already defined part of a
document

    \defineXMLenvironment
     [subsubsubsubsection]
     {\subsubsubsubsection}
     {\relax}

Now I would like to define some abbreviations like 'SSSS' (or 'ssss' or even
'S4') in the way that


    <SSSS> ... </SSSS>

will work as well as

    <subsubsubsubsection> ... </subsubsubsubsection>

Of course I can rewrie environment definitions for each needed abbreviation,
but it doesn't seems to be clever way...

Another simple example;

    defineXMLargument
     [center]
     {\midaligned}

How  defne 'mid' tag as a synonym of 'center' without rewriting

    defineXMLargument
     [mid]
     {\midaligned}


So the <bf>question</bf> is how to define <b>synonyms</b> for XML elements,
singular commands, entities...



Regards, Pawe/l

  reply	other threads:[~2003-09-27 22:28 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
2003-09-27 10:18     ` Hans Hagen
2003-09-27 22:28       ` Pawel Jackowski na Onet [this message]
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='003b01c38546$ae887810$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).