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

2021-08-29 Thread Ramkumar KB via ntg-context
. These are super helpful (I am assuming > > commands like `withpatternscale` are MetaFun extensions and Wow!). > > yes, just metafun, already there for a while ... (often examples show up > first in the test suite) > > (if folks have wished for metafun they can let me kn

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

2021-08-29 Thread Hans Hagen via ntg-context
have wished for metafun they can let me know ... doing metapost things is a nice distraction and with the mp extensions that we have in luametatex we can do quite a lot) Hans - Hans Hagen

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

2021-08-28 Thread Ramkumar KB via ntg-context
://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt Thanks again! best regards, Ramkumar On Sat, Aug 28, 2021 at 7:02 PM Hans Hagen wrote: > 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

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 - https

[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

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
, numbercommand=\ÜbungNrCmd, way=bytext, margin=1em, before={\blank[2*line]}, ] Now I’d like to have a vertical line beside the text, starting below the title. And because I want to use the “sketchy“ lines we discussed a while ago (I needed them for the same book), it must be a MetaPost

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context
but there are files with 'plot' in it, so maybe you need to install more or maybe the commands / interfaces changed (if it keeps failing on you, you can always try to use metapost instead) Hans Hi Hans, It doesn’t keep failing for me because the fix is well documented, so I fixed it on my machine. I am

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
to get around the first hurdle it fails because \addplot is not defined > > i can't grep it in the tikz module tree either but there are files with > 'plot' in it, so maybe you need to install more or maybe the commands / > interfaces changed > > (if it keeps failing on you, y

Re: [NTG-context] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context
interfaces changed (if it keeps failing on you, you can always try to use metapost instead) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-27 Thread Alan Braslau via ntg-context
On 27/07/21 08:12, Gavin via ntg-context wrote: Hi All, Getting Closer I asked: 2) While I’m having good luck with paths, colors are causing trouble. In the data set the color information is in strings with French names of the color, like “rouge.” If I hand this string to MetaPost, MetaPost

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-27 Thread Gavin via ntg-context
Hi All, Getting Closer I asked: >> 2) While I’m having good luck with paths, colors are causing trouble. In the >> data set the color information is in strings with French names of the color, >> like “rouge.” If I hand this string to MetaPost, MetaPost doesn’t expand i

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-26 Thread Aditya Mahajan via ntg-context
On Mon, 26 Jul 2021, Gavin via ntg-context wrote: > 2) While I’m having good luck with paths, colors are causing trouble. In the > data set the color information is in strings with French names of the color, > like “rouge.” If I hand this string to MetaPost, MetaPost doesn

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-26 Thread Gavin via ntg-context
Hi everyone, I’ve made great progress creating globes for my diagrams using the data in the mp-geo package and some ideas from Hans. I have a couple questions about moving information from Lua to MetaPost. Below is a MWE for illustration. I have two related questions: 1) Is there a way

[NTG-context] Last call for papers: CG journal 2020

2021-07-24 Thread Henning Hraban Ramm
s and presentations that should get preserved > in our current journal (to be distributed at the meeting in Bassenge this > fall). > > Also, additional articles are always welcome – there were a lot of > interesting new features and solutions since then. > > So far, I/we got

Re: [NTG-context] Percentage stacked bars chart

2021-07-23 Thread Jorge Manuel
, live forever. Your ideas and your work are just amazing. Jorge Magalhães On 23 Jul 2021, 17:01 +0100, Hans Hagen , wrote: > On 7/23/2021 4:43 PM, Jorge Manuel wrote: > > Dear Sirs, > > > > Is there a way (out of the box) to draw percentage stacked bars chart > > w

Re: [NTG-context] Percentage stacked bars chart

2021-07-23 Thread Hans Hagen
On 7/23/2021 4:43 PM, Jorge Manuel wrote: Dear Sirs, Is there a way (out of the box) to draw percentage stacked bars chart with  metapost or MetaFun xl? Thanks for your time and support. you can have a look at https://akela.mendelu.cz/~thala/statcharts/ (at some point i'll see if i can

