Hans Hagen wrote:

> [to inline xml] try:

> \setupcolors[state=start]
>
> \definetype[typeXML][option=XML,palet=colorpretty]
>
> test \typeXML{<what/>} test

The code works, and, as usual, you've upstaged me with a much cleaner
interface.

> Another nice one is:
> 
> %\setupXMLfile[level=2]
> %\showXMLlin[here,there]
> %\showXMLwrd[whow]
> 
> (ign,lin,wrd,par,txt,nop,emp)
> 
> \startbuffer
> <here> <there> <whow> oeps </whow> </there> </here>
> \stopbuffer
> 
> \showXMLbuffer
> 
> there is also \showXMLfile

Hans, you make life hard.  I've been playing around with this, this
afternoon, it's like magic.  But now I've got to rethink how I
format XML to exploit the pretty-printing capability, especially how I
should group elements.

> this trickery is used in:
>
> $ texexec --pdf --use=xml-01 somexmlfile [--mode=packed,wide]  
>
> use pdftotext afterwards and you'll have a prettier xml file

Do you wake up in the morning and think to yourself I'll build a
better version of lgrind?  This I can use immediately.  Thankyou.

> $ texexec --pdf --use=xml-02 somexmlfile  
>
> pretty print (recognized xsd, rlg, xml, exa)

And it also comes in colour.

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

Reply via email to