Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
corners with outlinetext. For example, this doesn't work. \startMPcode      draw outlinetext.f          ("\frameletter{A}")          (withcolor darkred withpen pencircle scaled 1/10)           rotated 5 xsized 2cm ; \stopMPcode Take a look at the log-file and you should see a

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
work. \startMPcode draw outlinetext.f ("\frameletter{A}") (withcolor darkred withpen pencircle scaled 1/10) rotated 5 xsized 2cm ; \stopMPcode Fabrice Le lun. 20 avr. 2020 à 10:36, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 20.04.2020 um 10:23: On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: Fabrice Couvreur schrieb am 19.04.2020 um 22:55: Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: > Fabrice Couvreur schrieb am 19.04.2020 um 22:55: > > Hi, > > I try to reproduce the figure as faithfully as possible. I tried for the > > rounded corners to put the key corner = round, but it does not work. > > 1. To create a

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 19.04.2020 um 22:55: Hi, I try to reproduce the figure as faithfully as possible. I tried for the rounded corners to put the key corner = round, but it does not work. 1. To create a new framed-instance you need \defineframe, \setupframed isn't enough to set the

[NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-19 Thread Fabrice Couvreur
] \startMPcode draw outlinetext.f ("\framed[frameletter]{A}") (withcolor darkred withpen pencircle scaled 1/10) rotated 5 xsized 2cm ; draw outlinetext.f ("\framed[frameletter]{L}") (withcolor green withpen p

Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Dear Hans, Thank you for the reply. Since \startMPcode … \stopMPcode form is used in the manual, I think that it is OK to use it for all cases. Thank you again. Best regards, Dalyoung > 2020. 4. 17. 오전 5:01, Hans Hagen 작성: > > On 4/16/2020 8:36 PM, Jeong Dal wro

Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Hans Hagen
On 4/16/2020 8:36 PM, Jeong Dal wrote: Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code

[NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code, it is also working in \startMPcode

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2016-01-02 Thread Wolfgang Schuster
Alan BRASLAU 31. Dezember 2015 um 20:09 Works fine here. Alan P.S. I simplified your code slightly: \definefloat [recipe] [figure] [default={right,none}] You can’t do this because the second argument is used the names of the \placelistof… and \completelistof…

Re: [NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Alan BRASLAU
Works fine here. Alan P.S. I simplified your code slightly: \definefloat [recipe] [figure] [default={right,none}] \setupbodyfont [pagella,9pt] \starttext \startplacerecipe \startMPcode pair vert[] ; numeric n ; n := 5 ; numeric radius ; radius := 2cm ; for i=0 upto n

[NTG-context] Problem to place a label in an environment \startMPcode \stopMPcode

2015-12-31 Thread Fabrice Couvreur
{}{ \startMPcode pair vert[] ; n:=6 ; radius=2cm ; for i=0 upto n : vert[i] = radius * dir(360*i/n) ; endfor ; draw for i=0 upto n-1: vert[i] -- endfor cycle withcolor blue ; draw for i=0 upto n-1: vert[i] .. endfor cycle withcolor red ; draw (0,0)--vert[0] withcolor green ; draw (0,0)--vert[5