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: [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; >\

[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

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_de

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 hu

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
ote: >> 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 YouTu

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

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

[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

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

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

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread fv leung via ntg-context
tested): See https://www.contextgarden.net/Command/setupMPinstance > > > > \setupMPinstance[metafun][textstyle=sans] > > > > Or define a new instance, which sets the textstyle to sans. > > Thank you for trying, but that doesn’t seem to have anything to do with >

Re: [NTG-context] MetaPost label font size

2022-07-06 Thread Henning Hraban Ramm via ntg-context
Am 06.07.22 um 07:17 schrieb Aditya Mahajan via ntg-context: On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle

Re: [NTG-context] MetaPost label font size

2022-07-05 Thread Aditya Mahajan via ntg-context
On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > How can I change the font size of labels within one picture? (Untested): See https://www.contextgarden.net/Command/setupMPinstance \setupMPinstance[metafun][textstyle=sans] Or define a new instance, which sets the textst

[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

Re: [NTG-context] Metapost examples seems broken

2022-05-22 Thread Bruce Horrocks via ntg-context
t; HI! > > I have issues to access the very most useful place to get inspiration to > write MetaFun code. > > Google Chrome reports security issues > > Maybe this could be off topic in this forum, if so, My apologize in advance. > But maybe someone knows the author of this

[NTG-context] Metapost examples seems broken

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
HI! I have issues to access the very most useful place to get inspiration to write MetaFun code. Google Chrome reports security issues Maybe this could be off topic in this forum, if so, My apologize in advance. But maybe someone knows the author of this site https://tex.loria.fr/prod-graph

[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

[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] upload

2022-05-11 Thread Zhichu Chen via ntg-context
d Do you mind get the new ones in the next beta? Best regards, Zhichu On 5/9/22 23:41, Hans Hagen via ntg-context wrote: Hi, I uploaded a new version of lmtx (also because some users have to test some new metapost functionality). In the next upload metafun will use 'double' mode (and scale

Re: [NTG-context] upload

2022-05-09 Thread śrīrāma via ntg-context
need to hand in some > > report really soon. > I can confirm that there is a problem. But in the example below it > goes away if I uncomment the \usebtxdefinitions[aps]. > > /Mikael > > \startbuffer[bib] > @ELECTRONIC{hh2010, > author = {Hans Hagen}, > year = {201

Re: [NTG-context] upload

2022-05-09 Thread Mikael Sundqvist via ntg-context
re is a problem. But in the example below it goes away if I uncomment the \usebtxdefinitions[aps]. /Mikael \startbuffer[bib] @ELECTRONIC{hh2010, author = {Hans Hagen}, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } \stopbuffer \usebtxdat

Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
w metapost functionality). In the next upload metafun will use > > 'double' mode (and scaledfun will be the traditional one). The advantage > > is less dager for overflows and in the meantime running in double mode > > is often also faster. > > > > ___

Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context
some new metapost functionality). In the next upload metafun will use 'double' mode (and scaledfun will be the traditional one). The advantage is less dager for overflows and in the meantime running in double mode is often also faster

[NTG-context] upload

2022-05-09 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version of lmtx (also because some users have to test some new metapost functionality). In the next upload metafun will use 'double' mode (and scaledfun will be the traditional one). The advantage is less dager for overflows and in the meantime running in double mode

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

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

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,

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

[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

Re: [NTG-context] new upload

2022-04-23 Thread śrīrāma via ntg-context
On 4/21/22 8:24 PM Alexandre Christe via ntg-context wrote: > While the typesetting issue in Metafun disappeared, another popped up in > the bibliography. > > For an entry with \usebtxdefinitions[apa], it is printing ": [author: > Robert L. Boylestad] [date-added: 2022-

Re: [NTG-context] new upload

2022-04-21 Thread Alexandre Christe via ntg-context
Hi Hans, While the typesetting issue in Metafun disappeared, another popped up in the bibliography. For an entry with \usebtxdefinitions[apa], it is printing ": [author: Robert L. Boylestad] [date-added: 2022-04-15 14:43:59 +0200] [date-modified: 2022-04-15 14:45:15 +0200] [edition

Re: [NTG-context] new upload

2022-04-19 Thread Jeong Dal via ntg-context
20. 오전 4:18, Jeong Dal via ntg-context 작성: > > Dear Hans, > > A new upload solves the math font problem in MetaFun. The code > label(textext("$\sin\theta$”),origin); > is working well. > Also, your sample file adaptive-001.tex is also working without error which &

Re: [NTG-context] new upload

2022-04-19 Thread Jeong Dal via ntg-context
Dear Hans, A new upload solves the math font problem in MetaFun. The code label(textext("$\sin\theta$”),origin); is working well. Also, your sample file adaptive-001.tex is also working without error which is not compiled before. However, \vfill is not working in column mode

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

2022-04-19 Thread Mikael Sundqvist via ntg-context
e as an image. Instead of the mfunction > maxᵢ xᵢ > some form of the string mathfunctionhandlelabel is typeset. > > I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and > mlib-pps but could not figure out what is going wrong. I wonder if there is a > backslas

[NTG-context] Math functions not typeset inside MetaPost

2022-04-19 Thread śrīrāma via ntg-context
ndle_label [math-ini] and also mp-mlib and mlib-pps but could not figure out what is going wrong. I wonder if there is a backslash missing somewhere. I am a little worried since I use MetaFun in conjunction with maths and could not figure out what the issue is. Please see the original post by Dal

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

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] new upload

2022-04-16 Thread Pablo Rodriguez via ntg-context
On 4/15/22 20:24, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a new lmtx. Apart from a experimental intersection feature in > the mp library (and metafun, more will be revealed when MS an I are okay > with it) there is not that much news. Many thanks for the new upl

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

[NTG-context] new upload

2022-04-15 Thread Hans Hagen via ntg-context
Hi, I uploaded a new lmtx. Apart from a experimental intersection feature in the mp library (and metafun, more will be revealed when MS an I are okay with it) there is not that much news. I decided to turn some test code into a mechanism which is illustrated below. Adaptive boxes are hboxes

Re: [NTG-context] Chapter number retrieval

2022-03-23 Thread Willi Egger via ntg-context
I am using in my attempt to get this hidden >>> number. But no it does not appear… >>> >>> Thank you! >>> Willi >>> >>>> On 21 Mar 2022, at 22:33, jbf via ntg-context wrote: >>>> >>>> Willi, >>>> >>

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Adam Reviczky via ntg-context
>> > > >> I see a comment by yourself back in 2011 at > https://wiki.contextgarden.net/Last_Head_Number > > >> > > >> I wonder if this helps? > > &g

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
, > >> > >> I see a comment by yourself back in 2011 at > >> https://wiki.contextgarden.net/Last_Head_Number > >> > >> I wonder if this helps? > >> > >> Julian > >> > >> On 22/3/22 07:47, Willi Egger via

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
lli Egger via ntg-context wrote: >> I would like to typeset the chapter title without number in the text. — >> However I still would need to retrieve the number for a calculation in a >> MetaFun graphic. I assume, that even though this number is not typeset, it >> is kept i

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread śrīrāma via ntg-context
On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote: > I would like to typeset the chapter title without number in the text. — > However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that even though this number is no

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Adam Reviczky via ntg-context
er via ntg-context wrote: > >>> Hello everybody! > >>> > >>> > >>> I would like to typeset the chapter title without number in the text. > — However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that ev

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
://wiki.contextgarden.net/Last_Head_Number I wonder if this helps? Julian On 22/3/22 07:47, Willi Egger via ntg-context wrote: Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
without number in the text. — >> However I still would need to retrieve the number for a calculation in a >> MetaFun graphic. I assume, that even though this number is not typeset, it >> is kept in the background. How to retrieve it? >> >> Kind regards >> >> W

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ If your

[NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind

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. D

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:

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,

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

2022-03-20 Thread Willi Egger via ntg-context
tared K. >>> >>>> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context >>>> wrote: >>>> >>>> Good evening! >>>> >>>> I have a dictionary where I would like to include thumb-pictures in the >>>> margin. —

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 19.03.2022 um 21:42: Hello Otared, thanks so much for your testing and comments. — Tthe problem is, that this thumb-picture should only be placed in the \startboydmatter..\stopbodymatter sections. In the case of this book however there are the title

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

2022-03-19 Thread Otared Kavian via ntg-context
t;> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context >>> wrote: >>> >>> Good evening! >>> >>> I have a dictionary where I would like to include thumb-pictures in the >>> margin. — When I use the attached code with a single >>> \sta

[NTG-context] Metafun, difficulty with graphical element in the margin, again.

2022-03-19 Thread Willi Egger via ntg-context
Hello, I am a little desperate… I have installed in a new directory the latest version of ConTeXt. I run the sample file I provided before. After enabling a second chapter-section before the \setups{Thumb-picture} the metafun error reoccurs. — Looking at the log I do net get really wiser

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

2022-03-19 Thread Willi Egger via ntg-context
t works. However if I add another >> \startchapter…\stopchapter before loading the setups for the thumb-picture >> metafun throws an error about not having complete information for performing >> a transformation. >> >> I am currently using the befor

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

2022-03-19 Thread Otared Kavian via ntg-context
However if I add another > \startchapter…\stopchapter before loading the setups for the thumb-picture > metafun throws an error about not having complete information for performing > a transformation. > > I am currently using the before last version of LMTX-ConTeXT (January 21st >

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

2022-03-19 Thread Hans Hagen via ntg-context
before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation. I am currently using the before last version of LMTX-ConTeXT (January 21st 2022). Could someone try to compile? works here (with the latest) Hans

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

2022-03-18 Thread śrīrāma via ntg-context
ses, no errors were emitted by MetaFun; the output also seems to be as expected (thumb pictures progressively moving downward with every chapter). Sreeram ___ If your question is of interest to others as well, please

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

2022-03-18 Thread Willi Egger via ntg-context
Good evening! I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws

Re: [NTG-context] new upload

2022-03-15 Thread Hans Hagen via ntg-context
college assignments and work, so sorry for that... I just updated today] I have tested out most of my documents (some with many MetaFun diagrams) and all work well! I have several documents which are very mathematics-heavy and all of those work great as well. In fact, I also noticed some improvements

Re: [NTG-context] new upload

2022-03-15 Thread śrīrāma via ntg-context
ome college assignments and work, so sorry for that... I just updated today] I have tested out most of my documents (some with many MetaFun diagrams) and all work well! I have several documents which are very mathematics-heavy and all of those work great as well. In fact, I also noticed some

Re: [NTG-context] new upload

2022-03-13 Thread Rik Kabel via ntg-context
On 2022-03-11 18:16, Hans Hagen via ntg-context wrote: Hi, It has been a while since there was an updaste but there it is. The most significant 'changes' are: - more automatic adaption to double sided page properties in metafun (lmtx) ... blame sreeram and me for messing up - more

[NTG-context] Errors compiling the MetaFun manual

2022-03-12 Thread Marco Patzer via ntg-context
Hi! I tried to compile the MetaFun manual from /doc/context/sources/general/manuals/metafun and ran into a few issues. I don't know if that's expected or if it's supposed to work on a current LMTX. Attached are the first two issues. It takes a while to boil it down to MWEs. Let me know if I

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

2022-03-12 Thread Hans Hagen via ntg-context
in: metafun > log > error: Isolated expression This is still an issue with today's ver: 2022.03.12 11:27 LMTX. that's because ascimode messes up some catcodes .. you can try this (in cont-new.tex): \prependtoks \setcatcodetable\ctxcatcodes \to \everyMPgraphic and then d

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] new upload

2022-03-11 Thread Hans Hagen via ntg-context
Hi, It has been a while since there was an updaste but there it is. The most significant 'changes' are: - more automatic adaption to double sided page properties in metafun (lmtx) ... blame sreeram and me for messing up - more extensibve support for indic fonts which sreeram has documented

Re: [NTG-context] PageNumber in MetaFun

2022-03-02 Thread Marco Patzer via ntg-context
On Wed, 2 Mar 2022 13:15:18 +0100 "Thomas A. Schmitz via ntg-context" wrote: > try "RealPageNumber" instead of "PageNumber." That works. Thanks for the quick reply. Marco ___ If your question is of interest to

Re: [NTG-context] PageNumber in MetaFun

2022-03-02 Thread Thomas A. Schmitz via ntg-context
On 3/2/22 13:05, Marco Patzer via ntg-context wrote: LMTX 2022.01.21 20:13 produces a rectangle on page 2, an older MkIV produces a circle on page 2. Is this expected behaviour? Marco This has changed some time ago; try "RealPageNumber" instead of "PageNumber." Thomas

[NTG-context] PageNumber in MetaFun

2022-03-02 Thread Marco Patzer via ntg-context
Hi! Has something changed regarding PageNumber? Take the following example: \starttext foo\page \startMPcode if PageNumber==1: fill unitsquare scaled 1cm; elseif PageNumber==2: fill fullcircle scaled 2cm; fi \stopMPcode \stoptext LMTX 2022.01.21 20:13 produces a

Re: [NTG-context] shapepar for ConTeXt

2022-02-14 Thread Mikael Sundqvist via ntg-context
r.pdf > page 9) with ConTeXt. > > TIA for any hints, > -- >Peter Not a heart example, but since I guess you really want an answer today: see around page 272 of https://www.pragma-ade.com/general/manuals/metafun-p.pd

[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 &g

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 t

[NTG-context] MetaFun: textext.origin, thelabel.origin not positioned on baseline

2022-01-13 Thread Gavin via ntg-context
Hello again List, Now I’m making diagrams using MetaFun. The MetaFun manual describes an “origin” option for positioning textext’s and label’s on the baseline. However, this dose not appear to be happening with the code in the manual (below). In fact, the diagram in the manual dose not show

Re: [NTG-context] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
was certainly surprised by the result. Now I’m moving on to the problem set's diagrams with MetaFun. Gavin > On Jan 13, 2022, at 10:15 AM, Aditya Mahajan via ntg-context > wrote: > > On Thu, 13 Jan 2022, Gavin via ntg-context wrote: > >> Hi list, >> >> When

Re: [NTG-context] How to setupbtx to get short citations?

2022-01-11 Thread Mikael Sundqvist via ntg-context
\cite[hh2010] instead). What do I miss? (Except for the fact that I > should probably define my own btx style as a copy of aps instead of > setting the aps up...) > > /Mikael > > \startbuffer[bib] > @ELECTRONIC{hh2010, > author = {Hans Hagen}, > year = {2010}, >

[NTG-context] How to setupbtx to get short citations?

2022-01-09 Thread Mikael Sundqvist via ntg-context
own btx style as a copy of aps instead of setting the aps up...) /Mikael \startbuffer[bib] @ELECTRONIC{hh2010, author = {Hans Hagen}, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } \stopbuffer \usebtxdataset[bib.buffer

Re: [NTG-context] Documentation about CTX installation on MacOS X

2022-01-02 Thread Fabrice L via ntg-context
sually follow with success this page of the wiki : https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS Regarding modules, on MacOS, the script described here (again on the wiki) works well for me: https://wiki.contextgarden.net/Modules#ConTeXt_LMTX Finally, I use TexPad as my context/m

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
2, 2022 at 3:36 PM Hans Hagen wrote: > On 1/2/2022 3:12 PM, Alfredo Catalina via ntg-context wrote: > > I'm trying to use ConTeXt with Metafun to produce a map of a videogame I > > am working on. In fact I did it 9 years ago but it seems that now it > > doesn't work. > >

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Hans Hagen via ntg-context
On 1/2/2022 3:12 PM, Alfredo Catalina via ntg-context wrote: I'm trying to use ConTeXt with Metafun to produce a map of a videogame I am working on. In fact I did it 9 years ago but it seems that now it doesn't work. I have two 32 pixels wide by 40 pixels high sprites. They are saved

Re: [NTG-context] Laundry symbols (now: altered picture)

2022-01-02 Thread Alfredo Catalina via ntg-context
I'm trying to use ConTeXt with Metafun to produce a map of a videogame I am working on. In fact I did it 9 years ago but it seems that now it doesn't work. I have two 32 pixels wide by 40 pixels high sprites. They are saved in the skysprite.png and sandsprite.png files. Since 32 = 4 x 8 and 40

Re: [NTG-context] [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters

2022-01-01 Thread kauśika via ntg-context
On Saturday, January 1, 2022 3:45:36 PM IST Hans Hagen wrote: > \starteffect is kind of old (comes from mkii), but you could use the > pseudo font feature effect in mkiv / lmtx which then makes a real font > instance instead of mixing in some pdf magic Thanks for the explanations Hans! Happy new

Re: [NTG-context] [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters

2022-01-01 Thread Hans Hagen via ntg-context
On 12/31/2021 3:13 AM, kauśika via ntg-context wrote: Dear list, I have the following graphic \startuseMPgraphic{TitleGraphic} draw outlinetext.b (\MPstring{TitleText}) (withcolor "titlefg") (withcolor "titleoutline"); \stopuseMPgraphic which I tried to use as follows to produce a

Re: [NTG-context] [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters

2021-12-30 Thread kauśika via ntg-context
On Friday, December 31, 2021 7:43:21 AM IST kauśika wrote: > Dear list, > > I have the following graphic > > \startuseMPgraphic{TitleGraphic} > draw outlinetext.b (\MPstring{TitleText}) > (withcolor "titlefg") > (withcolor "titleoutline"); > \stopuseMPgraphic > > which I tried to use as

[NTG-context] [MetaFun] Trying to understand outlinetext, 'stretch' effect and \kerncharacters

2021-12-30 Thread kauśika via ntg-context
Dear list, I have the following graphic \startuseMPgraphic{TitleGraphic} draw outlinetext.b (\MPstring{TitleText}) (withcolor "titlefg") (withcolor "titleoutline"); \stopuseMPgraphic which I tried to use as follows to produce a stylized 'title' head: \setupMPtext{TitleText}{%

[NTG-context] Bug in mp-xbox.mpxl (circleit)

2021-12-22 Thread Jacob Kauffmann via ntg-context
("$X$")); drawboxed(a); \startMPpage The error (truncated) message: metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost > loading 'metafun' as 'metafun.mpxl' using method 'default' metapost> initializing

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