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

2021-07-14 Thread Gavin
Hello ConTeXters, I’d like to use the mp-geo Metapost package with ConTeXt to draw simple globes viewed from various directions. The package is here: https://melusine.eu.org/syracuse/poulecl/mp-geo/ It looks like the last update was 2008 and I don’t read French, so I though my chances

Re: [NTG-context] weekend upload

2021-07-12 Thread Hans Hagen
On 7/12/2021 5:31 AM, Aditya Mahajan wrote: On Sun, 11 Jul 2021, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example

Re: [NTG-context] weekend upload

2021-07-12 Thread Hans Hagen
On 7/12/2021 5:31 AM, Aditya Mahajan wrote: On Sun, 11 Jul 2021, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example

Re: [NTG-context] weekend upload

2021-07-11 Thread Aditya Mahajan
On Sun, 11 Jul 2021, Bruce Horrocks wrote: > > On 9 Jul 2021, at 17:29, Hans Hagen wrote: > > > > This weekend upload has something new for metapost animation lovers: > > Forgive my ignorance but what exactly am I supposed to be seeing here? I run > the example an

Re: [NTG-context] weekend upload

2021-07-11 Thread Hans Hagen
On 7/11/2021 3:04 PM, Bruce Horrocks wrote: On 9 Jul 2021, at 17:29, Hans Hagen wrote: This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example and get two rows of ten boxes. They don&#

Re: [NTG-context] weekend upload

2021-07-11 Thread Bruce Horrocks
> On 9 Jul 2021, at 17:29, Hans Hagen wrote: > > This weekend upload has something new for metapost animation lovers: Forgive my ignorance but what exactly am I supposed to be seeing here? I run the example and get two rows of ten boxes. They don't move so it's not like a

Re: [NTG-context] weekend upload

2021-07-10 Thread Hans Hagen
On 7/9/2021 11:33 PM, Aditya Mahajan wrote: On Fri, 9 Jul 2021, Hans Hagen wrote: Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ;

Re: [NTG-context] weekend upload

2021-07-09 Thread Hans Hagen
On 7/9/2021 11:33 PM, Aditya Mahajan wrote: On Fri, 9 Jul 2021, Hans Hagen wrote: Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ;

Re: [NTG-context] weekend upload

2021-07-09 Thread Aditya Mahajan
On Fri, 9 Jul 2021, Hans Hagen wrote: > Hi, > > This weekend upload has something new for metapost animation lovers: > > \starttext > > \startuseMPgraphic{demo} > stacking := 6; > fill fullcircle scaled 10cm > withcolor "red" ; &g

[NTG-context] weekend upload

2021-07-09 Thread Hans Hagen
Hi, This weekend upload has something new for metapost animation lovers: \starttext \startuseMPgraphic{demo} stacking := 6; fill fullcircle scaled 10cm withcolor "red" ; % stacking := 3; stacking := 9; fill fullcircle scaled 10cm shifted (3cm,0)

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Alan Braslau
cifications even use "." to delimit file system hierarchy (similarly like / and \). Lua also uses this in table specifications, as does MetaPost for token separation, not mentioning structures in C (and C++). The bottom line is that using "." in a filename is best to be avoided,

[NTG-context] new lmtx upload

2021-07-06 Thread Hans Hagen
i*cm,-7cm) withcolor "darkgray" ; endfor ; tracingall ; draw textext(getrecord FooD.list[2]) shifted (5cm,-8cm) withcolor "darkmagenta" ; \stopMPcode \startluacode inspect(metapost.getrecord("FooA")) inspect(metapost.getrecord("FooB"))

Re: [NTG-context] Call for papers: CG journal 2020

