[NTG-context] XML question regarding special characters
Adam Lindsay
atl at comp.lancs.ac.uk
Fri Jan 7 20:23:53 CET 2005
Zeljko Vrba said this at Fri, 7 Jan 2005 19:35:27 +0100:
>I'm trying to design a "universal" markup that will be easy to convert both
>to PDF and HTML.
Hi there. Sounds as if we're after similar things. I've been working on
similar stuff, expanding on the existing x-contml module with code in
this project:
<http://oo2contml.sourceforge.net/>
(The source code link may be instructive.)
><formula label="fm:whatever>
> x^{2} < y
></formula>
I use the following, as "heavily influenced" by Hans:
%D Recommended by Hans as a variant of \type{\XMLtex}:
\unprotected\def\XMLtexdata#1%
{\begingroup
\disableXML
\scantokens\@EA\@EA\@EA{\csname\@@XMLdata:#1\endcsname}%
\endgroup}
%D Display|| and in||line math using \TeX\ syntax:
\defineXMLenvironmentsave
[context:dispformula] [label=]
{}
{\startformula[\XMLop{label}]
\XMLtexdata{context:dispformula} \stopformula}
\defineXMLenvironmentsave
[context:formula] []
{}
{\mathematics{\XMLtexdata{context:formula}}}
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl at comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the ntg-context
mailing list