Re: [NTG-context] XML formulas

2004-12-10 Thread h h extern
Adam Lindsay wrote:
Hi all.
I want to use XML, but in a non-doctrinaire way: I much prefer TeX
formula writing to mathml by hand. 

I looked at xtag-mml, and the \defineXMLenvironment [formula] looked like
just what I wanted. However, when trying it, the XML catcode regime was
still in effect, and the backslashes were printed, and didn't act as escapes.
Am I missing something in the correct usage, or is support incomplete?
This is a sample file, showing how I've been trying to use it:
\useXMLfilter[mml]
\starttext
\startXMLdata
formula
t+3+x+t\neq m\alpha\frac\theta\hbar
/formula
\stopXMLdata
\stoptext
\starttext
\unprotected \def\XMLtex#1%
  {\begingroup
   \disableXML
   [EMAIL PROTECTED]@[EMAIL PROTECTED]@@XMLdata:#1\endcsname}%
   \endgroup}
\defineXMLenvironmentsave
  [formula]
  {}
  {\XMLtex{formula}}
\input bryson
\startXMLdata
formula
t+3+x+t\neq m\alpha\frac\theta\hbar
/formula
\stopXMLdata
\input thuan
\stoptext
Also, what's the status of contml? I like the idea of it as a simple,
structural, basic markup that ConTeXt handles with zero effort, but is
anyone actually using it?
we sometimes mix it into other xml docs; i have no problem with extending it; 
actualy, (see mag-0008.pdf), i want to map most context directly onto xml so 
that we have a rather complete xml input syntax

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML formulas

2004-12-10 Thread Adam Lindsay
h h extern said this at Fri, 10 Dec 2004 22:38:27 +0100:

\unprotected \def\XMLtex#1%
   {\begingroup
\disableXML
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@XMLdata:#1\endcsname}%
\endgroup}

Okay. More strange and wondrous magic. Thanks!
I notice there's a \let\XMLtex already in xtag-ini...

\defineXMLenvironmentsave
   [formula]
   {}
   {\XMLtex{formula}}

Hmm. No math there on my machine.
So do you reckon that this is an acceptable elaboration?

\defineXMLenvironmentsave
   [formula] [label=]
   {}
   {\startformula[\XMLop{label}]
 \XMLtex{formula} \stopformula}

(it runs okay on limited variations here)

Is the existing [formula] definition in xtag-mml obsolete, then?

 Also, what's the status of contml? I like the idea of it as a simple,
 structural, basic markup that ConTeXt handles with zero effort, but is
 anyone actually using it?

we sometimes mix it into other xml docs; i have no problem with
extending it; 
actualy, (see mag-0008.pdf), i want to map most context directly onto xml so 
that we have a rather complete xml input syntax

Okay, cool. I may have found my general authoring tool once I get this
transform worted...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XML formulas

2004-12-09 Thread Adam Lindsay
Hi all.

I want to use XML, but in a non-doctrinaire way: I much prefer TeX
formula writing to mathml by hand. 

I looked at xtag-mml, and the \defineXMLenvironment [formula] looked like
just what I wanted. However, when trying it, the XML catcode regime was
still in effect, and the backslashes were printed, and didn't act as escapes.

Am I missing something in the correct usage, or is support incomplete?


This is a sample file, showing how I've been trying to use it:

\useXMLfilter[mml]
\starttext
\startXMLdata
formula
t+3+x+t\neq m\alpha\frac\theta\hbar
/formula
\stopXMLdata
\stoptext


Also, what's the status of contml? I like the idea of it as a simple,
structural, basic markup that ConTeXt handles with zero effort, but is
anyone actually using it?

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context