Re: [NTG-context] Problems with XML and table of contents
Finally, I use xsltproc and xml from scratch for this conversion, because Aditya module seems to does not work with XML. The process is XML, XSLT --> ConTeXT file -> PDF file Just for interest of someone... Xan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with XML and table of contents
Thanks, many thanks Hans. The key is expansion=yes. Without, "phantom" contents in table of contents. With, all is ok: \definehead [Fitxa] [subsection][ownnumber=yes,expansion=yes] Xan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with XML and table of contents
On 3/27/2014 11:55 AM, Xan wrote: Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get "phantom" content. Any clue? \definehead [Fitxa] [subsection][ownnumber=yes,expansion=yes] \newcounter\FitxaNumber \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:d \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:t \doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:demo:b \start \bf \xmlflush{#1} \stop \stopxmlsetups \starttext \placelist[Fitxa][criterium=all] \page \xmlprocessfile{demo}{./x.xml}{} \stoptext normal bold some more - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problems with XML and table of contents
Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get "phantom" content. Any clue? Thanks in advance, Xan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___