ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML question regarding special characters
@ 2005-01-07 18:35 Zeljko Vrba
  2005-01-07 19:23 ` Adam Lindsay
  0 siblings, 1 reply; 10+ messages in thread
From: Zeljko Vrba @ 2005-01-07 18:35 UTC (permalink / raw)



Hi!

I'm trying to design a "universal" markup that will be easy to convert both
to PDF and HTML. I've come to code and equations. I don't want to use
MathML and I want to output (and use in my documents!) verbatim TeX code of
equations to HTML. What worries me is the following:

I want to be able to write and run through Context XML processing:

<formula label="fm:whatever>
  x^{2} < y
</formula>

or, for typesetting computer programs:

<code>
  if((x&y) >= 3) {
    do_something();
  }
</code>

(this would translate to \starttyping\stoptyping)

How do I define XML environments that can handle XML special characters
(<>&, etc., I  don't know all of them..) gracefully? (i.e. so that I don't
have to type <code> if((x&amp;y) &gt;= 3) </code> and similar for formulas)

Thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-11 10:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-07 18:35 XML question regarding special characters Zeljko Vrba
2005-01-07 19:23 ` Adam Lindsay
2005-01-09 14:06   ` m-letter.tex -- backslash interpretation error Rob Ermers
2005-01-09 20:04     ` h h extern
2005-01-10 17:10       ` Rob Ermers
2005-01-10 18:08         ` Hans Hagen
2005-01-10 19:34           ` Rob Ermers
2005-01-11 10:15             ` Hans Hagen
2005-01-11  7:48           ` Christopher Creutzig
2005-01-11  9:52             ` Hans Hagen

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).