[NTG-context] Percentage stacked bars chart

2021-07-23 Thread Jorge Manuel
Dear Sirs, Is there a way (out of the box) to draw percentage stacked bars chart with   metapost or MetaFun xl? Thanks for your time and support. Jorge Magalhães ___ If your question is of interest to others

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
Hi Jeroen, Unfortunately I am not familiar with Tikz, since all my documents use what is built-in ConTeXt and Metapost… That being said I am sure someone on the list can help you with Tikz module. Best regards: Otared > On 22 Jul 2021, at 14:28, Jeroen wrote: > > Hi, both solutions

Re: [NTG-context] another MetaPost question (this time on ConTeXt->MetaPost

2021-07-22 Thread Hans Hagen
On 7/22/2021 2:59 PM, Rudd, Kevin wrote: Hey--- There seems to be a change with color transfer from ConTeXt to MetaPost. Using string references to defined (spot?) colors seemed to work but now does not; all of my colorful figures are now rendered only in shades of gray when using defined

Re: [NTG-context] another MetaPost question (this time on ConTeXt->MetaPost color transfer)

2021-07-22 Thread Rudd, Kevin
... fixed minor typo that actually produced new information! invalid color => black, valid color => transparent black!---it seems like the color disappears in the transfer but not the transparency. Hey--- There seems to be a change with color transfer from ConTeXt to MetaPost. Using

[NTG-context] another MetaPost question (this time on ConTeXt->MetaPost

2021-07-22 Thread Rudd, Kevin
Hey--- There seems to be a change with color transfer from ConTeXt to MetaPost. Using string references to defined (spot?) colors seemed to work but now does not; all of my colorful figures are now rendered only in shades of gray when using defined (spot?) colors…. The figure drawn

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Jeroen
gt; >> \setupinteraction[state=start] > >> \starttext > >> \startanimation[menu=yes,framerate=10] > >> \dorecurse{7}{\expanded > >> {\startframe > >> \startMPcode > >> path p; > >> numeric n, u; > >

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
t;> \startanimation[menu=yes,framerate=10] >> \dorecurse{7}{\expanded >> {\startframe >> \startMPcode >> path p; >> numeric n, u; >> u := 1cm; >> n:=\recurselevel*u; >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
; numeric n, u; >> u := 1cm; >> n:=\recurselevel*u; >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. >> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0); >> draw p; >> \stopMPcode >> \stopframe}} >> \stopani

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
ind(i))) endfor shifted (n,0); > draw p; > \stopMPcode > \stopframe}} > \stopanimation > \stoptext > > > What better way can I create a sine animation with Metapost? > > > > > Here is another way to do your animation. This is doing something, but I

[NTG-context] MP keyword function: string parameters no longer accept string variables directly

2021-07-21 Thread Rudd, Kevin
.07.16 22:03 LMTX fmt: 2021.7.21 int: english/english metapost> trace > This is MPLIB for LuaMetaTeX, version 3.11, running in scaled mode. metapost > trace > metapost> trace > loading metafun for lmtx, including the plain 1.004 base definitions metapos

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
l*u; > p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. > (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0); > draw p; > \stopMPcode > \stopframe}} > \stopanimation > \stoptext > > > What better way can I create a sine animation with Metapost? >

[NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
:= (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0); draw p; \stopMPcode \stopframe}} \stopanimation \stoptext What better way can I create a sine animation with Metapost

[NTG-context] MP boxes: boxjoin not recognized?

