ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Richard Gabriel <rgabriel@kerio.com>
Subject: XML in ConTeXt & verbatim text
Date: Tue, 14 Dec 2004 16:48:05 +0100	[thread overview]
Message-ID: <41BF0B35.4070301@kerio.com> (raw)

Hi all,

I'm back here with the following problem:

I'm processing XML files (DocBook DTD) which also may contain the 
<programlisting> tag with some preformatted text.

In a sample TeX file, I've tested the following:

\starttyping
<somecontext>
  <variable name="Var">
    Value of Var
  </variable>
</somecontext>
\stoptyping

This works and the result is great.

So I defined a macro to process the <programlisting> tag from the XML file:
\defineXMLenvironment[programlisting]{\starttyping}{\stoptyping}

This causes an error while processing. Most probably the \starttyping 
command breaks things inside the \defineXMLenvironment macro...

Any guess how to solve this issue?

Many thanks!

Richard

             reply	other threads:[~2004-12-14 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14 15:48 Richard Gabriel [this message]
2004-12-14 17:27 ` Adam Lindsay
2004-12-15 15:43   ` Richard Gabriel
2004-12-15 16:57     ` Hans Hagen
2004-12-16 15:36       ` Richard Gabriel
2004-12-16 16:02         ` Hans Hagen
2004-12-17  7:50           ` Richard Gabriel

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=41BF0B35.4070301@kerio.com \
    --to=rgabriel@kerio.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).