2021-06-30 Thread Henning Hraban Ramm
ing new features and solutions since then. > > So far, I/we got only one(!) article, by Taco on MetaPost. > > > Please don’t let me/us down and hand in your articles until end of July (but > ASAP)! > > @Harald: Please send the latest version of your German report, too

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-25 Thread Jeong Dal
Dear Aditya, > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.io/context-blog/post/metapost-animation/ > > I haven't used it much because I am mostly on linux, and its is a PITA to get > an older version of Adobe Re

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-24 Thread Hans Hagen
, it seems to me that \startanimation … \stopanimation is not working with \dorecurse{}{} … It just list all the graphics. Any hint is welcome. A while back, I wrote some code to easily generate metapost animations. https://adityam.github.io/context-blog/post/metapost-animation/ I haven't

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
it > > seems to me that \startanimation … \stopanimation is not working with > > \dorecurse{}{} … > > It just list all the graphics. > > Any hint is welcome. > > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.io/

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
working with > \dorecurse{}{} … > It just list all the graphics. > Any hint is welcome. A while back, I wrote some code to easily generate metapost animations. https://adityam.github.io/context-blog/post/metapost-animation/ I haven't used it much because I am mostly on linux, and its

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Wolfgang Schuster
Otared Kavian schrieb am 22.06.2021 um 15:49: Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). You have

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Otared Kavian
Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). Regarding the way Aditya uses \startuseMPgraphic, it is

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
is > in the MetaPost manual. > > Just to make sure whether I am beginning to understand, in your example code > > > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90)); > > should the second « whatever » be > > z0 + whatever*dir(angle(z2 - z1) + 90)) ; > > or

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Mikael, Thank you so much for the explanation: I am ashamed for not having read this in the MetaPost manual. Just to make sure whether I am beginning to understand, in your example code > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90)); should the second « whatever » be

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
Hi, As is written in the MetaPost manual: Whatever generates a new anonymous variable each time it is used. It is very useful in cases where you are not interested in the value of a variable, but want to use it to (let MP) calculate something. Example you have three points z0, z1, z2 forming a

[NTG-context] Call for papers: CG journal 2020

2021-06-11 Thread Henning Hraban Ramm
a lot of interesting new features and solutions since then. So far, I/we got only one(!) article, by Taco on MetaPost. Please don’t let me/us down and hand in your articles until end of July (but ASAP)! @Harald: Please send the latest version of your German report, too! I’ll translate it into

Re: [NTG-context] frameoffset in textbackground?

2021-06-08 Thread Wolfgang Schuster
, whatever frameoffset= is set to. The textbackground mechanism uses MetaPost to draw the background, lines etc. Not all options are available for each background, e.g. frameoffset works by default only for side lines. Wolfgang

[NTG-context] new upload

