[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: Problem with the second \HL in the matrix

2025-07-03 Thread Ursula Hermann
; level 2, order 3, name > 'C:/texlive/2025/texmf-dist/tex/context/modules/mkxl/m-texlive.mkxl' > close source> level 1, order 3, name > 'C:/texlive/2025/texmf-dist/tex/context/texlive/cont-sys.mkxl' > system > files > jobname './context-test'

[NTG-context] Re: Problem with the second \HL in the matrix

2025-07-02 Thread Bruce Horrocks
/texlive/2025/texmf-dist/tex/context/modules/mkxl/m-texlive.mkxl' > close source> level 1, order 3, name > 'C:/texlive/2025/texmf-dist/tex/context/texlive/cont-sys.mkxl' > system > files > jobname './context-test', input > '

[NTG-context] Re: Problem with the second \HL in the matrix

2025-07-02 Thread Ursula Hermann
x27;./context-test' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 4, name './context-test.tex' fonts > preloading latin modern fonts (second stage) fonts

[NTG-context] Re: SlideTitle font in Simpleslide module

2025-06-21 Thread Jeong Dal via ntg-context
6: missing fonts > checking > char 이 (U+0C774) in font 'TeXGyrePagellaMath-Regular-2' with id 6: missing pages > flushing realpage 1, userpage 1, subpage 1 metafun > log > overloading permanent 'condition' fonts > checki

[NTG-context] Re: Metapost through context incorrect `hex` function output

2025-05-20 Thread Yann Herklotz
ild farm Oh thanks! I wasn't aware that there was a separate implementation in LMTX. Side note: the source code has been reorganized, cleaned up a bit, and additional primitives and features have been added so for lmtx one can also have a look at the luametafun manual (in addition to

[NTG-context] Re: Metapost through context incorrect `hex` function output

2025-05-20 Thread Hans Hagen
bit, and additional primitives and features have been added so for lmtx one can also have a look at the luametafun manual (in addition to metafun). The basics are to be the same of course (like this hex, although that one actually can be implemented more powerful with some lua help)

[NTG-context] Re: Metapost through context incorrect `hex` function output

2025-05-20 Thread Yann Herklotz
ote: Hi, I have found that the metapost `hex` function outputs a strange result when run through `context`.  I'm not quite sure what is leading to this output, maybe `hex` is redefined in `metafun`? just not implemented ... i pushed an update so you can check the binary from the bui

[NTG-context] Re: Metapost through context incorrect `hex` function output

2025-05-11 Thread Hans Hagen via ntg-context
On 5/9/2025 11:30 AM, Yann Herklotz wrote: Hi, I have found that the metapost `hex` function outputs a strange result when run through `context`.  I'm not quite sure what is leading to this output, maybe `hex` is redefined in `metafun`? just not implemented ... i pushed an update so yo

[NTG-context] Metapost through context incorrect `hex` function output

2025-05-09 Thread Yann Herklotz
Hi, I have found that the metapost `hex` function outputs a strange result when run through `context`. I'm not quite sure what is leading to this output, maybe `hex` is redefined in `metafun`? To reproduce, place the following in test.mp: ``` show hex "8d"; ``` Then run

[NTG-context] Re: Thesis in ConTeXt

2025-04-10 Thread Max Chernoff via ntg-context
hat one myself. > I also needed some time to find out that manuals exist for most parts > (first source for information was the wiki). When I found them, though, > they were really helpful, especially for more low level knowledge (and > as code examples). Yeah, some of the manuals are

[NTG-context] Re: Question about matrices with vertical and horizontal lines (and now adding arrows between cells)

2025-02-27 Thread Matthias Weber
gt; \bTR \bTD 23 \eTD \bTD 5 \eTD \bTD 7 \eTD \bTD 14\eTD \bTD 16 \eTD >> \eTR >>\bTR \bTD 4 \eTD \bTD [background=DiagonalArrow] 6 \eTD \bTD 13 \eTD >> \bTD 20\eTD \bTD 22 \eTD \eTR >> \bTR \bTD 10 \eTD \bTD 12 \eTD \bTD 19 \eTD \bTD 21\eTD \bTD 3 \eT

[NTG-context] Re: Question about matrices with vertical and horizontal lines (and now adding arrows between cells)

2025-02-27 Thread Mikael Sundqvist
ound=DiagonalArrow] 6 \eTD \bTD 13 \eTD > \bTD 20\eTD \bTD 22 \eTD \eTR > \bTR \bTD 10 \eTD \bTD 12 \eTD \bTD 19 \eTD \bTD 21\eTD \bTD 3 \eTD > \eTR >\bTR \bTD 11 \eTD \bTD 18 \eTD \bTD 25 \eTD \bTD 2\eTD \bTD 9 \eTD \eTR > \eTABLE > \stopExample >

