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 OverlayBo

Re: [NTG-context] Struggling with ConTeXt

2012-08-22 Thread Aditya Mahajan
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 OverlayBox withpen pencircle scaled 1pt withcolor gre

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) w

Re: [NTG-context] Struggling with ConTeXt

2012-08-21 Thread Aditya Mahajan
On Tue, 21 Aug 2012, Olivier Binda wrote: 3) I'm flowing text around mathematical text with graphic ornaments (overlay) but the bounding box from metapost (red) and from TeX (black) on the following minimal example aren't the same which produce all kinds of "flowing text" issues. is there a wa

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 c

Re: [NTG-context] Struggling with ConTeXt

2012-08-05 Thread Thomas A. Schmitz
On 08/03/2012 04:50 PM, Sietse Brouwer wrote: I'm looking for a place to put it, but I'm handicapped by the fact that I know nothing about ConTeXt's XML handling. I don't even know whether the question+answer is about general lxml.att usage, or a howto for some specific result. Can somebody tell

Re: [NTG-context] Struggling with ConTeXt

2012-08-03 Thread Hans Hagen
On 3-8-2012 16:50, Sietse Brouwer wrote: Olivier Binda wrote: 1) does lxml.att("#1","some tag") really work ? Hans Hagen wrote: [various solutions] You can wikify this ... I'm looking for a place to put it, but I'm handicapped by the fact that I know nothing about ConTeXt's XML handling. I

Re: [NTG-context] Struggling with ConTeXt

2012-08-03 Thread Sietse Brouwer
Olivier Binda wrote: > 1) does lxml.att("#1","some tag") really work ? Hans Hagen wrote: [various solutions] > You can wikify this ... I'm looking for a place to put it, but I'm handicapped by the fact that I know nothing about ConTeXt's XML handling. I don't even know whether the question+answe

Re: [NTG-context] Struggling with ConTeXt

2012-08-03 Thread Hans Hagen
On 3-8-2012 08:35, Olivier Binda wrote: 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:*} \s

Re: [NTG-context] Struggling with ConTeXt

2012-08-02 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}

Re: [NTG-context] Struggling with ConTeXt

2012-08-02 Thread Aditya Mahajan
On Thu, 2 Aug 2012, Aditya Mahajan wrote: 4) I'm trying to port the following TeX code to ConTeXt $$\eqalign{x&=1\cr y&=2\cr}\qquad \hbox{haha}$$ it looks like \startformula\startalign.. doesn't allow me to do that I somehow managed to have it by typing \startformula \vcenter{\starttabular[|r

Re: [NTG-context] Struggling with ConTeXt

2012-08-02 Thread Aditya Mahajan
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. 2) I'm trying to export to xml and have set \setupbackend[export=yes, xhtml=yes, css=mkiv-export.css] But a) my Metafun/Tikz pictures aren

[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 fo