Re: [NTG-context] Problem with the verbosity of XML
On 7/28/2014 1:13 PM, Xan wrote: This is a minimal and isolate example You can see that {\bf Hola} is not processed. well, because you want to typeset it as is: pasHola {\bf a}/pas why should pas be treated as tex? \startxmlsetups xml:demo:pas \startitem \xmlflush{#1} \stopitem \stopxmlsetups versus: \startxmlsetups xml:demo:pas \startitem \xmlflushcontext{#1} \stopitem \stopxmlsetups Mmm... thanks. Very much 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] Problem with the verbosity of XML
On 7/27/2014 7:24 PM, Xan wrote: hi, I have this context file: \environment ../../../../plantilles/entorn-simple-estructurals \environment ../../../../plantilles/entorn-simple-visuals \environment entorn-simple-xml \xmlprocessfile{demo}{80-activitats.xml}{} this XML file (80-activitats.xml): ?xml version=1.0 encoding=UTF-8 standalone='yes'? activitats activitat id=1 tipusexercici/tipus enunciat sintaxi=context![CDATA[ Resol: \startitemize[a] \item $6(x+2)-x + 2 - 8x = 7x -2 -(7-2x)+35$ \item $-(x+2)-2(-3-x) +5x -3 = 5(x +2) -6x -16$ \item $-3(x+2) -1 +5(-x -4) = -7(-5x -2) + x -(-x +2) + 51$ \item $5(5x -2) -30 - 20(-3x +2) = 5- (10x -2) + 5x+183$ \item $8(x-3) + 5 -40x = 5 - (8x -5) + 13$ \item $5-3(4x-1) + 6(x-10) +3 = 5 + 2(x+2) -(10x -5)-64$ \item $5(x-2) + 5x -(2-5x) +1 = 3(x-2) + 3$ \item $12-12(2 -3x) +120 = -48(x + 2)+239$ \item $1 - (x-4) -(5-2x) -(-3-4x) = 6(2x-3) -7(-2x+3)$ \stopitemize ]] /enunciat solucio \startitemize[a,text] \item $x = -1$ \item $x = -1$ \item $x = -2$ \item $x = 3$\stopitemize /solucio /activitat /activitats and this environment: \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{-} \xmlsetsetup{demo}{activitats|tipus|activitat|enunciat|solucio}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:activitats \title{Activitats} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:activitat \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:enunciat \startexercici\xmltext{#1}{/text()}\stopexercici \stopxmlsetups But I get the PDF with the verbose text, not processing (I attach them) What fails? are the environments loaded? -- - 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 ___
Re: [NTG-context] Problem with the verbosity of XML
On 7/28/2014 1:13 PM, Xan wrote: This is a minimal and isolate example You can see that {\bf Hola} is not processed. well, because you want to typeset it as is: pasHola {\bf a}/pas why should pas be treated as tex? \startxmlsetups xml:demo:pas \startitem \xmlflush{#1} \stopitem \stopxmlsetups versus: \startxmlsetups xml:demo:pas \startitem \xmlflushcontext{#1} \stopitem \stopxmlsetups - 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] Problem with the verbosity of XML
hi, I have this context file: \environment ../../../../plantilles/entorn-simple-estructurals \environment ../../../../plantilles/entorn-simple-visuals \environment entorn-simple-xml ... \xmlprocessfile{demo}{80-activitats.xml}{} this XML file (80-activitats.xml): ?xml version=1.0 encoding=UTF-8 standalone='yes'? activitats activitat id=1 tipusexercici/tipus enunciat sintaxi=context![CDATA[ Resol: \startitemize[a] \item $6(x+2)-x + 2 - 8x = 7x -2 -(7-2x)+35$ \item $-(x+2)-2(-3-x) +5x -3 = 5(x +2) -6x -16$ \item $-3(x+2) -1 +5(-x -4) = -7(-5x -2) + x -(-x +2) + 51$ \item $5(5x -2) -30 - 20(-3x +2) = 5- (10x -2) + 5x+183$ \item $8(x-3) + 5 -40x = 5 - (8x -5) + 13$ \item $5-3(4x-1) + 6(x-10) +3 = 5 + 2(x+2) -(10x -5)-64$ \item $5(x-2) + 5x -(2-5x) +1 = 3(x-2) + 3$ \item $12-12(2 -3x) +120 = -48(x + 2)+239$ \item $1 - (x-4) -(5-2x) -(-3-4x) = 6(2x-3) -7(-2x+3)$ \stopitemize ]] /enunciat solucio \startitemize[a,text] \item $x = -1$ \item $x = -1$ \item $x = -2$ \item $x = 3$\stopitemize /solucio /activitat /activitats and this environment: \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{-} \xmlsetsetup{demo}{activitats|tipus|activitat|enunciat|solucio}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:activitats \title{Activitats} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:activitat \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:enunciat \startexercici\xmltext{#1}{/text()}\stopexercici \stopxmlsetups But I get the PDF with the verbose text, not processing (I attach them) What fails? Thanks in advance, Xan 80-seleccio.pdf Description: Adobe PDF document ___ 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 ___