Aditya Mahajan wrote: > <--- On Mar 17, Alexander Lazic wrote ---> > > >> Hi, >> >> i plan to write a math-booklet and have a question about the >> math-modules in contex. >> >> What is the preferd way to deal with math in contex? >> >> MathML (xml-way) or >> \*formula (tex-way, from my point of view) >> > > I do not know the pros and cons of both methods, but I personally find > the mathML too verbose to type in. If you have an editor generating > the mathml for you, it is a different matter. But if you prefer to > type in your formulas,the tex way is much easier to input. > you can also think of a mixture: content mathml for nicely structured formulas and a simple tex mode for inline math:
\defineXMLargument[tm]{\XMLtexmath} \def\XMLtexmath#1{\bgroup\setnormalcatcodes\scantokens{\mathematics{#1}\ignorespaces}\egroup} \startbuffer[test] Sometimes it makes sense to use simple math, as in: <tm>e=mc^2</tm>. \stopbuffer \processXMLbuffer[test] (i will provide a 'calcmath' filter once luatex is there) 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context