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

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

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 alternative

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

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 bars I

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

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

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

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 > > eno clue

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

2021-04-26 Thread Hans Hagen
lso 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 it immune from clashes in used variable

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' metafun code (and mpiv meta

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

2021-04-26 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

[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' metapost > initializing number mode 'scaled' metapo

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
> beware: running in overload mode 4 system > beware: \forcecolorhacks is disabled system > beware: using metapost fasttrack mode close source> level 1, order 3, name 'c:/data/develop/context/sources/cont-exp.mkxl' system > files > jobname

[NTG-context] new upload

2021-04-09 Thread Hans Hagen
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 cheaper

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 'metafun.mpxl

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

2021-04-03 Thread Hans Hagen
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 Ultra-Light" app

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

2021-04-03 Thread Thangalin
quot;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: Empty square. Sup

[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
   > 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 unless you defined

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're mi

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
a 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] \pagereference[last] This is the

[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 'metafun:1'

Re: [NTG-context] lmt_outline

2021-03-11 Thread 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 > > fillcolo

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 > fil

[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?) \starttext \d

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
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) Just

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 mode 'scal

Re: [NTG-context] metafun

2021-02-20 Thread Otared Kavian
uch. 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.) > > Hans >

[NTG-context] metafun

2021-02-20 Thread Hans Hagen
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 differences

[NTG-context] new upload

2021-02-12 Thread Hans Hagen
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 fonts (new names again) and added

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
or 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 im

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

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 :=

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

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

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

2021-02-11 Thread Mikael Sundqvist
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 around the origin. Then I draw the curve (p3

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

2021-02-05 Thread Mikael Sundqvist
Hi, I was too quick to push send. This must be some rounding error. Changing the instance fixes the problem. Sorry for the noise. /Mikael On Fri, Feb 5, 2021 at 5:48 PM Mikael Sundqvist wrote: > > Hi, > > I get sometimes the wrong directionpoint. In the example below it > works for all values

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

2021-02-05 Thread Mikael Sundqvist
Hi, I get sometimes the wrong directionpoint. In the example below it works for all values of direx except between 0 and 90. If I put direx to something in this interval, it seems that the point between cs and cl are chosen. Is there a better way to construct the paths not to get this problem?

Re: [NTG-context] midi

2021-02-04 Thread Mojca Miklavec
he keys that have been litten up.) I'm not saying that ConTeXt wouldn't be helpful in the process, but you would then ideally need some new backends for producing movies: video & audio output ;) I could surely use a metapost-drawn image of the instrument and fill the keys that need to be pr

Re: [NTG-context] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Stefan Nedeljkovic
Thank you very much Garulfo! On Fri, Jan 29, 2021 at 9:34 AM Garulfo wrote: > The dlft version doesn't seem to work on the wiki. > > A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft > > > > > Le 29/01/2021 à 09:01, Garulfo a écrit : > > To align with the baseline : > > >

Re: [NTG-context] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Taco Hoekwater
> On 29 Jan 2021, at 09:33, Garulfo wrote: > > The dlft version doesn't seem to work on the wiki. > > A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft Version issue? The wiki is still running a context from june last year. > > > > > Le 29/01/2021 à 09:01, Garulfo a

Re: [NTG-context] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Garulfo
The dlft version doesn't seem to work on the wiki. A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft Le 29/01/2021 à 09:01, Garulfo a écrit : To align with the baseline : thetextext.drt("Hello, World!", (1cm, 5cm)) ; Also existing : thetextext.d  (center)

[NTG-context] About baseline alignment in metapost

2021-01-29 Thread Garulfo
To align with the baseline : thetextext.drt("Hello, World!", (1cm, 5cm)) ; Also existing : thetextext.d (center) thetextext.dlft (left) ___ If your question is of interest to others as well, please add an

[NTG-context] About baseline alignment in metapost