2021-07-21 Thread Rudd, Kevin
iv" instead of "mp-xbox.mpxl". Here is some log output and a (mostly) MWE. Thanks for any suggestions, ---K % system > ConTeXt ver: 2021.07.16 22:03 LMTX fmt: 2021.7.21 int: english/english % metapost> initializing instance 'metafun:1' using format 'me

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-18 Thread Henning Hraban Ramm
go big so for instance the area > where the colorado user group is located: > > https://www.openstreetmap.org/export#map=12/40.5117/-104.9496 > > produces a 122 MB osm file > > https://overpass-api.de/api/map?bbox=-105.1817,40.4096,-104.9493,40.6272 > > that gets t

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Hans Hagen
a 122 MB osm file https://overpass-api.de/api/map?bbox=-105.1817,40.4096,-104.9493,40.6272 that gets turned into a 15 MB metapost file that becomes an 8.7 MB pdf file. Unfortunately it takes 36 seconds to be produced (9 seconds xml loading, 17 seconds map processing, 3 seconds mp -- which

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Arthur Rosendahl
On Sat, Jul 17, 2021 at 12:53:33PM +0200, Hans Hagen wrote: > Just as an example, the context meeting is att the attached location: > > 50°45’7” / 5°35’19” > > https://www.openstreetmap.org/export#map=18/50.75175/5.58883 If you want official data you can try the Belgian cadastre:

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Henning Hraban Ramm
rk with OpenStreetMap data? >> https://planet.openstreetmap.org >> http://download.geofabrik.de >> https://download.bbbike.org/osm/ >> I didn’t find excerpts that only have e.g. country borders or rivers. But >> with usual XML tools you could extract those. &g

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Hans Hagen
Hi, Just as an example, the context meeting is att the attached location: 50°45’7” / 5°35’19” https://www.openstreetmap.org/export#map=18/50.75175/5.58883 (Okay, I need to use a railway track dash pattern "railway".) Hans -

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Henning Hraban Ramm
> Am 17.07.2021 um 12:20 schrieb Henning Hraban Ramm : > >> >> Am 17.07.2021 um 11:53 schrieb Bruce Horrocks : >> >> >> >>> On 16 Jul 2021, at 20:55, Hans Hagen wrote: >>> >>> On 7/15/2021 10:30 PM, Bruce Horrocks wrote: On 15 Jul 2021, at 18:58, Hans Hagen wrote: > > I was

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Hans Hagen
a nice roadmap display to the conference) we made an openstreetmap -> metapost style but afaik that never made it into a module. So, when I remembered that I updated it. I can now render my hometown (need to figure out colors) quite okay. (One can export an osm file in openstreetmap but

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Henning Hraban Ramm
> Am 17.07.2021 um 11:53 schrieb Bruce Horrocks : > > > >> On 16 Jul 2021, at 20:55, Hans Hagen wrote: >> >> On 7/15/2021 10:30 PM, Bruce Horrocks wrote: >>> On 15 Jul 2021, at 18:58, Hans Hagen wrote: I was wondering about that too. I admit that I looked into maps years ago

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Bruce Horrocks
> On 16 Jul 2021, at 20:55, Hans Hagen wrote: > > On 7/15/2021 10:30 PM, Bruce Horrocks wrote: >> On 15 Jul 2021, at 18:58, Hans Hagen wrote: >>> >>> I was wondering about that too. I admit that I looked into maps years ago >>> but never could find quality data files. >> Does this help? >>

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Alan Braslau
On 16/07/21 21:51, Hans Hagen wrote: On 7/16/2021 4:53 PM, Gavin Polhemus wrote: P.S. I marked the location of our local ConTeXt users group on the map, in case any of you want to visit. 1/3rd of your user group fled the country and is way closer by where i live now, And in the same time

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Hans Hagen
On 7/15/2021 10:30 PM, Bruce Horrocks wrote: On 15 Jul 2021, at 18:58, Hans Hagen wrote: I was wondering about that too. I admit that I looked into maps years ago but never could find quality data files. Does this help? i was halfway writing as reader for

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Hans Hagen
On 7/16/2021 4:53 PM, Gavin Polhemus wrote: P.S. I marked the location of our local ConTeXt users group on the map, in case any of you want to visit. 1/3rd of your user group fled the country and is way closer by where i live now, Hans

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Gavin
Hi Hans, Aditya, and all, Me: >>>> I’d like to use the mp-geo Metapost package with ConTeXt to draw simple >>> globes viewed from various directions. The package is here: >>>> >>>>https://melusine.eu.org/syracuse/poulecl/mp-geo/ >>

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Bruce Horrocks
On 15 Jul 2021, at 18:58, Hans Hagen wrote: > > I was wondering about that too. I admit that I looked into maps years ago but > never could find quality data files. Does this help? — Bruce Horrocks Hampshire, UK

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Hans Hagen
On 7/15/2021 6:22 PM, Aditya Mahajan wrote: On Thu, 15 Jul 2021, Hans Hagen wrote: On 7/14/2021 4:43 PM, Gavin wrote: Hello ConTeXters, I’d like to use the mp-geo Metapost package with ConTeXt to draw simple globes viewed from various directions. The package is here: https

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Aditya Mahajan
On Thu, 15 Jul 2021, Hans Hagen wrote: > On 7/14/2021 4:43 PM, Gavin wrote: > > Hello ConTeXters, > > > > I’d like to use the mp-geo Metapost package with ConTeXt to draw simple > globes viewed from various directions. The package is here: > > > > https:/

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Hans Hagen
On 7/14/2021 4:43 PM, Gavin wrote: Hello ConTeXters, I’d like to use the mp-geo Metapost package with ConTeXt to draw simple globes viewed from various directions. The package is here: https://melusine.eu.org/syracuse/poulecl/mp-geo/ It looks like the last update was 2008 and I don’t

[NTG-context] mp-geo Metapost package with ConTeXt

2021-07-14 Thread Gavin
Hello ConTeXters, I’d like to use the mp-geo Metapost package with ConTeXt to draw simple globes viewed from various directions. The package is here: https://melusine.eu.org/syracuse/poulecl/mp-geo/ It looks like the last update was 2008 and I don’t read French, so I though my chances

Re: [NTG-context] weekend upload

2021-07-12 Thread Hans Hagen
On 7/12/2021 5:31 AM, Aditya Mahajan wrote: On Sun, 11 Jul 2021, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example

Re: [NTG-context] weekend upload

2021-07-12 Thread Hans Hagen
On 7/12/2021 5:31 AM, Aditya Mahajan wrote: On Sun, 11 Jul 2021, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example

Re: [NTG-context] weekend upload

2021-07-11 Thread Aditya Mahajan
On Sun, 11 Jul 2021, Bruce Horrocks wrote: > > On 9 Jul 2021, at 17:29, Hans Hagen wrote: > > > > This weekend upload has something new for metapost animation lovers: > > Forgive my ignorance but what exactly am I supposed to be seeing here? I run > the example an

Re: [NTG-context] weekend upload

2021-07-11 Thread Hans Hagen
On 7/11/2021 3:04 PM, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example and get two rows of ten boxes. They don't

Re: [NTG-context] weekend upload

2021-07-11 Thread Bruce Horrocks
> On 9 Jul 2021, at 17:29, Hans Hagen wrote: > > This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example and get two rows of ten boxes. They don't move so it's not like an ani

Re: [NTG-context] weekend upload

2021-07-10 Thread Hans Hagen
On 7/9/2021 11:33 PM, Aditya Mahajan wrote: On Fri, 9 Jul 2021, Hans Hagen wrote: Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ;

Re: [NTG-context] weekend upload

2021-07-09 Thread Hans Hagen
On 7/9/2021 11:33 PM, Aditya Mahajan wrote: On Fri, 9 Jul 2021, Hans Hagen wrote: Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ;

Re: [NTG-context] weekend upload

2021-07-09 Thread Aditya Mahajan
On Fri, 9 Jul 2021, Hans Hagen wrote: > Hi, > > This weekend upload has something new for metapost animation lovers: > > \starttext > > \startuseMPgraphic{demo} > stacking := 6; > fill fullcircle scaled 10cm > withcolor "red" ; &g

[NTG-context] weekend upload

2021-07-09 Thread Hans Hagen
Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ; % stacking := 3; stacking := 9; fill fullcircle scaled 10cm shifted (3cm,0)

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Alan Braslau
s even use "." to delimit file system hierarchy (similarly like / and \). Lua also uses this in table specifications, as does MetaPost for token separation, not mentioning structures in C (and C++). The bottom line is that using "." in a filename is best to be avoided, as are s

[NTG-context] new lmtx upload

2021-07-06 Thread Hans Hagen
withcolor "darkgray" ; endfor ; tracingall ; draw textext(getrecord FooD.list[2]) shifted (5cm,-8cm) withcolor "darkmagenta" ; \stopMPcode \startluacode inspect(metapost.getrecord("FooA")) inspect(metapost.getrecord("FooB")) insp

Re: [NTG-context] Call for papers: CG journal 2020

2021-06-30 Thread Henning Hraban Ramm
ing new features and solutions since then. > > So far, I/we got only one(!) article, by Taco on MetaPost. > > > Please don’t let me/us down and hand in your articles until end of July (but > ASAP)! > > @Harald: Please send the latest version of your German report, too

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-25 Thread Jeong Dal
Dear Aditya, > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.io/context-blog/post/metapost-animation/ > > I haven't used it much because I am mostly on linux, and its is a PITA to get > an older version of Adobe Reader

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-24 Thread Hans Hagen
. But, it seems to me that \startanimation … \stopanimation is not working with \dorecurse{}{} … It just list all the graphics. Any hint is welcome. A while back, I wrote some code to easily generate metapost animations. https://adityam.github.io/context-blog/post/metapost-animation/ I haven't used

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
But, it > > seems to me that \startanimation … \stopanimation is not working with > > \dorecurse{}{} … > > It just list all the graphics. > > Any hint is welcome. > > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
not working with > \dorecurse{}{} … > It just list all the graphics. > Any hint is welcome. A while back, I wrote some code to easily generate metapost animations. https://adityam.github.io/context-blog/post/metapost-animation/ I haven't used it much because I am mostly on linux, and its is a

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Wolfgang Schuster
Otared Kavian schrieb am 22.06.2021 um 15:49: Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). You have

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Otared Kavian
Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). Regarding the way Aditya uses \startuseMPgraphic

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
having read this > in the MetaPost manual. > > Just to make sure whether I am beginning to understand, in your example code > > > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90)); > > should the second « whatever » be > > z0 + whatever*dir(angle(z2 - z1) + 90)) ; > >

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Mikael, Thank you so much for the explanation: I am ashamed for not having read this in the MetaPost manual. Just to make sure whether I am beginning to understand, in your example code > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90)); should the second « whatever » be

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
Hi, As is written in the MetaPost manual: Whatever generates a new anonymous variable each time it is used. It is very useful in cases where you are not interested in the value of a variable, but want to use it to (let MP) calculate something. Example you have three points z0, z1, z2 forming

