Johannes Graumann wrote: > Aaarghh ... attachments here ... > texexec --env=xml.ctex --pdf xml.xml
with \defineXMLargument [tableofcontents] {\completecontent[criterium=text]} \defineXMLargument [listoffigures] {\completelistoffigures[criterium=text]} \defineXMLargument [listoftables] {\completelistoftables[criterium=text]} (by default tocs are local (i.e. if you ask for one in a chapter, you get one with sections) btw, if you use newtexexec, you can make a xml.ctx file that says: <?xml version='1.0' standalone='yes'?> <ctx:job> <ctx:message>whatever you like</ctx:message> <ctx:preprocess/> <ctx:process> <ctx:resources> <ctx:environment>xml.ctex</ctx:environment> </ctx:resources> </ctx:process> <ctx:postprocess/> </ctx:job> and directly run: newtexexec xml.xml > Johannes Graumann wrote: > > >> Hans Hagen wrote: >> >>> \defineXMLenvironment >>> [chapter] >>> {\defineXMLargument[title]{\chapter} >>> \defineXMLprocess[content]} >>> {} >>> >>> \defineXMLargument >>> [tableofcontents] >>> {\completecontent} >>> >>> <chapter> >>> <title> >>> Title >>> </title> >>> <content> >>> <p>Text.</p> >>> </content> >>> </chapter> >>> >> Hans, thank you so much for your patience with this ambitious newbie ... >> who still can't get this to work. With your help (see above) the chapter >> is now showing up as intended - but still missing from the table of >> contents (which I already had defined as you propose). >> >> I attach my xml and the ConTeXt file embedding it, as well as the pdf >> output and would greatly appreciate if you (or some other kind soul) could >> enlighten me as to what I am doing wrong. >> >> Thanks for all the help! >> >> Deadlined, Joh >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context >> -- ----------------------------------------------------------------- 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