2021-01-28 Thread Stefan Nedeljkovic
Dear list, Consider the following example: \definepapersize [custom] [width=20cm, height=15cm] \setuppapersize [custom] \setuplayout [ width=fit, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt, height=fit, header=0pt, footer=0pt,

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-28 Thread Hans Hagen
On 1/27/2021 3:08 PM, Rudd, Kevin wrote: thanks, Hans--- with the only change being the lmtx release, I get: in 2020.09.20: resolvers       > tex > 'file' closer: '/local/Software/lmtx/tex/texmf-context/metapost/context/base/mpiv/metafun.mpxl' closed metapost      

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Hans Hagen
usepath/usesubpath file so:     20200920: mtxrun --generate .. mtxrun --find boxrow.mp works; context works w/ or w/o putting the file in .../lmtx/tex/texmf-local/metapost     20210124: mtxrun --generate .. mtxrun --find boxrow.mp works; context  doesn't work w/ or w/o putting the file

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
--generate .. mtxrun --find boxrow.mp works; context works w/ or w/o putting the file in .../lmtx/tex/texmf-local/metapost 20210124: mtxrun --generate .. mtxrun --find boxrow.mp works; context doesn't work w/ or w/o putting the file in .../lmtx/tex/texmf-local/metapost ---K Kevin W. Rudd

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
rarchy}] \input ns_hierarchy \stopplacefigure and generate the error: metafun > log > error: Not implemented: (unknown numeric)=(string) metafun > log > metapost> log > metapost> log > metapost> log >

Re: [NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Hans Hagen
},                               reference={f:ns-hierarchy}]                 \input ns_hierarchy             \stopplacefigure and generate the error: metafun         > log > error: Not implemented: (unknown numeric)=(string) metafun         > log > metapost        > log > met

[NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

2021-01-26 Thread Rudd, Kevin
={f:ns-hierarchy}] \input ns_hierarchy \stopplacefigure and generate the error: metafun > log > error: Not implemented: (unknown numeric)=(string) metafun > log > metapost> log > metapost > log >

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
ps,figure] or some variant of that should also work. But the filter module does make it easier to store the results in another directory so that they are out of sight. > There’s just a problem with labels, I guess, if I go the filter-LaTeX or > filter-TeX route. So filter-ConTeXt might ma

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Henning Hraban Ramm
clude the same setup header every time, so the filter module is probably really the best way. There’s just a problem with labels, I guess, if I go the filter-LaTeX or filter-TeX route. So filter-ConTeXt might make sense. I think I understand now why integratin

[NTG-context] new font trickery

2021-01-24 Thread Hans Hagen
Hi Jairo, (to the list for those who want to play with it) In addition to the metapost fotn subsystem I also made a tex variant. That one is currently based on setups. So, we now can use mp as well as tex to make fonts. Of course this is mostly for special purposes and for fun but both

Re: [NTG-context] demo-symbols not working with LMTX

2021-01-19 Thread Hans Hagen
On 1/19/2021 12:18 PM, Jairo A. del Rio wrote: Hi, list. I was looking for information about fonts in ConTeXt defined using MetaPost and I found demo-symbols.tex for an Unicode (?) character. However, it doesn't work. While LMTX just doesn't print the symbol, MkIV complains from the Lua side

[NTG-context] demo-symbols not working with LMTX

2021-01-19 Thread Jairo A. del Rio
Hi, list. I was looking for information about fonts in ConTeXt defined using MetaPost and I found demo-symbols.tex for an Unicode (?) character. However, it doesn't work. While LMTX just doesn't print the symbol, MkIV complains from the Lua side. Has something changed? Jairo

[NTG-context] lmtx

2021-01-18 Thread Hans Hagen
also a typescript: type-imp-punk.mkxl one can create different versions and play with random variants and such. The question is: do we need more metapost font magic and infrastructure? For "pdf features that browsers implement fuzzy or not at all" lovers there is test \star

Re: [NTG-context] Getting dimensions in Lua

2021-01-18 Thread Jairo A. del Rio
Woah, nice! I was trying to pass some values to MetaPost via Lua (usual laziness to learn macro languages). Thank you a lot, especially because I was looking at the wrong functions in the token namespace. I'll upload a more specific example soon while I polish some code. Very thankful. Jairo

Re: [NTG-context] question about vardef variables

2021-01-18 Thread Taco Hoekwater
error message with a more > complex macro. It made me figure out where my problems came from. > > So here are my two questions: > - Why shouldn't we tell metafun if expr is a path, a pair or so on? You were (attempting to) redefine the macro’s arguments, but they are read-only.

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-11 Thread Ivan Pešić
send them to me. > Having a repository can be useful to keep a version that is always up to > date; but that, on the other hand, would force me to be continually > modifying the text, which in principle is not my intention. I do not > exclude that there will be other versions in the

Re: [NTG-context] LuaTeX and PDF.js

