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] Is this possible to do the same

2022-12-12 Thread Ursula Hermann via ntg-context
use the MetaFun features of ConTeXt to cross out stuff. % Cancel command for use in equations. \startuniqueMPgraphic{cross out} picture cross; cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle scaled .8pt

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Gavin via ntg-context
Hi Uschi, I use the MetaFun features of ConTeXt to cross out stuff. % Cancel command for use in equations. \startuniqueMPgraphic{cross out} picture cross; cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle

Re: [NTG-context] annotated equations

2022-11-17 Thread Hans Hagen via ntg-context
anual, additional trickery, mixed with stimulating metafun (attached a quick and dirty copy of one of our many todo docs) Hans (who every time he sees something called 'mastodon' has to smile and remember reading https://eu.palmbeachdailynews.com/story/entertainment/2020/10/16/carl-hia

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
Okay, they aren't _real_ perceptrons, but fancy parameterized trees connected on a hex grid, coded with MetaFun and Lua. Big version: https://pdfhost.io/v/piuN04dSq_perceptron If anyone is interested in the full source code, let me know. I couldn't get "angle" to work

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Joel via ntg-context
y simple to do with layers/backgrounds + MetaFun. If you want for there to be exactly three rules per paragraph, then that is more complicated. I can think of some bad solutions (\everypar, Lua callbacks), but I'll leave it to someone else to think of a good s

Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
I would suggest the approach of Wolfgang because the standard setting of \framed(texts)’ width is fit and the height setting can be changed to this too. Further I would suggest to use an overlay and a Metafun graphic for the cut-indicators. \defineoverlay[Cutpointstight][\useMPgraphic

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-09 Thread Max Chernoff via ntg-context
Hi Joel, > I'd like to add some area for readers to write in the margins of some > text. This would leave three lines, like this to the right of the > text. Is it okay if there are rules continuously down the right column? If so, this is fairly simple to do with layers/backgro

Re: [NTG-context] update old MP code

2022-09-01 Thread Henning Hraban Ramm via ntg-context
never know which function is part of MetaPost/MetaFun, my editor’s syntax highlighting is incomplete... Hraban moireetest.tex Description: TeX document ___ If your question is of interest to others as well, please add

[NTG-context] update old MP code

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Hi, here’s a snippet of old Metapost code that I’d like to use in ConTeXt. I didn’t manage to update it to MetaFun – can you help me? Hraban - \setupbodyfont[plex,ss,8bp] \startreusableMPgraphic{moiree} % 1994 by Bogusław Jackowski (GUST) defaultfont := "\truefontname{Sans}&quo

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] underbrace under matrix

2022-08-05 Thread Jethro Djan via ntg-context
Hi, I will wait for the manual. With drawing commutative diagrams, I am sure learning how to use MetaFun/MetaPost better might help. Thanks for the fantastic work. Jethro > On 5 Aug 2022, at 3:27 PM, Hans Hagen via ntg-context > wrote: > > On 8/5/2022 5:12 PM, Jethro Djan via

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

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 textstyle

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

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

[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
ize 3, version 'Version 1.109' found, version 'Version 1.302' expected 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

Re: [NTG-context] upload

2022-05-09 Thread śrīrāma via ntg-context
nce I 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 =

Re: [NTG-context] upload

2022-05-09 Thread Mikael Sundqvist via ntg-context
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 \useb

Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
t; 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. > > > > ___

Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context
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 is of

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

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] 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 whi

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

2022-04-19 Thread Mikael Sundqvist via ntg-context
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 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] 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
precisely what 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, >>&g

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? > > >> > > >> Julian > > >> > > >> On 22/3/22 07:47, W

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
>> Willi, > >> > >> 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 not ty

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Adam Reviczky via ntg-context
7, 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 gr

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
2011 at https://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 calculati

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
hout 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. 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,

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

2022-03-20 Thread Willi Egger via ntg-context
d 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 pages

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

2022-03-19 Thread Otared Kavian via ntg-context
gt; 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
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
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 add

[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
ld up with some 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 so

Re: [NTG-context] new upload

2022-03-15 Thread śrīrāma via ntg-context
d up with some 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 no

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 u

[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. L

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

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

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