[NTG-context] Call for papers: CG journal 2020

2021-06-11 Thread Henning Hraban Ramm
a lot of interesting new features and solutions since then. So far, I/we got only one(!) article, by Taco on MetaPost. Please don’t let me/us down and hand in your articles until end of July (but ASAP)! @Harald: Please send the latest version of your German report, too! I’ll translate

Re: [NTG-context] frameoffset in textbackground?

2021-06-08 Thread Wolfgang Schuster
, whatever frameoffset= is set to. The textbackground mechanism uses MetaPost to draw the background, lines etc. Not all options are available for each background, e.g. frameoffset works by default only for side lines. Wolfgang

[NTG-context] new upload

2021-05-31 Thread Hans Hagen
. The performance is comparable to the regular positioning mechanisms but especially at the \METAPOST\ end has less overhead. - Here are some examples: - \framed [synchronize=yes,align=normal] {% test test test 1 \sync{one}{1}test test

Re: [NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Jairo A. del Rio
eagues, > > I’m writing a physics textbook with lots of figures, some quite complex. > I’ve been using TikZ, but I’m experimenting with MetaPost. Consulting the > ConTeXt wiki, I found that \startstaticMPfigure and friends are designed > exactly for this sort of use. However, I’

[NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Gavin
Hello colleagues, I’m writing a physics textbook with lots of figures, some quite complex. I’ve been using TikZ, but I’m experimenting with MetaPost. Consulting the ConTeXt wiki, I found that \startstaticMPfigure and friends are designed exactly for this sort of use. However, I’m not seeing

Re: [NTG-context] How to write readable source files?

2021-05-30 Thread Nicola
nce, for MetaFun I currently have `mpDef` (MetaPost def macro), `mpVardef` (MetaPost vardef), `mpPrimaryDef`, `mpSecondaryDef`, `mpTertiaryDef`, `mpCommand`, `mpConstant`, `mpVariable`, `mpType`, `mpNewInternal`, and a few others. An excerpt from the current syntax file looks like this: ... &

Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Hans Hagen
first have to check if we need to add some to the xml definitions (btw, the lmt metapost commands i.e. the key/value macros fit in well in the optional argument appeoach, the more low level ones more resemble the low level context commands for which we have specific definitions) Whatever you

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-21 Thread Jeroen
I have updated LMTX and indeed seems to be working now Thanks Op do 20 mei 2021 om 21:05 schreef Aditya Mahajan : > On Thu, 20 May 2021, Jeroen wrote: > > > I have the following working example with hatching. This works fine, but > > when I uncomment the sketching commands, no figure is

Re: [NTG-context] mathfun

2021-05-21 Thread Hans Hagen
library that is in lmtx, while ecimal uses the xdecimal library for decimal precision(as in metapost decimal mode) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] [metafun example does not compile]

2021-05-21 Thread Taco Hoekwater
6 > mtx-context | main context file: > /home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl > mtx-context | current version: 2021.05.20 16:06 > > > it will produce an error (and an empty page) > > > metapost> initializing instance

[NTG-context] [metafun example does not compile]

2021-05-21 Thread Floris van Manen
/base/mkiv/context.mkiv mtx-context | current version: 2021.05.20 16:06 mtx-context | main context file: /home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.05.20 16:06 it will produce an error (and an empty page) metapost

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
. Aditya hatch.pdf Description: Adobe PDF document hatch.tex Description: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\curren

[NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Jeroen
I have the following working example with hatching. This works fine, but when I uncomment the sketching commands, no figure is rendered. Is the mp-sketch macro still working? \starttext \startMPcode input hatching; %input mp-sketch; %sketchypaths; %sketch_amount := 2bp; u := 1cm; path

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
ail-archive.com/ntg-context@ntg.nl/msg92800.html> and https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html <https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html>) or svg or metapost as I do not need it in colour. I spend quite a bit of time looking into this (it's already

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Adam Reviczky
) or svg or metapost as I do not need it in colour. I thought it would be easier via fonts but backtracking on the idea now and maybe using something like this instead: https://thenounproject.com/term/handshake/153516/. Thank you, Adam On Fri, May 14, 2021 at 4:33 PM Hans Hagen wrote: > On 5

Re: [NTG-context] Fuzzy lines

2021-05-14 Thread Hans Hagen
quot;; I thought it might like this: A slightly different approach is needed. See attached. I also added a bit a error protection in case someone sets sketch_passes to be negative by mistake. It may be interesting to rewrite these macros using the new key-value interface for metapost, so that something like t

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
mize each segment. Aditya%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright={Aditya Mahajan}] %D This metapost

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Henning Hraban Ramm
> > A slightly different approach is needed. See attached. I also added a bit a > error protection in case someone sets sketch_passes to be negative by > mistake. Thank you so much! > It may be interesting to rewrite these macros using the new key-value > interface for meta

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
d open for path additions like "withcolor". > > But it also doesn’t work in "do_sketchdraw"; I thought it might like this: A slightly different approach is needed. See attached. I also added a bit a error protection in case someone sets sketch_passes to be negative by m

[NTG-context] Fwd: Fuzzy lines

2021-05-12 Thread Jairo A. del Rio
gt; thank you for the suggestion. > > > Am 11.05.2021 um 14:56 schrieb Jairo A. del Rio >: > > > > For simple pens, you may define your own (section 9.7 of MetaPost > manual). > > Unfortunately, pens don’t work as patterns but only as outlines. > > > For com

Re: [NTG-context] Fuzzy lines

2021-05-12 Thread Henning Hraban Ramm
dded some more to add fuzzyness. Also they get drawn several times with transparency to get a irregular width and some blur. I’m quite sure this could be added to your macro, but I’m still too inexperienced with Metapost. Hraban __

Re: [NTG-context] Fuzzy lines

2021-05-12 Thread Henning Hraban Ramm
Hi Jairo, thank you for the suggestion. > Am 11.05.2021 um 14:56 schrieb Jairo A. del Rio : > > For simple pens, you may define your own (section 9.7 of MetaPost manual). Unfortunately, pens don’t work as patterns but only as outlines. > For complicated strokes, something along

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Aditya Mahajan
On Tue, 11 May 2021, Jairo A. del Rio wrote: > For simple pens, you may define your own (section 9.7 of MetaPost manual). > For complicated strokes, something along these lines could be useful as a > starting point (I'm not taking cyclic paths in consideration, btw). I did > somet

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
t;pen" in MetaPost? With transparency? The MF manual says in 1.11, pens are limited, but not how. Or are properties (MF manual 8.10) the way to go? Hraban > Am 11.05.2021 um 13:30 schrieb Mikael Sundqvist : > > Not really what you ask for, perhaps, but this could be interesti

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Jairo A. del Rio
For simple pens, you may define your own (section 9.7 of MetaPost manual). For complicated strokes, something along these lines could be useful as a starting point (I'm not taking cyclic paths in consideration, btw). I did something similar with duck footprints some weeks ago: %Sorry for the ugly

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Mikael Sundqvist
Hi! Not really what you ask for, perhaps, but this could be interesting for you: https://tex.stackexchange.com/q/39296/52406 /Mikael On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm wrote: > > Hi MetaFans, > > is it possible to get lines with Metapost that look like the

[NTG-context] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
Hi MetaFans, is it possible to get lines with Metapost that look like they were drawn with a pencil or brush? Some vector graphics apps (in my case: Affinity Designer) can use such naturally looking brushes for vector graphics (and I don’t know how they do it), but I’d like to automate

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-11 Thread luigi scarso
On Sun, May 9, 2021 at 11:25 PM Adam Reviczky wrote: > Hi, > > Looks like it is a problem with "StartPage" and "StopPage" in metapost. > > I get the same error with any MP graphic using those commands. > > More minimal example (witho

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
Hi, Looks like it is a problem with "StartPage" and "StopPage" in metapost. I get the same error with any MP graphic using those commands. More minimal example (without simpleslides) as per the wiki: https://wiki.contextgarden.net/Cover_Pages colors > 'rgb' c

[NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
leslides-Boxed.tex' close source> level 3, order 8, name '/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.mkiv' fonts > bodyfont '24.0414pt' is defined (can better be done global) metapost> initializing instance 'metafun:1' using format 'metafun' an

[NTG-context] A Bug in lmt_shade

2021-05-06 Thread Keith McKay
ot;MyColor3" }, ] ; StopPage; \stopMPpage \stoptext %%% %%% Console Output %%% system > system > ConTeXt ver: 2021.05.05 19:29 LMTX fmt: 2021.5.6 int: english/english system > < snip > metapost > initializing instance 'metafun

[NTG-context] LuaMetaFun MPinclusions doublefun

2021-05-02 Thread Fabrice L
= "\dorecurse{9}{· Just random text }", path = p xsized TextWidth, autoscaleup = "max", reverse=true, ] xsized 5in; \stopMPpage % ——— Log says: metafun > log > error: Isolated expression metafun > log > metapost

<    1   2   3   4   5   6   7   8   9   10   >