Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Fabrice L via ntg-context
Hi,Le 24 août 2022 à 22:50, fv leung via ntg-context a écrit :The following used to produce three parallel lines.Now it produces one straight line and two arcs.\starttext\startMPcode  z0 = origin;  z1 = 72dir(45);  dotlabel.bot("z0", z0);  draw z0--z1;  draw (z0--z1)

Re: [NTG-context] Metafun : save memory content ?

2022-07-19 Thread Fabrice L via ntg-context
Dear Bruce, dear list, > Le 19 juill. 2022 à 07:42, Bruce Horrocks a écrit : > >> On 19 Jul 2022, at 04:28, Fabrice L via ntg-context >> wrote: >> >> Complementary question : I saw that the « pos_a » « pos_b » of the example >> could not take numerical v

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Fabrice L via ntg-context
> Le 18 juill. 2022 à 12:31, Hans Hagen via ntg-context a > écrit : > > On 7/18/2022 3:20 PM, Fabrice L via ntg-context wrote: >> Dear list, >> I’m doing animations in MetaFun, by simply using \startMPpage (…) >> \stopMPpage for each frame of the animation.

[NTG-context] Metafun : save memory content ?

2022-07-18 Thread Fabrice L via ntg-context
Dear list, I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage for each frame of the animation. Here is an example: https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by adjusting the setting in YouTube). This works usually great, but when the number of

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Fabrice L via ntg-context
> Le 5 juill. 2022 à 19:00, Henning Hraban Ramm via ntg-context > a écrit : > > How can I change the font size of labels within one picture? > > Hraban > > \startMPpage > defaultfont := "\truefontname{Sans}"; > defaultfontsize := \the\bodyfontsize; > > label.top(defaultfontsize, (0,0)); >

Re: [NTG-context] Importing pdf into MPpage

2022-06-11 Thread Fabrice L via ntg-context
> Le 11 juin 2022 à 11:30, Stefan Nedeljkovic a écrit : > > That's it, but how do I center it on (0, 0)? Sorry, I misunderstood the question. Here is a solution (perhaps there is a simpler solution !): \startMPpage picture TheImage ; TheImage := image( draw

Re: [NTG-context] Importing pdf into MPpage

2022-06-11 Thread Fabrice L via ntg-context
Dear Stephan, > Le 11 juin 2022 à 08:57, Stefan Nedeljkovic via ntg-context > a écrit : > > Dear list, > > I would like to place a pdf file at (0, 0), centered at original size on a > MPpage, and draw over it. But using the input command doesn't work. How > should I approach this? Like

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
Sorry, I was a little too enthusiastic, here here is the code : > Le 28 avr. 2022 à 08:41, Fabrice L a écrit : > > Hi Keith, > >> Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context > > a écrit : >> >> Hi, >> >> In the MWE below I define an rgb colour, myColor1,

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
Hi Keith, > Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context a > écrit : > > Hi, > > In the MWE below I define an rgb colour, myColor1, using random numbers for > the r, g and b components. I then use it to fill a unitsquare the size of the > page, which works as expected. In the loop

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Fabrice L via ntg-context
> Le 11 janv. 2022 à 17:56, Gavin via ntg-context a écrit : > > Thanks Hans! This is great. I made a slight change to add an additional > feature. By moving the “mysolution” definition out of \startmode[solution], I > can now use mysolution in either mode. I’d use this if I want to give my >

Re: [NTG-context] Documentation about CTX installation on MacOS X

2022-01-02 Thread Fabrice L via ntg-context
Hi, > Le 2 janv. 2022 à 21:26, Jean-Pierre Delange via ntg-context > a écrit : > > First of all : Happy New Year everybody (despite some difficulties due to > public policies against the epidemic ! > > Now my question : I want to try CTX (ConTeXt ver: 2021.12.30) on MacOS X > (currently

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
xshifted 2in ; >> draw newcircleB withcolor black ; >> drawpoints newcircleA ; drawpointlabels newcircleA ; >> >> % Mikael solution >> newcircleA := circleA cutbefore P1 cutafter P2 -- cycle ; >> newcircleA := newcircleA yshifted -1.5in ; >> draw newcircleA wi

Re: [NTG-context] MP: problem connecting paths.

2021-12-20 Thread Fabrice L via ntg-context
& cycle; newcircleA := newcircleA shifted(2in,-1.5in) ;draw newcircleA  withcolor magenta ;drawpoints newcircleA ; drawpointlabels newcircleA ;\stopMPpage% ———————Thanks for any help ! Fabrice./MikaelOn Mon, Dec 20, 2021 at 5:30 AM Fabrice L via ntg-context<ntg-context@ntg.nl>

[NTG-context] MP: problem connecting paths.

2021-12-19 Thread Fabrice L via ntg-context
Dear list, I have a problem connecting path with the operator « & » (page 16 Metafun manual). The problem is illustrated by the code (and the joined PDF) which follows. I draw random cycled forms (left part of the figure) and when they interact, they are modified to « fit together » (right

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Fabrice L via ntg-context
Dear Gavin, > Le 6 déc. 2021 à 10:11, Gavin via ntg-context a écrit : > > Hi Alex, > > I don’t know the status of Asymptote. I am using TikZ and pgfplots for 3D, > with satisfactory results (example below). However, it is slow, so use the > buffer mechanism to prevent redrawing with every

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-29 Thread Fabrice L via ntg-context
Dear Hans, > Le 29 nov. 2021 à 03:54, Hans Hagen a écrit : > > On 11/29/2021 2:54 AM, Fabrice L via ntg-context wrote: > >> The only inconvenient of this solution if that I have to define 15 blocks >> (one for each week of the term): ComplementOne, ComplementTwo,

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
Thanks Hraban for your answer, > Le 28 nov. 2021 à 15:42, Henning Hraban Ramm via ntg-context > a écrit : > > Am 28.11.21 um 19:39 schrieb Fabrice L via ntg-context: >> I have an error when I try to insert a block inside a conditional mode (but >> there is two

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
Dear list, I have an error when I try to insert a block inside a conditional mode (but there is two nested conditional mode.. is this the problem ?). In my courses notes, I insert some blocks (named « Complement » in the minimal exemple below) when in « Professor » mode. This works fine, as