2021-01-07 Thread Vedran Miletić
Lua(Meta)TeX Team(s) (2005-2020+) The LuaMetaTeX project is related to ConTeXt development. This macro package tightly integrates TeX and MetaPost in close cooperation with Lua. $ luatex --version This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev) Execute  'luatex --credits'  for credits and vers

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Joaquín Ataz López
some chapter; mainly I think that the most important material that is missing is the one related to XML, Lua and Metapost, that is: the three additional languages in which a ConTeXt document can be written. But I am far from being able to write anything about any of those three aspects. Some

[NTG-context] MP reflectedabout broken?

2021-01-04 Thread Damien Thiriet
message metafun > log > I'm unable to apply a partially specified transformation except to a fully known pair or transform. Proceed, and I'll omit the transformation. metafun > log > error: Transform components aren't all known metafun > log > metapost

[NTG-context] Appearance of ticks and grids with ConTeXt metapost graph module

2021-01-04 Thread Jean-Philippe Rey
in red. The original metapost graph module doesn't apply drawing instructions to the label. That seems a better choice as you usually don't want to apply special effect on the labels. If you really want to draw the label with specific parameters you can write, for example, grid.bot(image(draw

Re: [NTG-context] Migrating from LaTeX (was: A not so short introduction to ConTeXt Mark IV)

2021-01-04 Thread Hans Hagen
mpany that then ditches it in favour of its own stuff). Unlearning probably also takes soem time and effort. And in context one also can be triggered into leanring metapost and lua so that adds to the burden (but also fun). With knowledge of TeX basics I did not mean a working knowledge

Re: [NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Jean-Philippe Rey
Le 3 janv. 2021 à 19:21, Hans Hagen <j.ha...@xs4all.nl> a écrit :On 1/3/2021 7:12 PM, Jean-Philippe Rey wrote:Dear List,I have used TikZ and pgfplots for a few years and I am considering switching to metapost/metafun which appears more efficient with LMTX. I have already designed several f

Re: [NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Hans Hagen
On 1/3/2021 7:12 PM, Jean-Philippe Rey wrote: Dear List, I have used TikZ and pgfplots for a few years and I am considering switching to metapost/metafun which appears more efficient with LMTX. I have already designed several figures with metapost/metafun and some with the help of metaobj

[NTG-context] metapost graph and ConTeXt LMTX

2021-01-03 Thread Jean-Philippe Rey
Dear List, I have used TikZ and pgfplots for a few years and I am considering switching to metapost/metafun which appears more efficient with LMTX. I have already designed several figures with metapost/metafun and some with the help of metaobj and I am fully satisfied with the result. I am

Re: [NTG-context] drop shadows with metapost/ metafun

2021-01-02 Thread Henning Hraban Ramm
> Am 29.12.2020 um 22:56 schrieb Garulfo : > > Which process would you advice to add « drop shadows » to any kind of metafun > / metapost figures like: > picture p; > p := textext("MetaPost is fun!") shifted (10cm,10cm); > > > My current understanding of

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
On Fri, 1 Jan 2021, Aditya Mahajan wrote: > On Tue, 29 Dec 2020, Garulfo wrote: > > > Which process would you advice to add « drop shadows » to any kind of > > metafun / metapost figures like: > > > Actually, all this seems long and tedious, and contrasts with the

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
On Tue, 29 Dec 2020, Garulfo wrote: > Which process would you advice to add « drop shadows » to any kind of metafun > / metapost figures like: > picture p; > p := textext("MetaPost is fun!") shifted (10cm,10cm); > > My current understanding of the requir

[NTG-context] drop shadows with metapost/ metafun

2020-12-29 Thread Garulfo
Which process would you advice to add « drop shadows » to any kind of metafun / metapost figures like: picture p; p := textext("MetaPost is fun!") shifted (10cm,10cm); My current understanding of the required steps : 1- fill p with the shadow color 2- write it to an external met

[NTG-context] Metafun: dotlabel issue in latest LMTX

2020-12-27 Thread Otared Kavian
excerpt metafun > log > error: Isolated expression metafun > log > metapost> log > metapost> log > metapost> log >; metapost> log > <*> newpath mydotlabelshape ; metafun > log > metaf

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-24 Thread Garulfo
rame=off,offset=3mm,align=middle,strut=none] {MetaPost\\is Fun !\\Aujourd'hui\\Today\\*§ 2020 §*}", ] xsized 12cm ; path bb ; bb := boundingbox tt; %-- path pp ; pp := bb enlarged 2cm ;

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Hans Hagen
r) - What would be the work to do in order to make this mechanism directly   usable in metapost / metafun, within \startMPpage \stopMPpage,   - to avoid switching between \start\stopMPdrawing and TeX   - to have something like "draw followtext" in mp-blob.mpiv ? Maybe pic

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
be the work to do in order to make this mechanism directly > usable in metapost / metafun, within \startMPpage \stopMPpage, > - to avoid switching between \start\stopMPdrawing and TeX >

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Garulfo
er to make this mechanism directly usable in metapost / metafun, within \startMPpage \stopMPpage, - to avoid switching between \start\stopMPdrawing and TeX - to have something like "draw followtext&q

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-21 Thread Taco Hoekwater
> On 21 Dec 2020, at 16:09, Garulfo wrote: > > Hi, > > > * I try to "remove the paths of text" from a metapost pictures to let > the background visible. > > * Using > https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725 > > *

[NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-21 Thread Garulfo
Hi, * I try to "remove the paths of text" from a metapost pictures to let the background visible. * Using https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725 * I was able to get the following with one glyph (MVE code below) https://wiki.contextgarden.net/i

[NTG-context] Problem with shading in Metafun (LMTX)

2020-12-20 Thread Jairo A. del Rio
quot;circular" withcolor (1,0,0,0) shadedinto "blue" ; \stopMPpage The log says: metafun > log > metafun > log > error: Unknown relation will be considered false metafun > log > metapost > log > metapost > log > metapost > log > : meta

[NTG-context] A link to an example of poster build with ConTeXt

2020-12-19 Thread Garulfo
Hi, it's really fun to play with ConTeXt and MetaPost / Metafun to build posters (color, fonts, alignment, scaling, randomized geometry). Thanks to the ConTeXt team to make it easy. PDF: https://salsa.debian.org/zleap-guest/libreplanet2021/-/raw/master/ConTeXt_version

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-18 Thread Hans Hagen
On 12/17/2020 3:03 PM, Neven Sajko wrote: Hello all, I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some MathJax snippets and the like.) I am using Aditya's LMTX package from AUR on Archlinux. I have some SVGs (generated by the Julia Gadfly package) that represent 2D plots

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
On Thu, 17 Dec 2020 at 15:27, Aditya Mahajan wrote: > OT but can Gadfly directly produce PDFs? [...] Yes it can. Going to try that route if this doesn't work out. > [..] Depending on how complicated plots you want to generate, you can also > use metapost graph module or pdfplot

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Aditya Mahajan
On Thu, 17 Dec 2020, Neven Sajko wrote: > Hello all, > > I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some > MathJax snippets and the like.) > > I am using Aditya's LMTX package from AUR on Archlinux. > > I have some SVGs (generated by

[NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
Hello all, I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some MathJax snippets and the like.) I am using Aditya's LMTX package from AUR on Archlinux. I have some SVGs (generated by the Julia Gadfly package) that represent 2D plots of some functions, and I would like to include

Re: [NTG-context] upload / metafun

2020-12-15 Thread Otared Kavian
o that will take a while (most tagging is done > but checking left over cases take time). > > So, I wondered if we can do something similar in metapost: flag macros and > variables in order to issue a warnings when a dangerous overload happens. > > The current lmtx has th

[NTG-context] RE : upload / metafun

2020-12-15 Thread Joseph
that will take a while (most tagging is done but checking left over cases take time). So, I wondered if we can do something similar in metapost: flag macros and variables in order to issue a warnings when a dangerous overload happens. The current lmtx has this as an experiment: primitives, permanent

[NTG-context] upload / metafun

2020-12-15 Thread Hans Hagen
can do something similar in metapost: flag macros and variables in order to issue a warnings when a dangerous overload happens. The current lmtx has this as an experiment: primitives, permanent, immutable and mutable (so far); you can look at the *.mpxl files to get an idea. If you say

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
into spaces (the alternative is to let the tab token flagged as spacer travel around which would permits round trip). Makes me wonder I should have that as option in luametatex (but as I'm now in metapost mode I delay that pondering.) Hans

Re: [NTG-context] Bugs using \startTEXpage ... \stopTEXpage, Metapost and text

2020-12-06 Thread Pablo Rodriguez
On 12/6/20 3:29 PM, Jairo A. del Rio wrote: > [...] > gives a normal output in MkIV, but buggy output in LMTX. It seems only > TeX commands in Metapost (textext, thetextext, etc.) are affected. Am I > missing something? Hi Jairo, the sample can be much simpler: \starttext

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