[EMAIL PROTECTED] said this at Fri, 25 Feb 2005 11:38:27 -0500: >> Hans began that with ContML, a simplified XML structure for basic >> documents, mirroring familiar ConTeXt commands (take a look at the x- >> contml.tex source). He enabled a lot more with the tricks features in >> This Way #9 (the magazine link). > >Sorry to be dense, but I can't find this. Could you give me a link? It >looks like ContML is just for math?
Well, x-contml.tex is in the ConTeXt source tree. (Often we'll talk about filenames like x-contml, type-exa, and m-layout on the list. They have an implied .tex extension and are (almost) all found in your updated TeX tree, in tex/context/base.) You can have an XML document/fragment like: <context:text> <context:section>A Sample Document</context:section> <context:include name="knuth" type="tex"/> <context:subsection>Something deeper</context:subsection> <context:p>Some text with <context:em>emphasis</context:em> and <context:type>some</context:type> other <context:b>style</context:b>. <context:itemize type="n"> <context:item>Oh look, a list</context:item> <context:item>With three items, which</context:item> <context:item>Hardly seems worth the effort.</context:item> </context:itemize> </context:p> </context:text> and run it with: texexec --pdf --use=contml filename.xml So ContML is not just about math at all. For (XML) math, you want to go to the MathML modules, which are in the xtag-mm* ConTeXt files. The interesting things come when you use mappings akin to the ones here: <http://www.pragma-ade.com/show-mag-9.htm> and my stuff that I plugged earlier. Not only can you use XML for structural markup, but (with a little work) you can use it for simple style configuration, like this in front of a document similar to the above: <config:setupwhitespace dimension="big"/> <config:definetypeface name="charter"/> <config:definetypeface family="sans" name="helvetica" rscale="0.91"/> <config:setupbodyfont size="12pt"/> <config:setuphead label="section" style="tfb" alternative="inmargin"/> <config:setuphead label="subsection" style="ita" alternative="inmargin"/> <config:setuplayout label="preset-2-2" columns="8"/> <config:enablelayout label="preset-2-2"/> <context:articleheader title="On ContML" author="Adam T. Lindsay" date="February 25, 2005"/> This will look *very* familiar to ConTeXt users, and some of them might even find this syntax easier to remember than with some of ConTeXt's commands. One of the key ideas to take away from ConTeXt's XML manual <http:// www.pragma-ade.com/show-man-15.htm> is that there are *many* different paths to take when processing XML. You can now take a 100% XML path with XSL-FO, now, but that misses out on so much of ConTeXt's excellent capabilities. Hope that helps, 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 ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context