Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Dear Thomas, I'm sorry for all the shortcomings of my question. I'll try to be more concrete. If you won't download my file, could you at least give me a hint on how to configure LMTX? I Tried editing the file context/tex/texmf/web2c/texmfcnf.lua, and running context --generate, context --make,

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Thomas A. Schmitz via ntg-context
On 6/1/22 22:15, Stefan Nedeljkovic via ntg-context wrote: The problem *is* the file size. There is not a minimal example, because everything works when there is less drawdot commands. There is 125000+ drawdot commands in the file. The run ends with the message: If you really absolutely need

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
P.S. Use the last link I posted, the updated file is there. On Wed, Jun 1, 2022 at 10:15 PM Stefan Nedeljkovic wrote: > The problem *is* the file size. There is not a minimal example, > because everything works when there is less drawdot commands. There is > 125000+ drawdot commands in the

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
The problem *is* the file size. There is not a minimal example, because everything works when there is less drawdot commands. There is 125000+ drawdot commands in the file. The run ends with the message: If you really absolutely need more capacity, you can ask a wizard to enlarge me. mtx-context

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Thomas A. Schmitz via ntg-context
On 6/1/22 19:35, Stefan Nedeljkovic via ntg-context wrote: Sorry, i just updated the file, should now compile, but fail due to resources. Are the configuration options to context that would enable this file to be compiled? The question still stands: what do you expect us to do? Hunt for a

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
ext < > ntg-context@ntg.nl> wrote: > > > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic > wrote: > > Dear list, >

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Bruce Horrocks via ntg-context
fan Nedeljkovic via ntg-context > wrote: > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic wrote: > Dear list, > > I have a large .t

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Just fixed the file, here is the new link: https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic wrote: > Dear list, > > I have a large .tex file with metapost embedded in it and want to compile > it,

[NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
Dear list, I have a large .tex file with metapost embedded in it and want to compile it, but it fails. Here is a link to the file (~12MB): https://drive.google.com/file/d/1t-6mxFmGp-nzpl0RrPgNFq8KRvpplgDv/view?usp=sharing Do you know of a way to compile it? BTW, the file is automatically

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-24 Thread Vincent Hennebert via ntg-context
On Sat, 2022-05-21 at 07:39 +0530, śrīrāma wrote: > On 5/20/22 10:26 PM Vincent Hennebert via ntg-context wrote: > > Take the following MetaPost file: > > > > beginfig(0) > >   ahlength := 20; > >   linejoin := mitered; > >   drawarrow origin--(40,0)

Re: [NTG-context] Metapost examples seems broken

2022-05-22 Thread Bruce Horrocks via ntg-context
It's archived here <https://web.archive.org/web/20210815171931/https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html> which might suffice until the author gets his certificates sorted out? > On 22 May 2022, at 09:41, Jan-Erik Hägglöf via ntg-context > wrote: > &g

[NTG-context] Metapost examples seems broken

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
/zoonekynd/metapost/metapost.html <https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html> /Jan-Erik___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread śrīrāma via ntg-context
On 5/20/22 10:26 PM Vincent Hennebert via ntg-context wrote: > Take the following MetaPost file: > > beginfig(0) > ahlength := 20; > linejoin := mitered; > drawarrow origin--(40,0) withpen pencircle scaled 5; > endfig; > > Render it into PDF with ConTeX

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Mikael Sundqvist via ntg-context
at 17:56, Vincent Hennebert via ntg-context > > wrote: > > > > Take the following MetaPost file: > > > > beginfig(0) > > ahlength := 20; > > linejoin := mitered; > > drawarrow origin--(40,0) withpen pencircle scaled 5; > > endfig; > > >

Re: [NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Bruce Horrocks via ntg-context
The arrow looks fine to me in ConTeXt ver: 2022.01.10 08:36 LMTX. (See attached PDF) > On 20 May 2022, at 17:56, Vincent Hennebert via ntg-context > wrote: > > Take the following MetaPost file: > > beginfig(0) > ahlength := 20; > linejoin := mitered; > drawa

[NTG-context] How to add margin around standalone MetaPost?

2022-05-20 Thread Vincent Hennebert via ntg-context
Take the following MetaPost file: beginfig(0) ahlength := 20; linejoin := mitered; drawarrow origin--(40,0) withpen pencircle scaled 5; endfig; Render it into PDF with ConTeXt. Witness the cut out ends of the arrow. How to fix that? Being able to add some margin would be a solution, which

Re: [NTG-context] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
On Thu, 2022-05-19 at 14:23 +0530, śrīrāma wrote: > On 5/19/22 1:53 PM Vincent Hennebert via ntg-context wrote: > > Looking at the wiki, it seems that \startMPinclusions is not meant > > to > > actually render any content, just to include MetaPost code like > > func

Re: [NTG-context] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread śrīrāma via ntg-context
On 5/19/22 1:53 PM Vincent Hennebert via ntg-context wrote: > Looking at the wiki, it seems that \startMPinclusions is not meant to > actually render any content, just to include MetaPost code like > function definitions. I guess I would have expected \startMPpage > instead. >

[NTG-context] Rendering Standalone MetaPost Graphics with ConTeXt

2022-05-19 Thread Vincent Hennebert via ntg-context
I’d like to use MetaPost to generate all sorts of standalone graphics (ultimately converted to SVG). For various reasons (among others, MetaFun and advanced text processing) I want to use MetaPost as embedded in ConTeXt rather than a standalone installation. metapost.mp fill fullcircle

Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
On 4/19/22 8:22 PM Mikael Sundqvist via ntg-context wrote: > Thanks, this will be fixed in the next upload (that will take place > soon as far as I've heard). Thanks very much for the quick reply. Yes: it is fixed in the latest upload just now. Thanks, Sreeram

Re: [NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread Mikael Sundqvist via ntg-context
On Tue, Apr 19, 2022 at 3:59 PM śrīrāma via ntg-context wrote: > > Hi Hans, > > [I am sending this again since the previous mails regarding were sent during > the weekend]. > > I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try > to use math f

[NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
Hi Hans, [I am sending this again since the previous mails regarding were sent during the weekend]. I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try to use math functions inside MetaPost strings, the function is not typeset correctly. Please consider

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Sat, 12 Mar 2022 22:27:38 +0100 Henning Hraban Ramm via ntg-context wrote: > My current and most MP-heavy project so far, fails in asciimode with > "Extra }, or forgotten \endgroup" You can't just run “normal” projects with \asciimode. Chances are, constructs are being used that are invalid

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Henning Hraban Ramm via ntg-context
Am 12.03.22 um 18:08 schrieb Marco Patzer via ntg-context: Maybe someone else with more MetaPost-heavy workflows¹ can test this, too? Marco ¹ Hraban? nudge, nudge… My use of MetaPost is very simple, I still don’t understand much... My current and most MP-heavy project so far, fails

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
I run almost every document with \asciimode, so I can surely test that aspect, but I'm not using MetaPost a lot these days. I ran a few projects and it seems to work fine. But that's not what I'd call extensive testing. I think compiling the MetaPost manual would be a good test. But on my mach

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Hans Hagen via ntg-context
On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote: On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results

Re: [NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-03-12 Thread Marco Patzer via ntg-context
On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: > LMTX seems to have an issue with \asciimode and MetaPost: > > \asciimode > \starttext > \startMPcode > fill unitsquare scaled 2cm; > \stopMPcode > \stoptext > > Results in: >

[NTG-context] \asciimode and MetaPost in LMTX result in “Isolated expression”

2022-01-31 Thread Marco Patzer via ntg-context
Hi! LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results in: metafun > log > error: Isolated expression metafun > log > metapost> trace > E.dash

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote: > On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: > > > AFAIK, there is no in-built support for this. > > FYEO: > > \starttext > > \startMPcode > u = 123; > \stopMPcode > >

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote: next upload: \resetMPinstance[metafun:1] but try to avoid this because reloading takes time Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: AFAIK, there is no in-built support for this. FYEO: \starttext \startMPcode u = 123; \stopMPcode \ctxlua{metapost.reset("metafun:1")} \startMPcode u = 123; \stopMPcode \stoptext (the instance is reported on the console)

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote: Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Aditya Mahajan via ntg-context
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote: > Hi, > > Say I’m writing a document containing many independent MetaPost > figures. I don’t want to bother with enclosing each and every graphics > in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement

[NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either

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

2021-10-22 Thread Hans Hagen via ntg-context
d down to 603309215 bytes Maybe I should try smaller files ;) Indeed: openstreetmap > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm' openstreetmap > original size 12431810 bytes, stripped down to 8768209 bytes openstreetmap > xml data loaded openstreetmap

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

2021-10-22 Thread Henning Hraban Ramm via ntg-context
ng file '/Users/hraban/Downloads/ConTeXt/Bonn.osm' > openstreetmap > original size 713811948 bytes, stripped down to 603309215 > bytes > > > Maybe I should try smaller files ;) Indeed: openstreetmap > processing file '/Users/hraban/Downloads/ConTeXt/Limburg.osm' openstreetmap >

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

2021-10-22 Thread Hans Hagen via ntg-context
On 10/22/2021 11:31 AM, Henning Hraban Ramm via ntg-context wrote: Am 17.07.2021 um 12:45 schrieb Hans Hagen : \startMPpage draw lmt_openstreetmap [ filename = "hasselt.osm" grid = "dots", ] ; \stopMPpage The hasselt osm file is sime 12 MB, the colorful hasselt

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

2021-10-22 Thread Henning Hraban Ramm via ntg-context
> Am 17.07.2021 um 12:45 schrieb Hans Hagen : > > > \startMPpage >draw lmt_openstreetmap [ >filename = "hasselt.osm" >grid = "dots", >] ; > \stopMPpage > > The hasselt osm file is sime 12 MB, the colorful hasselt pdf file just below > 1 MB so that's okay (3.7 sec

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
> > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > >

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Hans Hagen via ntg-context
ay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? \startuniqueMPgraphic{concept} StartPage; draw fullcircle scaled 1cm shifted (10cm,10cm); draw Page withpen

[NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
nd=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? Thanks! Best, Sylvain ___ If your question is of interest to others as well, please add an entry to the Wiki! mail

Re: [NTG-context] Use MetaPost to distort images?

2021-09-06 Thread Henning Hraban Ramm via ntg-context
> Am 06.09.2021 um 04:13 schrieb Aditya Mahajan via ntg-context > : > > On Sun, 5 Sep 2021, Henning Hraban Ramm via ntg-context wrote: > >> >>> Am 05.09.2021 um 10:10 schrieb Hans Hagen : BTW, here’s my script: Here are some results: >>> >>> Did you try that with the filter module?

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Aditya Mahajan via ntg-context
On Sun, 5 Sep 2021, Henning Hraban Ramm via ntg-context wrote: > > > Am 05.09.2021 um 10:10 schrieb Hans Hagen : > >> BTW, here’s my script: > >> Here are some results: > > > > Did you try that with the filter module? It would make it more portable > > I completely forgot I could do that (and

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Henning Hraban Ramm via ntg-context
> Am 05.09.2021 um 10:10 schrieb Hans Hagen : > > On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: >>> Am 04.09.2021 um 19:06 schrieb Hans Hagen : >>> >>> On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: >>> I guess it’s on me to write a wiki page about GM.

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Hans Hagen via ntg-context
On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: OTOH IM offers much more features (e.g. the geometric transformations I inquired about), and you can find lots of interesting examples (including the scripts Bruce mentioned). I couldn’t find another CLI tool that can do most of

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Hans Hagen via ntg-context
On 9/5/2021 9:40 AM, Henning Hraban Ramm via ntg-context wrote: Am 04.09.2021 um 19:06 schrieb Hans Hagen : On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: I guess it’s on me to write a wiki page about GM. you can then also add some comparison with im (i.e. what does it

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Henning Hraban Ramm via ntg-context
> Am 04.09.2021 um 19:06 schrieb Hans Hagen : > > On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: > >> I guess it’s on me to write a wiki page about GM. > > you can then also add some comparison with im (i.e. what does it offer more > than gm) Oh no... IM and GM have a

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Hans Hagen via ntg-context
On 9/4/2021 2:18 PM, Henning Hraban Ramm via ntg-context wrote: I guess it’s on me to write a wiki page about GM. you can then also add some comparison with im (i.e. what does it offer more than gm) Hans -

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Henning Hraban Ramm via ntg-context
> Am 03.09.2021 um 18:24 schrieb Hans Hagen via ntg-context > : > > On 9/3/2021 12:28 PM, Henning Hraban Ramm via ntg-context wrote: >> Hi, is it possible to apply geometric transformations to images using >> MetaPost? >> This is again way over my head, but I’m

Re: [NTG-context] Use MetaPost to distort images?

2021-09-04 Thread Henning Hraban Ramm via ntg-context
> Am 04.09.2021 um 00:16 schrieb Bruce Horrocks via ntg-context > : > > > >> On 3 Sep 2021, at 11:28, Henning Hraban Ramm via ntg-context >> wrote: >> >> Hi, is it possible to apply geometric transformations to images using >> MetaPost? >>

Re: [NTG-context] Use MetaPost to distort images?

2021-09-03 Thread Bruce Horrocks via ntg-context
> On 3 Sep 2021, at 11:28, Henning Hraban Ramm via ntg-context > wrote: > > Hi, is it possible to apply geometric transformations to images using > MetaPost? > > This is again way over my head, but I’m still trying different methods to let > a ConTeXt docum

[NTG-context] Use MetaPost to distort images?

2021-09-03 Thread Henning Hraban Ramm via ntg-context
Hi, is it possible to apply geometric transformations to images using MetaPost? This is again way over my head, but I’m still trying different methods to let a ConTeXt document look more “hand-made”. In my example*, I added frame and shadow to a photo and _distorted_ it slightly to have

Re: [NTG-context] MetaPost Examples

2021-09-01 Thread Henning Hraban Ramm via ntg-context
> Am 01.09.2021 um 14:45 schrieb Hans Hagen via ntg-context > : > > On 9/1/2021 2:19 PM, Henning Hraban Ramm via ntg-context wrote: >> Hi, I’m trying to “translate” the documentation of “fiziko”* from LaTeX to >> ConTeXt and would like to avoid the doubling of MP code like: >> \startMP >>

Re: [NTG-context] MetaPost Examples

2021-09-01 Thread Hans Hagen via ntg-context
On 9/1/2021 2:19 PM, Henning Hraban Ramm via ntg-context wrote: Hi, I’m trying to “translate” the documentation of “fiziko”* from LaTeX to ConTeXt and would like to avoid the doubling of MP code like: \startMP path p; p := (0,0){dir(30)}..(5cm, 0)..{dir(30)}(10cm, 0); draw brush

[NTG-context] MetaPost Examples

2021-09-01 Thread Henning Hraban Ramm via ntg-context
Hi, I’m trying to “translate” the documentation of “fiziko”* from LaTeX to ConTeXt and would like to avoid the doubling of MP code like: \startMP path p; p := (0,0){dir(30)}..(5cm, 0)..{dir(30)}(10cm, 0); draw brush (p)(2minStrokeWidth*sin(offsetPathLength*pi)); \stopMP \startMPcode

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

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

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

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] 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] 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] Conflict between MetaPost (LMTX) and cmarrows

2021-04-27 Thread Hans Hagen
Hi, you can't assume fuzzy scratch variables as used in def flex(text t) = % t is a list of pairs hide(n_:=0; for z=t: z_[incr n_]:=z; endfor dz_:=z_[n_]-z_1) z_1 for k=2 upto n_-1: ...z_[k]{dz_} endfor ...z_[n_] enddef; newinternal n_; pair z_[],dz_; to be official

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-27 Thread Hans Hagen
On 4/27/2021 6:31 PM, Jairo A. del Rio wrote: Hi, Hans. I've attached the relevant files. Jairo El mar, 27 de abr. de 2021 a la(s) 07:35, Hans Hagen (j.ha...@xs4all.nl ) escribió: On 4/27/2021 9:23 AM, Jairo A. del Rio wrote: > So, should I share relevant

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-27 Thread Hans Hagen
On 4/27/2021 9:23 AM, Jairo A. del Rio wrote: So, should I share relevant files? AFAIK only cmarrows and .mf files in the cm source folder are involved. I hope you can check it if a solution is possible and not too demanding. Thanks beforehand. you can make a minimal failure example but I gues

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-27 Thread Jairo A. del Rio
pair) > > I don't know, but from the message it looks like some 'local' > variables > > is not saved and defined. I'm surprised that loading some mf file > works > > at all (because it also assumes some mf related definitions). I also > > hav > > eno clue

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Hans Hagen
lso hav eno clue if such a package adopts 'core' metafun code (and mpiv metafun is different from mpii). It's a generic, "pure" MetaPost package: https://www.ctan.org/pkg/cmarrows <https://www.ctan.org/pkg/cmarrows> that doesn't make it immune from clashes in used variable

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Jairo A. del Rio
I don't know, but from the message it looks like some 'local' variables > is not saved and defined. I'm surprised that loading some mf file works > at all (because it also assumes some mf related definitions). I also hav > eno clue if such a package adopts 'core' metafun code (and mpiv meta

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Hans Hagen
On 4/26/2021 6:59 AM, Jairo A. del Rio wrote: The following: \starttext \startMPinitializations input cmarrows; setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; macro_name = "nicearrow"); \stopMPinitializations \startMPpage metafun > log > error: Equation cannot be

[NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-25 Thread Jairo A. del Rio
ompiles perfectly with ConTeXt MkIV. With LMTX, however, the following happens: metapost > initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost > loading 'metafun' as 'metafun.mpxl' using method 'default' metapost > initializing number mode 'scaled' metapo

Re: [NTG-context] Parenthesis error in metapost

2021-04-07 Thread Hans Hagen
On 4/7/2021 10:14 AM, Mikael Sundqvist wrote: Hi, the following code has been working before: \starttext \startMPpage[instance=decimalfun] draw function(1,"x","x*sin(x)",0.5,1,1/100) scaled 1in; \stopMPpage \stoptext Now (with an updated ConTeXt) I get an error: metap

[NTG-context] Parenthesis error in metapost

2021-04-07 Thread Mikael Sundqvist
Hi, the following code has been working before: \starttext \startMPpage[instance=decimalfun] draw function(1,"x","x*sin(x)",0.5,1,1/100) scaled 1in; \stopMPpage \stoptext Now (with an updated ConTeXt) I get an error: metapost> loading 'metafun' as 'metafun.mpxl

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