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
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@@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.     [EMAIL PROTECTED]
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to