Re: [NTG-context] Best way to apply a fill-pattern to a closed shape?

2021-08-28 Thread Ramkumar KB via ntg-context
Hans, Thank you for the snippets. These are super helpful (I am assuming commands like `withpatternscale` are MetaFun extensions and Wow!). I have added them to a new Wiki Page - https://wiki.contextgarden.net/Fill_Patterns and linked it the main MetaFun wiki page -

Re: [NTG-context] Handling of negative values in the statistical-charts?

2021-08-28 Thread Ramkumar KB via ntg-context
Hi, I have added an 'advanced' type for line & bar graphs to handle the use case for -ve y-values / 4th quadrant graphs. It works similar to 'basic' but works for -ve y-values (i.e. for the 4th quadrant). PFA the amended lua file (zip file) and sample of line graph.

[NTG-context] prefixstarter in captions

2021-08-28 Thread Adam Reviczky via ntg-context
Hi, There was a question on the list before on prepending to the numberpart of a caption with the 'numberstarter' command, which works just fine ( https://mailman.ntg.nl/pipermail/ntg-context/2017/089142.html). I wanted to try the same but for prepending to the entire prefix (not just the number

Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context
Fabrice, there is difference between putting something on the first page regardless of the number of pages in your document or do something when your document contains only a single or more pages. When you have a header or title which is always placed on the first page (but not on the

Re: [NTG-context] Best way to apply a fill-pattern to a closed shape?

2021-08-28 Thread Hans Hagen via ntg-context
On 8/28/2021 11:33 AM, Ramkumar KB via ntg-context wrote: Hello List, I have a use case to apply a particular pattern to a closed shape. I am using Metapost for the figures. After some research this package seems to quite good, in terms of having all the patterns normally used -

[NTG-context] Best way to apply a fill-pattern to a closed shape?

2021-08-28 Thread Ramkumar KB via ntg-context
Hello List, I have a use case to apply a particular pattern to a closed shape. I am using Metapost for the figures. After some research this package seems to quite good, in terms of having all the patterns normally used - https://ctan.org/pkg/minim-hatching But I could not figure out how to

Re: [NTG-context] getting path and filename from url

2021-08-28 Thread Pablo Rodriguez via ntg-context
On 8/28/21 1:17 AM, Hans Hagen via ntg-context wrote: > On 8/27/2021 8:53 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> How can I get that match for #1 ends in the last slash (including it >> "../a/b/cb/ce.b/ca.b/c/") and match for #2 ends in the last period >> (excluding it, "dabc")? >

Re: [NTG-context] getting path and filename from url

2021-08-28 Thread Pablo Rodriguez via ntg-context
On 8/27/21 10:56 PM, Tomas Hala via ntg-context wrote: > Hi Pablo, > > is the following what you need? > > context("2a. " .. url:match "[^/]+/.+[.]") -- path and name with period > context("2c. " .. (url:match "[^/]+[^.]+$") :match ".+[.]") -- name with > period Hi Tomáš, well, I