[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 19:04 schrieb Hans Hagen via ntg-context: On 8/14/2025 2:06 PM, Shiv Shankar Dayal wrote: I tried metaUML library as you suggested but it didn't work as Hans said. Then you need to figure out what makes it fail; keep in mind that arbitrary lua or metapost or tex code is not sup

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Hans Hagen via ntg-context
On 8/14/2025 2:06 PM, Shiv Shankar Dayal wrote: Dear Henning, I tried metaUML library as you suggested but it didn't work as Hans said. Then you need to figure out what makes it fail; keep in mind that arbitrary lua or metapost or tex code is not supposed to work in any other lua, metapost o

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-14 Thread Shiv Shankar Dayal
Dear Henning, I tried metaUML library as you suggested but it didn't work as Hans said. Virus-free.www.avast.com

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-13 Thread Hans Hagen via ntg-context
On 8/13/2025 11:26 AM, Shiv Shankar Dayal wrote: Hi, How can I use Metapost libraries from texlive in ConTeXt? maybe by using "input" but i wouldn't gamble on them working (read: they could overload and for sure have a different text model) Hans

[NTG-context] Re: How to use Metapost libraries with Metafun?

2025-08-13 Thread Henning Hraban Ramm
Am 13.08.25 um 11:26 schrieb Shiv Shankar Dayal: How can I use Metapost libraries from texlive in ConTeXt? If you run on TeXlive, \useMPlib[libname] should be enough. Otherwise you must install it in one of your texmf trees, e.g. ~/texmf (= HOMETEXMF), /tex/texmf-project, /tex/texmf-local an

[NTG-context] How to use Metapost libraries with Metafun?

2025-08-13 Thread Shiv Shankar Dayal
Hi, How can I use Metapost libraries from texlive in ConTeXt? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-12 Thread vm via ntg-context
On 11/08/2025 10:56, Hans Hagen via ntg-context wrote: it makes little sense as there are all kind of properties to deal with; and actually 'draw' is a macro As I mentioned, I'm not very familiar with the inner workings. I just try to use the engine as a way to render my vector line drawin

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-11 Thread Hans Hagen via ntg-context
On 8/11/2025 9:59 AM, vm via ntg-context wrote: Thank you Hans for pointing out, this makes a large difference already. you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with "mp.print" o

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-11 Thread vm via ntg-context
Thank you Hans for pointing out, this makes a large difference already. you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with "mp.print" or bypass the parser with "mp.inject.path" or ...

[NTG-context] Re: [ constructing poly lines in metafun using lua ]

2025-08-10 Thread Hans Hagen via ntg-context
On 8/9/2025 5:34 PM, vm via ntg-context wrote: A while ago in one of the online meetings it was pointed out that one can feed aa point list in metafun using a lua table. I haven't been able to figure out how to do that. Has any one a hint? At presnt I use a script to generate the path dir

[NTG-context] [ constructing poly lines in metafun using lua ]

2025-08-09 Thread vm via ntg-context
A while ago in one of the online meetings it was pointed out that one can feed aa point list in metafun using a lua table. I haven't been able to figure out how to do that. Has any one a hint? At presnt I use a script to generate the path directly in MP but easily run out of memory tokens

[NTG-context] Re: Animation using MetaFun

2025-07-20 Thread Jeong Dal via ntg-context
Dear Aditya, > For the animation module, you need \startframe ... \stopframe. Mikael had > changed it to \startframed ... \stopframed. > After changing \startframed to \startframe, it works well. I got the animated output. > I no longer use animation module, because the animations only work i

[NTG-context] Re: Animation using MetaFun

2025-07-19 Thread Aditya Mahajan
On Sat, 19 Jul 2025, Jeong Dal via ntg-context wrote: > Dear Mikael, > > I modified the code following your suggestion, and it worked. > > Thanks. > > After that I load animation module and activate the \startanimation … > \stopanimation. > But the output is a series of 52 figures not one figur

[NTG-context] Re: Animation using MetaFun

2025-07-19 Thread Jeong Dal via ntg-context
Dear Mikael, I modified the code following your suggestion, and it worked. Thanks. After that I load animation module and activate the \startanimation … \stopanimation. But the output is a series of 52 figures not one figure. There is something more to make an animation. I have to figure it out

[NTG-context] Re: Animation using MetaFun

2025-07-18 Thread Mikael Sundqvist
Hi, On Sat, Jul 19, 2025 at 2:42 AM Jeong Dal via ntg-context wrote: > > Dear all, > > I tried to make an animation which draws Cardioid curve. > I found a code which draws Cardioid using circles. > Since I’d like to draw it differently, I modified it a little. > > 1. Define the z[] values in the

[NTG-context] Animation using MetaFun

2025-07-18 Thread Jeong Dal via ntg-context
Dear all, I tried to make an animation which draws Cardioid curve. I found a code which draws Cardioid using circles. Since I’d like to draw it differently, I modified it a little. 1. Define the z[] values in the \startMPdefinitions block 2. Modified the drawing method in \startMPbuffer When I r

[NTG-context] Re: [ drawing lines with metafun ]

2025-02-12 Thread Hans Hagen
On 2/12/2025 12:04 PM, Henning Hraban Ramm wrote: Am 12.02.25 um 11:34 schrieb vm via ntg-context: is it possible when using metafun, given a path to rotate the pen orientation following a different path? e.g. rotating the pen while drawing a line? and/or changing the pen width while drawing

[NTG-context] Re: [ drawing lines with metafun ]

2025-02-12 Thread Henning Hraban Ramm
Am 12.02.25 um 11:34 schrieb vm via ntg-context: is it possible when using metafun, given a path to rotate the pen orientation following a different path? e.g. rotating the pen while drawing a line? and/or changing the pen width while drawing? it probably is possible, yet how? Any hints

[NTG-context] [ drawing lines with metafun ]

2025-02-12 Thread vm via ntg-context
is it possible when using metafun, given a path to rotate the pen orientation following a different path? e.g. rotating the pen while drawing a line? and/or changing the pen width while drawing? it probably is possible, yet how? Any hints? .Floris

[NTG-context] Re: error in metafun of context version 2025.02.04

2025-02-08 Thread Florent Michel
nd the right parenthesis. Sample lua code >>> and detailed log is attached below. >>> >>> sample code: >>> >>> . >>> >>> context.startuniqueMPgraphic("textBorder") >>> >>> context([[ >>> >>> draw

[NTG-context] Re: error in metafun of context version 2025.02.04

2025-02-07 Thread Mikael Sundqvist
gt; and detailed log is attached below. >> >> sample code: >> >> . >> >> context.startuniqueMPgraphic("textBorder") >> >> context([[ >> >> draw unitsquare xyscaled (\overlaywidth,\overlayheight) withcolor >> .625darkg

[NTG-context] Re: error in metafun of context version 2025.02.04

2025-02-07 Thread Florent Michel
y ;]]) > > context.stopuniqueMPgraphic() > > > > > > failed compilation log: > > metapost > initializing instance 'metafun:1' using format 'metafun' and > method 'double' > > metapost > loading 'metafun' as

[NTG-context] error in metafun of context version 2025.02.04

2025-02-06 Thread wangzhongtian
:.context.startuniqueMPgraphic("textBorder")context([[ draw unitsquare xyscaled (\overlaywidth,\overlayheight) withcolor .625darkgray dashed evenly ;]])context.stopuniqueMPgraphic()failed compilation log: metapost> initializing instance 'metafun:1' using format 'metafun&

[NTG-context] Re: Functional shading with MetaPost / MetaFun

2025-01-09 Thread Florent Michel
wrote: > > Hi, > > > > I was trying to see if I could use MetaFun / MetaPost as my main tool > > for generating figures. I really like its close integration with > > ConTeXt, speed, and expressivity making it, even for a beginner like me, > > a pleasure to work

[NTG-context] Re: Functional shading with MetaPost / MetaFun

2025-01-09 Thread Hans Hagen
On 1/9/2025 10:44 PM, Florent Michel wrote: Hi, I was trying to see if I could use MetaFun / MetaPost as my main tool for generating figures. I really like its close integration with ConTeXt, speed, and expressivity making it, even for a beginner like me, a  pleasure to work with. One

[NTG-context] Functional shading with MetaPost / MetaFun

2025-01-09 Thread Florent Michel
Hi, I was trying to see if I could use MetaFun / MetaPost as my main tool for generating figures. I really like its close integration with ConTeXt, speed, and expressivity making it, even for a beginner like me, a pleasure to work with. One difficulty I encountered is for generating 2D

[NTG-context] Metafun : reuse a static picture

2024-11-24 Thread Fabrice L
Dear list, I have some difficulty to reuse a static picture in a multipage MetaFun document. I wish to define a complex image, with graphic and texts, and manipulate this image at each page. As the minimal working example shows, if I define a particular picture in the variable

[NTG-context] Re: Same font for metafun as document

2024-09-16 Thread Shiv Shankar Dayal
w can I have > > metafun use the same fonts for labelling. All the metafun code is > > inline. > > MetaFun usually uses the main font. If it doesn’t, check if you set it > up before you create your graphics. > > If there’s a problem, m

[NTG-context] Re: Same font for metafun as document

2024-09-16 Thread Henning Hraban Ramm
Am 17.09.24 um 08:05 schrieb Shiv Shankar Dayal: Suppose I use dejavu fonts for the main document then how can I have metafun use the same fonts for labelling. All the metafun code is inline. MetaFun usually uses the main font. If it doesn’t, check if you set it up before you create your

[NTG-context] Same font for metafun as document

2024-09-16 Thread Shiv Shankar Dayal
Suppose I use dejavu fonts for the main document then how can I have metafun use the same fonts for labelling. All the metafun code is inline. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 24.01.2024 um 17:06: I am writing two books. One is on Rust programming and another is on geometry, so I have syntax highlighted code and in second has lost of diagrams. Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have heav

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
; > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for cac

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Hans Hagen
/filter/blob/dev/vim-README.md Caching is enabled out of the box, so you don't need to configure anything. Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file. There used to a command for caching metafun images in MkII, but I don'

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Aditya Mahajan
ing is enabled out of the box, so you don't need to configure anything. > Other than that, how can I cache Metafun images so that they are not > recomputed on every processing of file. There used to a command for caching metafun images in MkII, but I don't know if that is really needed

[NTG-context] Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
than that, how can I cache Metafun images so that they are not recomputed on every processing of file. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
Can we please add https://github.com/jemmybutton/byrne-euclid/blob/master/byrne.mp to Wiki because files have a tendency to disappear? Similarly, can we please add https://github.com/thruston/Drawing-with-Metapost/blob/main/Drawing-with-Metapost.pdf file to Wiki? -- Respect, Shiv Shankar Dayal ___

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
The fiziko library by the same author is also very interesting: > https://github.com/jemmybutton/fiziko > Since it has some pseudo-3D features, maybe you can learn from it. > Thanks for all this info. I will look into this and perhaps come up with a Metapost file, and then we can possibly add that

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Henning Hraban Ramm
would work with MetaFun (I think). The LaTeX package is in TeX Live, and the ConTeXt version is at https://github.com/jemmybutton/byrne-euclid/. The fiziko library by the same author is also very interesting: https://github.com/jemmybutton/fiziko Since it has some pseudo-3D features, maybe you can

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Gavin via ntg-context
Hi Shiv, The author of tikz-euclide has another package, tikz-elements, which looks like it could be used to do all of these calculations for MetaFun. The tikz-elements package, in spite of its name, appears to contain exactly one line of TikZ code. This line is in the very simple style file

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
stand that most of it is very easy, but still a library will help new users. Tikz has Tikz-Euclide and Asymptote has a Geometry package. A similar library for Metafun will be very useful. -- Respect, Shiv Shankar Dayal __

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Aditya Mahajan
On Fri, 12 Jan 2024, Shiv Shankar Dayal wrote: > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? No library that I know of, but drawing tangents (and therefore, perpendiculars) is straight-forward: https://tex.

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
library for common operations like finding > tangents, perpendiculars, circumcircle, orthocenters and such? > > I don’t think we have anything like that specifically in the MetaFun > world, but if there is a MetaPost package you like, you can use it with > MetaFun. For example, the TeX

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Gavin via ntg-context
Hi Shiv, > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? I don’t think we have anything like that specifically in the MetaFun world, but if there is a MetaPost package you like, you can use it with MetaFu

[NTG-context] Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, ple

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-31 Thread Gavin via ntg-context
Hi Hans and Mikael, Thanks for your solutions. I’m happy to discard paths that have no area, so I used: q = for i = 1 upto 3 : if (length(p[i]) > 1): p[i] && fi endfor cycle ; This worked in the MWE, but it didn’t solve my problem in the globes module. Something else must be happ

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-31 Thread Hans Hagen via ntg-context
On 12/31/2023 8:06 AM, Mikael Sundqvist wrote: \startMPpage path p[], q ; p1 = fullcircle scaled 3cm ; p2 = fullcircle scaled 2cm shifted (3cm,0) ; p3 = (3cm,2cm) ; p4 = fullcircle ; q = p[1] for i = 2 upto 3: if (length(p[i]) == 0): &&& else: && fi p[i] endfor && cycle ; eofill q withcolor 0.9 ;

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-30 Thread Mikael Sundqvist
Hi On Sun, Dec 31, 2023 at 3:33 AM Gavin via ntg-context wrote: > > Hi MetaFun fans, > > Following a suggestion of Hans, I experimented with && and &&& and &&&& for > joining paths in MetaFun. The joiner &&& produces one long pat

[NTG-context] MetaFun path joiners && and &&&& do not like single point paths

2023-12-30 Thread Gavin via ntg-context
Hi MetaFun fans, Following a suggestion of Hans, I experimented with && and &&& and &&&& for joining paths in MetaFun. The joiner &&& produces one long path, but && and &&&& seem to produce a disconnected path which in

[NTG-context] Drawing calligraphy practice grid in metafun

2023-11-20 Thread Andres Conrado Montoya
fline solution. This adventure started with the usual insidious idea: "I could do this in ConTeXt! And this is a great opportunity to learn metafun!" A couple weeks later, I have an almost ready product! It compiles fine, but I have the following issue: The template creates a Line, composed o

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
Dear all, I think that I found the cause. The page layout of my file is different from that of MetaFun manual. After borrowing the \setuplayout from MetaFun-000.tex, it works correctly. I am sorry to give you a wrong example. Thank you for reading. Best regards, Dalyoung > 2023. 2. 10.

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
Dear all, I copied the code of defining chapter command from metafun-000.tex, and run it. But the result is different from that in MetaFun Manual. There is a big spaces between the number and the title which yields the number cannot be seen. I commented out several lines which seems to be not

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 3:05 PM, Gavin via ntg-context wrote: Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Gavin via ntg-context
Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine with ConTeXt ver: 2022.12.07 20:24 LMTX fmt: 2022.12

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-18 Thread Alexandre Christe via ntg-context
Hi Hans, On osx-64 I'm not getting a single connector printed when compiling anchor-002.tex. I've attached the log in case. Am I doing something wrong on my end? Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context a écrit : > On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: > >

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers ar

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers ar

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Otared Kavian via ntg-context
Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2 ar

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 5:15 PM, Gavin wrote: Hi Hans and List, 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get it

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Gavin via ntg-context
Hi Hans and List, >> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value >> pairs like I do with \setMPpositiongraphic? > see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some int

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 4:20 AM, Gavin via ntg-context wrote: Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has

[NTG-context] Mathematical MetaFun Mania

2022-12-14 Thread Gavin via ntg-context
Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has examples of almost everything I need. It’s a lot, but

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Hans Hagen via ntg-context
On 8/25/2022 6:05 PM, Bruce Horrocks via ntg-context wrote: I'm seeing the line + arcs behaviour here. fixed in upload (we had a bug in mplib .. direction is now a primitive so that one was wrong) Hans -

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Bruce Horrocks via ntg-context
I'm seeing the line + arcs behaviour here. ConTeXt ver: 2022.08.05 11:44 LMTX fmt: 2022.8.5 int: english/english > On 25 Aug 2022, at 13:03, Fabrice L via ntg-context > wrote: > > Hi, > >> Le 24 août 2022 à 22:50, fv leung via ntg-context a >> écrit : >> >> The following used to produc

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Fabrice L via ntg-context
Hi,Le 24 août 2022 à 22:50, fv leung via ntg-context a écrit :The following used to produce three parallel lines.Now it produces one straight line and two arcs.\starttext\startMPcode  z0 = origin;  z1 = 72dir(45);  dotlabel.bot("z0", z0);  draw z0--z1;  draw (z0--z1) paralleled

[NTG-context] metafun paralleled does not give a parallel path

2022-08-24 Thread fv leung via ntg-context
The following used to produce three parallel lines. Now it produces one straight line and two arcs. \starttext \startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue; \stopMP

[NTG-context] MetaFun keywords extracted by mtxrun --script interface

2022-08-10 Thread Nicola via ntg-context
I am updating Vim syntax coloring for Metapost/MetaFun, which is now based on the files that are automatically generated with mtxrun --script interface --vim To test the results, I am opening ConTeXt's own MetaPost files in the editor and check how they look. It seems that the output o

Re: [NTG-context] Metafun hexagons aren't hexagons

2022-07-21 Thread Alan via ntg-context
On Thu, 21 Jul 2022 18:51:23 +0200 Hans Hagen via ntg-context wrote: > On 7/21/2022 5:56 AM, Alan via ntg-context wrote: > > On Wed, 20 Jul 2022 15:26:53 -0600 > > Max Chernoff via ntg-context wrote: > > > >> The recently added Metafun hexagons seem to be p

Re: [NTG-context] Metafun hexagons aren't hexagons

2022-07-21 Thread Hans Hagen via ntg-context
On 7/21/2022 5:56 AM, Alan via ntg-context wrote: On Wed, 20 Jul 2022 15:26:53 -0600 Max Chernoff via ntg-context wrote: The recently added Metafun hexagons seem to be producing octagons instead: \startMPpage fill fullhexagon scaled 100; draw unithexagon scaled 50

Re: [NTG-context] no greyscales in MetaFun any more?

2022-07-21 Thread Alan via ntg-context
On Sun, 17 Jul 2022 23:46:36 +0200 Hans Hagen via ntg-context wrote: > On 7/17/2022 9:52 PM, Henning Hraban Ramm via ntg-context wrote: > > Hi Hans et al., > > > > all my greys are black: > > > > % MWE: > > \startMPpage > > fill unitsquare scaled 10mm withcolor .5; > > \stopMPpage > > > > % re

Re: [NTG-context] Metafun hexagons aren't hexagons

2022-07-20 Thread Alan via ntg-context
On Wed, 20 Jul 2022 15:26:53 -0600 Max Chernoff via ntg-context wrote: > The recently added Metafun hexagons seem to be producing octagons > instead: > >\startMPpage >fill fullhexagon scaled 100; >draw unithexagon scaled 50 withcolor white; >\stopM

[NTG-context] Metafun hexagons aren't hexagons

2022-07-20 Thread Max Chernoff via ntg-context
Hi, The recently added Metafun hexagons seem to be producing octagons instead: \startMPpage fill fullhexagon scaled 100; draw unithexagon scaled 50 withcolor white; \stopMPpage -- Max ___ If

Re: [NTG-context] Metafun : save memory content ?

2022-07-19 Thread Fabrice L via ntg-context
alue, for example pos_1, pos_2.. How can I use >> metafun to write a macro to save the contents of hundreds of variable in >> this object, something like : >> >> getparameters "MyData » [ >> for i=1 upto 100 : >> pos_decimal(i) = The

Re: [NTG-context] Metafun : save memory content ?

2022-07-19 Thread Bruce Horrocks via ntg-context
> On 19 Jul 2022, at 04:28, Fabrice L via ntg-context > wrote: > > Complementary question : I saw that the « pos_a » « pos_b » of the example > could not take numerical value, for example pos_1, pos_2.. How can I use > metafun to write a macro to save the contents of hundr

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Fabrice L via ntg-context
> Le 18 juill. 2022 à 12:31, Hans Hagen via ntg-context a > écrit : > > On 7/18/2022 3:20 PM, Fabrice L via ntg-context wrote: >> Dear list, >> I’m doing animations in MetaFun, by simply using \startMPpage (…) >> \stopMPpage for each frame of the animation.

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Hans van der Meer via ntg-context
xt wrote: >> Dear list, >> I’m doing animations in MetaFun, by simply using \startMPpage (…) >> \stopMPpage for each frame of the animation. Here is an example: >> https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by >> adjusting the setting in YouT

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Hans Hagen via ntg-context
On 7/18/2022 3:20 PM, Fabrice L via ntg-context wrote: Dear list, I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage for each frame of the animation. Here is an example: https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by adjusting the setting in

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Hans Hagen via ntg-context
On 7/18/2022 4:39 PM, Henning Hraban Ramm via ntg-context wrote: Am 18.07.22 um 15:20 schrieb Fabrice L via ntg-context: Dear list, I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage for each frame of the animation. Here is an example: https://youtu.be/yhxUbVQx9Uo

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Henning Hraban Ramm via ntg-context
Am 18.07.22 um 15:20 schrieb Fabrice L via ntg-context: Dear list, I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage for each frame of the animation. Here is an example: https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by adjusting the setting in

[NTG-context] Metafun : save memory content ?

2022-07-18 Thread Fabrice L via ntg-context
Dear list, I’m doing animations in MetaFun, by simply using \startMPpage (…) \stopMPpage for each frame of the animation. Here is an example: https://youtu.be/yhxUbVQx9Uo (please note you can watch it in HD by adjusting the setting in YouTube). This works usually great, but when the number of

Re: [NTG-context] no greyscales in MetaFun any more?

2022-07-17 Thread Hans Hagen via ntg-context
On 7/17/2022 9:52 PM, Henning Hraban Ramm via ntg-context wrote: Hi Hans et al., all my greys are black: % MWE: \startMPpage fill unitsquare scaled 10mm withcolor .5; \stopMPpage % real life example: \startMPpage % grayscale squares for s=5 step 5 until 95:   numeric c; c := s/100;   fill un

[NTG-context] no greyscales in MetaFun any more?

2022-07-17 Thread Henning Hraban Ramm via ntg-context
Hi Hans et al., all my greys are black: % MWE: \startMPpage fill unitsquare scaled 10mm withcolor .5; \stopMPpage % real life example: \startMPpage % grayscale squares for s=5 step 5 until 95: numeric c; c := s/100; fill unitsquare scaled 5mm shifted (0,(s-5)*mm) withcolor c; label.lft(10

[NTG-context] Graded Transparency in MetaFun

2022-06-30 Thread Keith McKay via ntg-context
Hi all  I'm trying to create graded transparency over an area similar to the effect produced using lmt_shade, where one colour goes to another colour over a continuum, but with graded transparency we would go from say 0 to 1 transparency, for a single colour. See the MWE below. I have tried

[NTG-context] Problems with MetaFun Transparency Groups

2022-06-13 Thread Stefan Haller via ntg-context
Hi everyone! I have a question regarding transparency groups in MetaFun. As a toy example, I want to draw a grid of lines where the whole grid should have an opacity of 25%. If I draw intersecting lines individually with `withtransparency(1, .25)` the overlapping parts will have a total opacity

[NTG-context] MetaFun manual's "texvar" is not working for me

2022-05-21 Thread Gavin via ntg-context
Hello list, I’m trying to reproduce the positional graphics examples in the MetaFun manual on pp. 151-153. There are two examples of code for the mpos:box. The first example uses \MPvar to retrieve variables set using \setupMPvariables. This works fine. The second example uses texvar to

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-29 Thread Keith McKay via ntg-context
Hi Wolfgang, Thank you for your reply. I did as you suggested but it still never worked. However it did make me delve further into the Metafun, LuaMetaFun and the Colouring ConTeXt manuals where I found examples of the *resolvedcolor* helper which I used as follows: definecolor [name

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-29 Thread Keith McKay via ntg-context
Hi Fabrice Thank you for your reply. It works the way I wanted. Wolfgang also replied and this has lead me to an alternative method. See my reply to him in this mailing list. Best Wishes Keith On 28/04/2022 13:45, Fabrice L wrote: Sorry, I was a little too enthusiastic, here here is the co

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Wolfgang Schuster via ntg-context
Keith McKay via ntg-context schrieb am 28.04.2022 um 12:05: Hi, In the MWE below I define an rgb colour, myColor1, using random numbers for the r, g and b components. I then use it to fill a unitsquare the size of the page, which works as expected. In the loop that follows I then use the def

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
Sorry, I was a little too enthusiastic, here here is the code : > Le 28 avr. 2022 à 08:41, Fabrice L a écrit : > > Hi Keith, > >> Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context > > a écrit : >> >> Hi, >> >> In the MWE below I define an rgb colour, myColor1, us

Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Fabrice L via ntg-context
Hi Keith, > Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context a > écrit : > > Hi, > > In the MWE below I define an rgb colour, myColor1, using random numbers for > the r, g and b components. I then use it to fill a unitsquare the size of the > page, which works as expected. In the loop th

[NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Keith McKay via ntg-context
Hi, In the MWE below I define an rgb colour, myColor1, using random numbers for the r, g and b components. I then use it to fill a unitsquare the size of the page, which works as expected. In the loop that follows I then use the defined colour, myColor1, along with white and the variable r to

Re: [NTG-context] $\sin \theta$ behave differently in metafun

2022-04-16 Thread Pablo Rodriguez via ntg-context
On 4/16/22 13:01, śrīrāma via ntg-context wrote: > Strangely, my attachments never make it to the list Sreeram, as you can check yourself, the list got your attachment (https://mailman.ntg.nl/pipermail/ntg-context/2022/105466.html). Just in case it might help, Pablo

Re: [NTG-context] $\sin \theta$ behave differently in metafun

2022-04-16 Thread śrīrāma via ntg-context
On 4/16/22 4:00 PM Bruce Horrocks wrote: > The MWE works fine[1] in > system > ConTeXt ver: 2022.01.10 08:36 LMTX fmt: 2022.1.13 int: > english/english if that helps track down when the breaking change was made. > > [1] Caveat: since the OP doesn't actually describe what is going wrong

Re: [NTG-context] $\sin \theta$ behave differently in metafun

2022-04-16 Thread Bruce Horrocks via ntg-context
> On 16 Apr 2022, at 05:56, śrīrāma via ntg-context wrote: > > Hi Hans and Mikael (and others on the list), > > I can confirm that even with the newest LMTX [2022.04.15 20:20] the above > might > actually be a bug. mfunctions inside MP strings are not properly rendred. A > tiny MWE: > > \

Re: [NTG-context] $\sin \theta$ behave differently in metafun

2022-04-15 Thread śrīrāma via ntg-context
On 4/16/22 4:34 AM Jeong Dal via ntg-context wrote: > I use $\sin \theta$ and $\cos \theta$ behave differently in text and in metafun. > It works well sometime before but it doesn’t in metafun now. > What is wrong in my example? > > Thank you for reading. > Best regards, >

[NTG-context] $\sin \theta$ behave differently in metafun

2022-04-15 Thread Jeong Dal via ntg-context
Dear all, I use $\sin \theta$ and $\cos \theta$ behave differently in text and in metafun. It works well sometime before but it doesn’t in metafun now. What is wrong in my example? Thank you for reading. Best regards, Dalyoung Here is a MWE. \startbuffer[pointCircle] numeric u; u:=1cm; pair

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-21 Thread Willi Egger via ntg-context
li Egger via ntg-context schrieb am 20.03.2022 um 17:05: >> Hoi Wolfgang, >> >> I tested both variants (bodymatter and bodypart. The compilation runs >> through, however without the thumb-picture in the margin and the metafun >> error is in the log. > > 1. Do y

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 20.03.2022 um 17:05: Hoi Wolfgang, I tested both variants (bodymatter and bodypart. The compilation runs through, however without the thumb-picture in the margin and the metafun error is in the log. 1. Do you use \startfrontmatter and \startbodymatter

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
Hoi Wolfgang, I tested both variants (bodymatter and bodypart. The compilation runs through, however without the thumb-picture in the margin and the metafun error is in the log. Gruß! Willi > On 20 Mar 2022, at 17:00, Wolfgang Schuster via ntg-context > wrote: > > Willi E

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 20.03.2022 um 16:53: Hoi Wolfgang! thank you for your suggestion. Your example indeed works. However if I apply this to my situation, which is \startsectionblockenvironment[bodymatter] You use the wrong name for the argument: \startsectionblockenvironm

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
Hoi Wolfgang! thank you for your suggestion. Your example indeed works. However if I apply this to my situation, which is \startsectionblockenvironment[bodymatter] \setups{Thumb-pictures} \stopsectionblockenvironment nothing happens. I.e. I get no error, but also no picture, indicating,

  1   2   3   4   5   6   7   8   9   10   >