[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
Hi Mikael, with the solution provided by you, I could work on my graphic which grows from page to page. So far I have already 28 pages. Now I would like to go back to the summed graphic of p1 to p21 and add the coming p29, p30 etc. to only that (that means contents of p22 to p28 should not be

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
Dear Emanuel, > Le 2 déc. 2023 à 12:08, Emanuel Han via ntg-context a > écrit : > > Hi Mikael, > > here's a very simple mwe for the label(textext()) issue. On page 1, the text > "Word 1" should be drawn in position z1. On page 2, the same text in the same > position should be visible, and

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Thank you Mikael, this works! Emanuel On Dez. 2 2023, at 7:46 pm, Mikael Sundqvist wrote: > Hi, > > I don't know if \startMPinclusions \stopMPinclusions shall work with > \startMPpage and \stopMPpage. In this case, one can use a separate > graphics: > > \startuseMPgraphic{base} > picture p[]; >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi, I don't know if \startMPinclusions \stopMPinclusions shall work with \startMPpage and \stopMPpage. In this case, one can use a separate graphics: \startuseMPgraphic{base} picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image(

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Hi Mikael, here's a very simple mwe for the label(textext()) issue. On page 1, the text "Word 1" should be drawn in position z1. On page 2, the same text in the same position should be visible, and the text "Mot 2" in position p2 should be added. And so on. \startMPinclusions picture p[]; path

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi Emanuel, I am not sure I understand your question, and since you use fonts that i do not have, I cannot test your example as is. But, maybe, if you want to redraw a picture, you can do addto currentpicture also p1; where you want it. /Mikael PS For the text thing, I did not get it. Could

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
You didn't specify the color of path A in p2 and p4. So it's drawn in black. The other issue, I can't help. Emanuel Han via ntg-context 於 2023年12月2日 週六 下午7:23寫道: > So is there a way to circumvent these issues? Or an explanation for this > behavior, so that I can try to find a solution by

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
So is there a way to circumvent these issues? Or an explanation for this behavior, so that I can try to find a solution by myself? Thanks Emanuel On Nov. 29 2023, at 12:25 pm, Emanuel Han via ntg-context wrote: > Dear Aditya and Fabrice, > thanks for your responses. > > I included some of

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
Dear Aditya and Fabrice, thanks for your responses. I included some of Fabrice's code into mine for testing purpose, and indeed the multipage works now. What is bizarre is that issues appear now that didn't appear before: Path A is drawn with color red on page 1, and in color black on all

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
On Mon, 27 Nov 2023, Fabrice L wrote: > Hi, > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > multiple times. Here is an example which build an animation of a particle > moving according to a Brownian motion. A very similar option is to pass a variable to a

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
Hi, It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage multiple times. Here is an example which build an animation of a particle moving according to a Brownian motion. Fabrice. % 8< --- \usecolors[crayola] \setupMPinstance