Re: [NTG-context] Float positioning

2020-04-09 Thread Alexey Kryukov
On Thu, 9 Apr 2020 20:44:16 +0200 Geert Dobbels wrote: > Hello, > > Maybe I did not understand the problem, but doesn't the code below > give you the expected result?: Hmm, unfortunately no. Using [top,force] just causes context to break the text flow at the place where the image is specified.

Re: [NTG-context] Float positioning

2020-04-09 Thread Geert Dobbels
Hello, Maybe I did not understand the problem, but doesn't the code below give you the expected result?: \setupexternalfigures[location={local,default}] \starttext \dorecurse{3}{\input{knuth}} \placefigure[force]{cow}{\externalfigure[cow][width=150mm]} \input{knuth}

Re: [NTG-context] METAPOST/MetaFun withtransparency doesn't accept my pair primary argument, what am I doing wrong?

2020-04-09 Thread Hans Hagen
On 4/9/2020 4:58 PM, Gerben Wierda wrote: \starttext \startMPpage[instance=doublefun] vardef Foo( expr w, h, fillColor, fillTransparency) =   show "FOO:", w, h, fillColor, fillTransparency;   save pic; picture pic;   save circ; path circ;   circ := (fullcircle xyscaled (h,h));   pic :=

[NTG-context] METAPOST/MetaFun withtransparency doesn't accept my pair primary argument, what am I doing wrong?

2020-04-09 Thread Gerben Wierda
I have refactored my code to use withtransparency and separate parameters for colors, sizes, transparency, etc. But I’m running into a problem. The fillTransparency parameter is a pair primary (as can be seen from the show command) Here is a pretty minimum example (in reality there are

[NTG-context] using realpagenumber for /PageLabels

2020-04-09 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupuserpagenumber[way=chapter] \starttext \dorecurse{5}{\chapter{Chapter}} \stoptext I need to restart user page numbers in each part (I use real page to number the complete document). But the main problem is this way also restarts

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Henri Menke
It would be really great if you'd stop wasting people's time by not crossposting. Cheers, Henri On 09/04/20, 09:04, Gerben Wierda wrote: > Nobody? > > > On 8 Apr 2020, at 12:20, Gerben Wierda wrote: > > > > I would like to use the result of transparent() straight in my macros, so I > > can

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Hans Hagen
On 4/9/2020 11:01 AM, Taco Hoekwater wrote: Hi, Using multiple (text ) arguments in macros doesn’t work, you would need to convert all but the last argument into (expr ) somehow. That means that you probably cannot do a call like the one below at all. (I, at least, do not see how you could

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Taco Hoekwater
Hi, Using multiple (text ) arguments in macros doesn’t work, you would need to convert all but the last argument into (expr ) somehow. That means that you probably cannot do a call like the one below at all. (I, at least, do not see how you could convert one of those transparent colours into

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Gerben Wierda
Thank you. > On 9 Apr 2020, at 10:01, Taco Hoekwater wrote: > > Hi Gerben, > > Changing the macro header to this will work: > > vardef SampleText (expr t)(text c) = > > or you can use the answer from stackexchange, same approach. > BTW Hans would like people to use “withtransparency”

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Taco Hoekwater
Hi Gerben, Changing the macro header to this will work: vardef SampleText (expr t)(text c) = or you can use the answer from stackexchange, same approach. BTW Hans would like people to use “withtransparency” instead as that is a newer, more flexible approach (but that would also need the

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Gerben Wierda
Nobody? > On 8 Apr 2020, at 12:20, Gerben Wierda wrote: > > I would like to use the result of transparent() straight in my macros, so I > can pass the colors with transparency using a single parameter. That should > be possible if I understand the MetaFun manual (where I’ve copy-pasted this