[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: Does the return of "wdpart positionwhd" is the width of the box ?

2025-02-01 Thread Hans Hagen
On 2/1/2025 10:15 PM, garu...@azules.eu wrote: Hi, the metafun function positionwidth doesn't seems to be available, so I triy to use wdpart positionwhd. in anch-pos.lmt : function jobpositions.whd(id) local jpi = collected[id] if jpi then return jpi.w, jpi.h, jpi.d -

[NTG-context] Does the return of "wdpart positionwhd" is the width of the box ?

2025-02-01 Thread garulfo
Hi, the metafun function positionwidth doesn't seems to be available, so I triy to use wdpart positionwhd. But in the MVE, the green point is not at the expected position (on the right border of the frame). % \setupheadertexts[] \setuppapersize[A8,landscape] \setupbodyfont

[NTG-context] Re: Problem using Neo Euler in slides

2025-01-19 Thread a . kumar
; color space is supported colors > 'cmyk' color space is supported modules > 'units' is loaded open source > level 3, order 8, name '/usr/share/texmf/tex/context/modules/mkiv/m-units.mkiv' close source> level 3, order 8, name

[NTG-context] Re: Lua question - table.save, table.load

2025-01-11 Thread Jeong Dal via ntg-context
ist.lua')"); calls the contents of the tempList. I did this process several times using the different logic function as following. I want that the file “tempList.lus” contains the current truth table value only not appending it to the last truth table value. So I’d like to clear t

[NTG-context] Re: Lua question - table.save, table.load

2025-01-11 Thread Hans Hagen
On 1/11/2025 4:01 PM, Jeong Dal via ntg-context wrote: Dear all, I save a table “tfList” using table.save in Lua: \startluacode ... table.save(“tempList.lua”,tfList) ... \stopluacode And I call it in MetaFun using a method explained in the MetaFun book. \startMPcode lua("MP = { } MP

[NTG-context] Lua question - table.save, table.load

2025-01-11 Thread Jeong Dal via ntg-context
Dear all, I save a table “tfList” using table.save in Lua: \startluacode ... table.save(“tempList.lua”,tfList) ... \stopluacode And I call it in MetaFun using a method explained in the MetaFun book. \startMPcode lua("MP = { } MP.data = table.load('te

[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] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-08 Thread Jeong Dal via ntg-context
Dear Hans, I am sorry that I miss “context(func(set,u) and “1” or “0”) In your code. Correcting it, it works perfectly. By changing the logic function, we can draw truth tables upto 3 variables. After making a truth table, I draw Karnaugh Map of that table. I made a short MetaFun code

[NTG-context] Clip an image with a svg

2025-01-03 Thread juh+ntg-context--- via ntg-context
shifted argument by playing around with values, I wonder if it is possible to use a SVG as clip for an image. The SVG is something like this: http://www.w3.org/2000/svg";> stroke-width="2"/> I guess that there might be a way to translate this to Metafun or Metapos

[NTG-context] Re: On the use of btx datasets to manage images and plots

2024-12-19 Thread Marco Riggirello
Dear Hans, sorry for thanking you only now, I have the time to play around your files only now. Your solution is very very close to my needs! However, when I try to add this definition to your file "metafun-001.tex" \startsetups btx:samples:cite:image   \doifelsesomething

[NTG-context] Re: genealogy tree

2024-12-11 Thread Thomas Meyer
m/torfsen/gedcom2gtr For someone fluent in MetaFun and Lua and knowing ConTeXt’s XML features it would be probably not a very big deal to make something usable… Not me (besides lack of skills, also only marginally interested in

[NTG-context] Re: genealogy tree

2024-12-09 Thread Keith McKay
ound LaTeX’s genealogytree package plus a converter was a good fit. https://ctan.org/pkg/genealogytree https://github.com/torfsen/gedcom2gtr For someone fluent in MetaFun and Lua and knowing ConTeXt’s XML features it would be probably not a very big deal to make something usable… Not me

[NTG-context] Re: genealogy tree

2024-12-09 Thread Henning Hraban Ramm
erter was a good fit. https://ctan.org/pkg/genealogytree https://github.com/torfsen/gedcom2gtr For someone fluent in MetaFun and Lua and knowing ConTeXt’s XML features it would be probably not a very big deal to make something usable… Not me (besides lack of skills, also only marginally interested in

[NTG-context] Re: On the use of btx datasets to manage images and plots

2024-11-25 Thread Hans Hagen
entry to your bib dataset, say image = {foo.pdf} and access that field \externalfigure[\btxflush{image}] - a "own figures" dataset, with the plots I produced with external programs; - a "metafun figures" dataset, pointing at the metafun code corresponding to some diag

[NTG-context] On the use of btx datasets to manage images and plots

2024-11-25 Thread marco . riggirello . 98
hy dataset; - an "others' figure" dataset, with all the images I took from the references. This means that in some way in the caption I would like to cite the references included in the bibliography dataset; - a "own figures" dataset, with the plots I produced with exte

[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: Artifact in flow cell connection

2024-10-17 Thread Bernd Donner via ntg-context
Hello Bruce, Hello Hans, Thank you very much for your help and input. I tested the proposed patch with the minimal example, and the glitch indeed disappeared. I have to admit, I wasn’t aware that metafun could run in different instances, let alone the existence of both a double instance and a

[NTG-context] Re: Artifact in flow cell connection

2024-10-16 Thread Hans Hagen via ntg-context
at does the framed loads a metafun double instance so a later instance with the same name in the chart (lua) module takes that one; when it is the first one it will take the scaled instance (mkiv is scaled by default and mkxl defaults to double). We can run these charts in their own instance (i

[NTG-context] Re: GB7714-2015 of author-year format

2024-10-15 Thread hf
wn within a subsection with an overlay. The logic to create the underlined subsection is by the way copied from the metafun manual source. I do not have the slightest clue what is going wrong in this example. Thanks for ideas. Best, Bernd \usemodule[chart] \startuniqueMPgraphic{SectionUnderline

[NTG-context] Re: Artifact in flow cell connection

2024-10-15 Thread Bernd Donner via ntg-context
overlay. > The logic to create the underlined subsection is by the way copied from the > metafun manual source. I do not have the slightest clue what is going wrong > in this example. Thanks for ideas. > > Best, Bernd > > \usemodule[chart] > > \startuniqueMPgraphic{SectionU

[NTG-context] GB7714-2015 of author-year format

2024-10-13 Thread wangzhongtian
eate the underlined subsection is by the way copied from the metafun manual source. I do not have the slightest clue what is going wrong in this example. Thanks for ideas.Best, Bernd\usemodule[chart]\startuniqueMPgraphic{SectionUnderline} path p;p:= unitsquare xscaled OverlayWidth yscaled Overla

[NTG-context] Re: Artifact in flow cell connection

2024-10-12 Thread wangzhongtian
glemail.com"主 题:[NTG-context] Artifact in flow cell connectionHi,I have a broken flow cell connection in this minimal example. The broken flow cell is only triggered when drawn within a subsection with an overlay. The logic to create the underlined subsection is by the way copied from the metafun

[NTG-context] Artifact in flow cell connection

2024-10-11 Thread Bernd Donner via ntg-context
Hi, I have a broken flow cell connection in this minimal example. The broken flow cell is only triggered when drawn within a subsection with an overlay. The logic to create the underlined subsection is by the way copied from the metafun manual source. I do not have the slightest clue what is

[NTG-context] Re: Envelopes and shaded paths

2024-09-22 Thread Keith McKay
subPath by i only, to get the correct number of paths. I'm going to read, yet again, 8.3.3 in the MetaFuN manual. Thanks for your help Keith On 21/09/2024 19:37, Florent Michel wrote: Apologies for the double email. Seems I slightly misunderstood what you aimed for - the corrected (ass

[NTG-context] Re: Accessibility

2024-09-21 Thread Henning Hraban Ramm
metafun as document» What is this? The main thread which the accesibility thread belongs to. Sorry if the attached image displays what may be already clear to you, but it displays all messages as a single thread (with Thunderbird). I never saw or read this thread, so why do you think my email

[NTG-context] Re: Envelopes and shaded paths

2024-09-21 Thread Florent Michel
8.3.3 in the metafun manual), although after experimenting a bit I could not find an easy way to make it work. (This does not say much though - I'm definitely not very experienced in MetaFun.) Best wishes, Florent Le sam. 21 sept. 2024 à 17:51, Keith McKay a écrit : > Hi, > > I have

[NTG-context] Re: Accessibility

2024-09-21 Thread Pablo Rodriguez via ntg-context
w why replying to a >> message to create a new thread breaks the display of message threads. > > When I click on one of the two links you have posted, it will open > «Same font for metafun as document» > What is this? The main thread which the accesibility thread belongs to. Sorry

[NTG-context] Re: Accessibility

2024-09-20 Thread Steffen Wolfrum
lying to a > message to create a new thread breaks the display of message threads. When I click on one of the two links you have posted, it will open «Same font for metafun as document». What is this? I never saw or read this thread, so why do you think my email hijacked something? What ha

[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: Steps to become a ConTeXt developer

2024-08-28 Thread Hans Hagen via ntg-context
On 8/28/2024 5:06 PM, Henning Hraban Ramm wrote: Also, Hans announced to include some "2.5D" functions (perspective projections) into MetaFun soon. That might obsolete some uses of Asymptote. But a proper 3D model for MetaPost seems to be missing (not my expertise). Indeed, Mi

[NTG-context] Re: Steps to become a ConTeXt developer

2024-08-28 Thread Henning Hraban Ramm
programs is slow. MetaPost is fast, (also) because it is integrated as a library. It’s possible to address C libraries using Lua’s FFI (don’t ask me how, there is/was a manual). Also, Hans announced to include some "2.5D" functions (perspective projections) into MetaFun soon. That migh

[NTG-context] Re: Help with Metapopst code

2024-08-28 Thread Mikael Sundqvist
le of section 2.9 of > > > > https://www.pragma-ade.com/general/manuals/metafun-p.pdf > > > > Thanks, I am reading that. > > > /Mikael > > > > PS Please do not cross post here and on stackexchange

[NTG-context] Re: Help with Metapopst code

2024-08-28 Thread Shiv Shankar Dayal
For your labeling problem, see the last example of section 2.9 of > > https://www.pragma-ade.com/general/manuals/metafun-p.pdf > Thanks, I am reading that. > /Mikael > > PS Please do not cross post here and on stackexchange (at least not > without telling). > I wi

[NTG-context] Re: Help with Metapopst code

2024-08-28 Thread Mikael Sundqvist
Hi, I don't know where you found the code, but the answer to "What is (0, r) rotated (a *i) doing?" is that it takes the point (0,r) and rotates it a*i degrees. For your labeling problem, see the last example of section 2.9 of https://www.pragma-ade.com/general/manuals/metafun

[NTG-context] Re: Missing \endcsname inserted error

2024-08-13 Thread Jeong Dal via ntg-context
Whoops!!! I didn’t see the backslash in there!! It is a simple typo. Thanks Wolfgang. Best regards, Dalyoung > 2024. 8. 14. 오전 4:33, Wolfgang Schuster > 작성: > > Jeong Dal via ntg-context schrieb am 13.08.2024 um 21:21: >> Hi, >> I draw a figure using MetaFun and ins

[NTG-context] Re: Missing \endcsname inserted error

2024-08-13 Thread Wolfgang Schuster
Jeong Dal via ntg-context schrieb am 13.08.2024 um 21:21: Hi, I draw a figure using MetaFun and insert it \startplacefigure and \stopplacefigure. (Sample file is listed below) But, I got an error as following: Missing \endcsname inserted [...] \starttext \startplacefigure[location=none

[NTG-context] Missing \endcsname inserted error

2024-08-13 Thread Jeong Dal via ntg-context
Hi, I draw a figure using MetaFun and insert it \startplacefigure and \stopplacefigure. (Sample file is listed below) But, I got an error as following: Missing \endcsname inserted \defcsname \mult_interfaces_get_parameters_item_okay #1=#S#2,->\ifarguments

[NTG-context] Re: Customizing chapter and page no. styles

2024-08-02 Thread Duncan Hothersall
In the Metafun manual source the setup for page numbering is: \startuseMPgraphic{circled} pickup pencircle scaled 1mm ; drawoptions(withcolor (.6+uniformdeviate.35)*white) ; fill fullcircle xscaled 1.5cm yscaled 1cm ; drawoptions(withcolor .625yellow) ; draw fullcircle xscaled 1.5cm

[NTG-context] Customizing chapter and page no. styles

2024-08-02 Thread Shiv Shankar Dayal
Hi, I was going through the Metafun manual, the print version, which comes with distribution. I see how page no. and chapters are styles. How can I customize for that kind of output in the current version of ConTeXt? -- Respect, Shiv Shankar Dayal

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-21 Thread Hans Hagen via ntg-context
Z for figure typesetting. If you use that kind of simple graphics, you can avoid this transparency hacking by using metafun: \setupbodyfont[dejavu] \starttext \startuseMPgraphic{test} pickup pencircle scaled 2mm ; draw fullcircle scaled 3cm withcolor darkred withstacking 1 ;

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-21 Thread Gerion Entrup
I'm using LaTeX-Beamer and TikZ for figure typesetting. > If you use that kind of simple graphics, you can avoid this transparency > hacking by using metafun: > > \setupbodyfont[dejavu] > > \starttext > > \startuseMPgraphic{test} > pickup pencircle scaled 2

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-19 Thread Hans Hagen
ng by using metafun: \setupbodyfont[dejavu] \starttext \startuseMPgraphic{test} pickup pencircle scaled 2mm ; draw fullcircle scaled 3cm withcolor darkred withstacking 1 ; draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ; draw textext("one") with

[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
ase add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm
over new frontiers: NTS, MetaFun, Oriental TeX, LuaTeX, mplib, LuaMetaTeX… They’re also dubbed the incisors (AKA cutting edge) of the dinosaur of Open Source. ConTeXt is aimed at creative users, known for advanced features like extensive font control and direct XML processing, with a deep

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
local list = origin[field] if list then for i=1,#list do target[list[i]] = true end end end end -- for interface, whatever in next, collected do local combined = { } add(c

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
upport for envelopes (penbased outlines) in metafun. This is still work in progress, some is present and discussed in the manual, and we'll come back to that sometime next month. Given the next item, we also might need to change some in the manual (different focus).-- Because we have users

[NTG-context] Re: upload

2024-04-01 Thread Mikael Sundqvist
features. > > -- In the process, support for LCH colors has been added, which is > documented in the (eg luametafun manual). > > -- The math manual is not yet there because we were distracted by > improving support for envelopes (penbased outlines) in metafun. This is > still work

[NTG-context] upload

2024-04-01 Thread Hans Hagen
the (eg luametafun manual). -- The math manual is not yet there because we were distracted by improving support for envelopes (penbased outlines) in metafun. This is still work in progress, some is present and discussed in the manual, and we'll come back to that sometime next month. Give

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
, input './ctx-test-MetaPost-pdf.tex', result './ctx-test-MetaPost-pdf' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './ctx-test-MetaPost-pdf.tex' fonts

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
olour gradients, MetaPost needs to work with Metafun (see here : https://wiki.contextgarden.net/Color_in_MetaPost). Perhaps an image in *.png format is required. But I can't give any advice, as I'm not an experienced MetaPost/Metafun user. see this code below and the result a

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Make draw and fill sketchy %D ... %D naturalizepaths; % Restore the value of draw and fill %D ... %Dendfig %D \stoptyping %D %D The code is heavily inspired by Hans Hagen's Metafun macros. %D %D The macro \type{s

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-20 Thread Gavin via ntg-context
ve 2023). In ConTeXt > terms, this is almost ancient (»uralt«). Just to clarify, TeX Live 2023 has a perfectly good, rather up-to-date version of ConTeXt. I’m using it to typeset books and papers with all sorts of MetaFun craziness. However, if I attempt to typeset one of these ConTeXt d

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Keith McKay
went to use the lmt_shade function and it fails with two error messages. > the first one is: > *metafun > log > error: Not a cycle* > followed by lots of trace messages, then: > *metafun > log > That contour should have ended with '.. cycle' or '& > c

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Fabrice L
Dear Keith, > Le 18 févr. 2024 à 11:44, Keith McKay a écrit : > > Hi all > I went to use the lmt_shade function and it fails with two error messages. > the first one is: > > metafun > log > error: Not a cycle > > followed by lots of trace messages,

[NTG-context] lmt_shade fails

2024-02-18 Thread Keith McKay
Hi all I went to use the lmt_shade function and it fails with two error messages. the first one is: /metafun > log > error: Not a cycle/ followed by lots of trace messages, then: /metafun > log > That contour should have ended with '.. cycle' or '& cycle'.

[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 ___

  1   2   3   4   5   6   7   8   9   10   >