2021-05-31 Thread Hans Hagen
\ end. The performance is comparable to the regular positioning mechanisms but especially at the \METAPOST\ end has less overhead. - Here are some examples: - \framed [synchronize=yes,align=normal] {% test test test 1 \sync{one}{1}test

Re: [NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Jairo A. del Rio
olleagues, > > I’m writing a physics textbook with lots of figures, some quite complex. > I’ve been using TikZ, but I’m experimenting with MetaPost. Consulting the > ConTeXt wiki, I found that \startstaticMPfigure and friends are designed > exactly for this sort of use. However, I

[NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Gavin
Hello colleagues, I’m writing a physics textbook with lots of figures, some quite complex. I’ve been using TikZ, but I’m experimenting with MetaPost. Consulting the ConTeXt wiki, I found that \startstaticMPfigure and friends are designed exactly for this sort of use. However, I’m not seeing

Re: [NTG-context] How to write readable source files?

2021-05-30 Thread Nicola
nce, for MetaFun I currently have `mpDef` (MetaPost def macro), `mpVardef` (MetaPost vardef), `mpPrimaryDef`, `mpSecondaryDef`, `mpTertiaryDef`, `mpCommand`, `mpConstant`, `mpVariable`, `mpType`, `mpNewInternal`, and a few others. An excerpt from the current syntax file looks like this: ...

Re: [NTG-context] How to write readable source files?

2021-05-29 Thread Hans Hagen
.. we probably first have to check if we need to add some to the xml definitions (btw, the lmt metapost commands i.e. the key/value macros fit in well in the optional argument appeoach, the more low level ones more resemble the low level context commands for which we have specific definitions)

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-21 Thread Jeroen
I have updated LMTX and indeed seems to be working now Thanks Op do 20 mei 2021 om 21:05 schreef Aditya Mahajan : > On Thu, 20 May 2021, Jeroen wrote: > > > I have the following working example with hatching. This works fine, but > > when I uncomment the sketching commands, no figure is rendered

Re: [NTG-context] mathfun

2021-05-21 Thread Hans Hagen
library that is in lmtx, while ecimal uses the xdecimal library for decimal precision(as in metapost decimal mode) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] [metafun example does not compile]

2021-05-21 Thread Taco Hoekwater
6 > mtx-context | main context file: > /home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl > mtx-context | current version: 2021.05.20 16:06 > > > it will produce an error (and an empty page) > > > metapost> initializing instance

[NTG-context] [metafun example does not compile]

2021-05-21 Thread Floris van Manen
/base/mkiv/context.mkiv mtx-context | current version: 2021.05.20 16:06 mtx-context | main context file: /home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.05.20 16:06 it will produce an error (and an empty page) metapost

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
. Aditya hatch.pdf Description: Adobe PDF document hatch.tex Description: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\curren

[NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Jeroen
I have the following working example with hatching. This works fine, but when I uncomment the sketching commands, no figure is rendered. Is the mp-sketch macro still working? \starttext \startMPcode input hatching; %input mp-sketch; %sketchypaths; %sketch_amount := 2bp; u := 1cm; path c

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Hans Hagen
ail-archive.com/ntg-context@ntg.nl/msg92800.html> and https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html <https://mailman.ntg.nl/pipermail/ntg-context/2020/098136.html>) or svg or metapost as I do not need it in colour. I spend quite a bit of time looking into this (it's al

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-14 Thread Adam Reviczky
svg or metapost as I do not need it in colour. I thought it would be easier via fonts but backtracking on the idea now and maybe using something like this instead: https://thenounproject.com/term/handshake/153516/. Thank you, Adam On Fri, May 14, 2021 at 4:33 PM Hans Hagen wrote: > On 5

Re: [NTG-context] Fuzzy lines

2021-05-14 Thread Hans Hagen
hought it might like this: A slightly different approach is needed. See attached. I also added a bit a error protection in case someone sets sketch_passes to be negative by mistake. It may be interesting to rewrite these macros using the new key-value interface for metapost, so that something like t

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
mize each segment. Aditya%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright={Aditya Mahajan}] %D This metapost modu

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Henning Hraban Ramm
> > A slightly different approach is needed. See attached. I also added a bit a > error protection in case someone sets sketch_passes to be negative by > mistake. Thank you so much! > It may be interesting to rewrite these macros using the new key-value > interface for meta

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
d open for path additions like "withcolor". > > But it also doesn’t work in "do_sketchdraw"; I thought it might like this: A slightly different approach is needed. See attached. I also added a bit a error protection in case someone sets sketch_passes to be negative by m

[NTG-context] Fwd: Fuzzy lines

2021-05-12 Thread Jairo A. del Rio
gt; thank you for the suggestion. > > > Am 11.05.2021 um 14:56 schrieb Jairo A. del Rio >: > > > > For simple pens, you may define your own (section 9.7 of MetaPost > manual). > > Unfortunately, pens don’t work as patterns but only as outlines. > > > For com

Re: [NTG-context] Fuzzy lines

2021-05-12 Thread Henning Hraban Ramm
dded some more to add fuzzyness. Also they get drawn several times with transparency to get a irregular width and some blur. I’m quite sure this could be added to your macro, but I’m still too inexperienced with Metapost. Hraban

Re: [NTG-context] Fuzzy lines

2021-05-12 Thread Henning Hraban Ramm
Hi Jairo, thank you for the suggestion. > Am 11.05.2021 um 14:56 schrieb Jairo A. del Rio : > > For simple pens, you may define your own (section 9.7 of MetaPost manual). Unfortunately, pens don’t work as patterns but only as outlines. > For complicated strokes, something along

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Aditya Mahajan
On Tue, 11 May 2021, Jairo A. del Rio wrote: > For simple pens, you may define your own (section 9.7 of MetaPost manual). > For complicated strokes, something along these lines could be useful as a > starting point (I'm not taking cyclic paths in consideration, btw). I did >

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
n" in MetaPost? With transparency? The MF manual says in 1.11, pens are limited, but not how. Or are properties (MF manual 8.10) the way to go? Hraban > Am 11.05.2021 um 13:30 schrieb Mikael Sundqvist : > > Not really what you ask for, perhaps, but this could be interesti

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Jairo A. del Rio
For simple pens, you may define your own (section 9.7 of MetaPost manual). For complicated strokes, something along these lines could be useful as a starting point (I'm not taking cyclic paths in consideration, btw). I did something similar with duck footprints some weeks ago: %Sorry for the

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Mikael Sundqvist
Hi! Not really what you ask for, perhaps, but this could be interesting for you: https://tex.stackexchange.com/q/39296/52406 /Mikael On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm wrote: > > Hi MetaFans, > > is it possible to get lines with Metapost that look like they wer

[NTG-context] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
Hi MetaFans, is it possible to get lines with Metapost that look like they were drawn with a pencil or brush? Some vector graphics apps (in my case: Affinity Designer) can use such naturally looking brushes for vector graphics (and I don’t know how they do it), but I’d like to automate

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-10 Thread luigi scarso
On Sun, May 9, 2021 at 11:25 PM Adam Reviczky wrote: > Hi, > > Looks like it is a problem with "StartPage" and "StopPage" in metapost. > > I get the same error with any MP graphic using those commands. > > More minimal example (witho

Re: [NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
Hi, Looks like it is a problem with "StartPage" and "StopPage" in metapost. I get the same error with any MP graphic using those commands. More minimal example (without simpleslides) as per the wiki: https://wiki.contextgarden.net/Cover_Pages colors > 'r

[NTG-context] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
e/texmf/tex/context/third/simpleslides/s-simpleslides-Boxed.tex' close source> level 3, order 8, name '/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.mkiv' fonts > bodyfont '24.0414pt' is defined (can better be done global) metapost

[NTG-context] A Bug in lmt_shade

2021-05-06 Thread Keith McKay
ot;MyColor3" }, ] ; StopPage; \stopMPpage \stoptext %%% %%% Console Output %%% system > system > ConTeXt ver: 2021.05.05 19:29 LMTX fmt: 2021.5.6 int: english/english system > < snip > metapost > initializing instance 'metafu

[NTG-context] LuaMetaFun MPinclusions doublefun

2021-05-02 Thread Fabrice L
= "\dorecurse{9}{· Just random text }", path = p xsized TextWidth, autoscaleup = "max", reverse=true, ] xsized 5in; \stopMPpage % ——— Log says: metafun > log > error: Isolated expression metafun > log > metapost

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
TTFONTS = ".;$TEXMF/fonts/{data,truetype}//;$OSFONTDIR", OPENTYPEFONTS = ".;$TEXMF/fonts/{data,opentype}//;$OSFONTDIR", CMAPFONTS = ".;$TEXMF/fonts/cmap//", FONTFEATURES= ".;$TEXMF/fonts/{data,fea}//;$OPENTY

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread Otared Kavian
>>> I made an experiment to add alternatives to sidebars (see attachment). >>> >>> I discovered the sidebar is drawn by anch_sidebars_draw in >>> metapost/context/base/mpiv/mp-apos.mpiv. >>> >>> I've redefined it locally to add altern

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread mf
Il 28/04/21 17:53, Hans Hagen ha scritto: On 4/28/2021 5:27 PM, mf wrote: Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally t

Re: [NTG-context] custom zig zag sidebars

2021-04-28 Thread Hans Hagen
On 4/28/2021 5:27 PM, mf wrote: Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally to add alternatives. To make fancy, zig zag b

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally to add alternatives. To make fancy, zig zag bars I defined a macro, draw_patter

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [NTG-context] How to write readable source files?

2021-04-25 Thread juh
Hi Nicola, Am Sat, Apr 24, 2021 at 07:25:27PM - schrieb Nicola: > I maintain the ConTeXt plugin for Vim. Currently, there are no > indentation rules (except for embedded MetaPost code), and that is > intentional: as the examples above show, there is no commonly accepted > inden

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Nicola
a some tool. The usual functions in Vim and Emacs never results > in > a style like this. I maintain the ConTeXt plugin for Vim. Currently, there are no indentation rules (except for embedded MetaPost code), and that is intentional: as the examples above show, there is no commonly accepted in

Re: [NTG-context] files not readable

2021-04-10 Thread Hans Hagen
context/sources/cont-loc.mkxl' system > 'cont-exp.mkxl' loaded open source > level 1, order 3, name 'c:/data/develop/context/sources/cont-exp.mkxl' system > beware: running in overload mode 4 system > beware: \forcecolorhacks

[NTG-context] new upload

2021-04-09 Thread Hans Hagen
nt to keep an eye on that but they are definitely slower.) If this experiment works out ok I might also investigate it for other platforms. The gain is mostly in the lua department, less in metapost and tex but still a valid reason to use my laptop for another few years. (It is anyway cheape

Re: [NTG-context] Parenthesis error in metapost

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

[NTG-context] Parenthesis error in metapost

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

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
;y="-2.3">style="-inkscape-font-specification:'Roboto, Ultra-Light';font-family:Roboto;font-size:20px;font-weight:200">Roboto Ultra-Light \stopbuffer \starttext   \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: "Roboto U

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
2000/svg"; viewBox="0 0 154.6 19.3" width="155" height="19">Roboto Ultra-Light \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: "Roboto Ultra-Light" appears in Roboto Ultra-Light font. Actual

[NTG-context] Luatex 1.13.1 announcement.

2021-04-02 Thread luigi scarso
== LuaTeX 1.13.1 2021-04-02 == Fixed an unwanted space in btex etex in metapost, introduced after a patch for troff. -- luigi

Re: [NTG-context] working on page refs with MP

2021-03-19 Thread Werner Hennrich
afun > log > error: Improper subscript has been replaced by zero metapost    > log > <*> ... numeric numFirst; numFirst := \ref [page] watch closely to the previous log line ... you're missing quotes so mp sees \ref [page] and as it ignores a \ it sees ref[page] which unle

Re: [NTG-context] working on page refs with MP

2021-03-18 Thread Hans Hagen
On 3/18/2021 6:14 PM, Werner Hennrich wrote: metafun > log > metafun > log > error: Improper subscript has been replaced by zero metapost    > log > <*> ... numeric numFirst; numFirst := \ref [page] watch closely to the previous log line ... you'

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
yHeader[ref=a,next=b]{ AaAaAaAa} \fillWithText[10] \myHeader[ref=b,next=c]{ BbBbBbBbBb} \fillWithText[3] \myHeader[ref=c,next=d]{ c CcCcCcCc} \fillWithText[8] \myHeader[ref=c,next=last]{ d DdDdDdDdDd} \fillWithText[8] \pagebreak[yes] \page

[NTG-context] Bug in lmt_shade[...=...,...=...]

2021-03-16 Thread Keith McKay
", "MyColor3" }, ] ; StopPage; \stopMPpage \stoptext %%%Error Log%%% system > system > ConTeXt ver: 2021.03.13 11:22 LMTX fmt: 2021.3.16 int: english/english system > system > 'cont-new.mkxl' loaded metapost > initializing instance '

Re: [NTG-context] lmt_outline

2021-03-11 Thread Mohammad Hossein Bateni
ein Bateni wrote: > > > Hello, > > > > Hans said he's in the metapost mode now :) > > > > I have used lmt_outline in the following example and it is really an > > improvement over the previous outline "effect" because one can set the >

Re: [NTG-context] lmt_outline

2021-03-10 Thread Aditya Mahajan
On Wed, 10 Mar 2021, Mohammad Hossein Bateni wrote: > Hello, > > Hans said he's in the metapost mode now :) > > I have used lmt_outline in the following example and it is really an > improvement over the previous outline "effect" because one can set the >

[NTG-context] lmt_outline

2021-03-10 Thread Mohammad Hossein Bateni
Hello, Hans said he's in the metapost mode now :) I have used lmt_outline in the following example and it is really an improvement over the previous outline "effect" because one can set the fillcolor and drawcolor separately. (that was not possible before, right?) \startte

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Thangalin
Thanks, Hans. The image is now rendered. Here's a picture of the output from ConTeXt (left) and the expected output using Apache Batik: https://i.ibb.co/zPqfhjK/metapost-svg.png Would a copy of the SVG file be useful for unit testing? Thanks again. > I probably need to add that wrap

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
ersion=mp]} \placefigure{}{\externalfigure[diagram.svg][conversion=mp]} \stoptext % EOF All the images appear as expected. Any idea why using XML setups appears to affect the behaviour of rendering SVG documents using MetaPost? Thank you! _

Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread Hans Hagen
\startshapedparagraph[list=circle,mp=circle,repeat=yes,method=cycle]% list=... refers to a previous \startparagraphshape definition, so mp=... tells ConTeXt that the definition is derived from MetaPost code instead. You can go completely crazy with this: \setupbodyfont[pagella,10pt] \showframe

Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread Hans Hagen
\startshapedparagraph[list=circle,mp=circle,repeat=yes,method=cycle]% list=... refers to a previous \startparagraphshape definition, so mp=... tells ConTeXt that the definition is derived from MetaPost code instead. you're right, the list= can be removed (you can do that and see that it still works)

Re: [NTG-context] lmtx update / teaser

2021-03-02 Thread mf
,repeat=yes,method=cycle]% list=... refers to a previous \startparagraphshape definition, so mp=... tells ConTeXt that the definition is derived from MetaPost code instead. Just mp=... could be enough, but maybe "list=xyz,mp=xyz" makes it clear that mp is used to get a parshape fro

Re: [NTG-context] Genealogy and context

2021-03-01 Thread Henning Hraban Ramm
lso using Gramps (for my personal family tree and for research for a historical novel), and I always wondered if it wouldn’t be possible to create nicer family trees and other charts using ConTeXt/MetaPost. But I still can’t handle XML in ConTeXt nor MetaPost myself. I’d suggest to first creat

[NTG-context] Possible problem with context using the ARM 64bit download for Apple Silicon M1

2021-02-23 Thread Keith McKay
4" }, ] ; StopPage; \stopMPpage \stoptext Here is the error taken from the log system > system > ConTeXt ver: 2021.02.20 16:50 LMTX fmt: 2021.2.21 int: english/english system > system > 'cont-new.mkxl' loaded metapost > initializing number

Re: [NTG-context] metafun

2021-02-20 Thread Otared Kavian
ably not that much. For > 448 pages (some 20 more than we had before) we now need 16.5 seconds and 15.7 > when we use the compact font mode. So we're halfway between luatex and > luajittex now. More than 3 seconds of the runtime is for metapost. (I use the > machine as before.)

[NTG-context] metafun

2021-02-20 Thread Hans Hagen
need 16.5 seconds and 15.7 when we use the compact font mode. So we're halfway between luatex and luajittex now. More than 3 seconds of the runtime is for metapost. (I use the machine as before.) Hans PS. If all the stories are true is should be 1 second on a modern apple at which point

[NTG-context] new upload

2021-02-12 Thread Hans Hagen
update to lmtx, but it's used to identify 'todo's. We're talking tex as well as metapost here. In the process some orphan (mkii) stuff has been removed and a few small fixes applied (in code that probably no one ever encounters anyway). In lmtx I also updated the stixtwo fon

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Hans Hagen
Hi, Like this: metapost.registerscript("scrutenized", function() local p = mp.scan.path() local r = math.round local d = 10^mp.scan.numeric() for i=1,#p do local pi = p[i] pi[1] = r(pi[1] * d) / d pi[2] = r(pi[2] * d) / d end local x1 = r(p[1][1])

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Taco Hoekwater
eps to be just a ’small enough value that a human will not notice it’ where epsilon is intended as ’the smallest representable value’. Neither really work that way because depending on how you use metapost eps can be quite visible (especially in non-scaled number systems) and (more important

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Hans Hagen
On 2/12/2021 9:35 AM, Taco Hoekwater wrote: Hi, On 11 Feb 2021, at 17:41, Mikael Sundqvist wrote: Thanks for your investigation and extended example! So, if I understand it correctly, the problem occurs where the different circles are glued together with the .. construction. Took me a whil

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Mikael Sundqvist
Hi Taco, thanks, from your observation and the way I build the paths, I found out that I can avoid the problem by shortening the paths I join just slightly: cl := (fullcircle scaled 4u) shifted z0; cl := cl cutbefore point (1/6+epsilon) along cl cutafter point (2/6-epsilon) along cl; cs := (fullc

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-12 Thread Taco Hoekwater
Hi, > On 11 Feb 2021, at 17:41, Mikael Sundqvist wrote: > > Thanks for your investigation and extended example! > > So, if I understand it correctly, the problem occurs where the > different circles are glued together with the .. construction. Took me a while to get it, but the problem is the

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-11 Thread Mikael Sundqvist
, 2021 at 3:54 PM Hans Hagen wrote: > > On 2/11/2021 2:45 PM, Mikael Sundqvist wrote: > > Hi, > > > > since I already started this thread, I continue here. My metapost code > > is still not always working, and I do not understand what is going > > wrong. In the

Re: [NTG-context] Metapost: directionpoint gives unexpected point(?)

2021-02-11 Thread Hans Hagen
On 2/11/2021 2:45 PM, Mikael Sundqvist wrote: Hi, since I already started this thread, I continue here. My metapost code is still not always working, and I do not understand what is going wrong. In the example below, I draw two curves of constant width (p1 and p2), one rotated 180 degrees

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