[NTG-context] Help with xml & lua

2017-08-07 Thread Olivier Binda
Hello I have been trying for the past 3 days to process files with xml on the lua side (with Context beta 0.70), but I'm at then end of my wits and really need help. On the lua side, I would really like to be able to : 1) transform a tree : replace nodes with other nodes 2) transform a

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Olivier Binda
Thank you for the tips. Here, I cleaned up the code some more (sorry to have left stuff over last time),. I added some explanations to make my issue clearer \startusableMPgraphic{myFrame} draw OverlayBox withpen pencircle scaled 1pt withcolor green; draw (currentpicture enlarged 2cm)

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Olivier Binda
On 22/08/2012 10:42, Aditya Mahajan wrote: On Wed, 22 Aug 2012, Olivier Binda wrote: Thank you for the tips. Here, I cleaned up the code some more (sorry to have left stuff over last time),. I added some explanations to make my issue clearer \startusableMPgraphic{myFrame} draw

Re: [NTG-context] Struggling with ConTeXt

2012-08-20 Thread Olivier Binda
Many thanks for the enlightening answers. The explanations about xml solved question 1 and \startmatrix\stopmatrix solved question 4. I'm now crunching xml input and handling it half in lua and half in tex (and I'm verry happy about it). I'm still struggling with a few points though (with

Re: [NTG-context] Struggling with ConTeXt

2012-08-03 Thread Olivier Binda
On 02/08/2012 17:43, Aditya Mahajan wrote: On Thu, 2 Aug 2012, Olivier Binda wrote: 1) does lxml.att(#1,some tag) really work ? I don't know, but please provide a complete minimal example. \startxmlsetups xml:test \xmlsetsetup{maths}{c}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test

[NTG-context] Struggling with ConTeXt

2012-08-02 Thread Olivier Binda
Hello I'm trying to port a big 300+ pages math course full of macros from plain XeTEX to ConTeXt mark IV (ubuntu 12.04+ stand alone beta) and I'm having some difficulties, could you please help ? My questions : 1) does lxml.att(#1,some tag) really work ? the next snipet doesn't work for