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

2020-12-06 Thread Jairo A. del Rio
ut in MkIV, but buggy output in LMTX. It seems only TeX commands in Metapost (textext, thetextext, etc.) are affected. Am I missing something? Thank you in advance. Regards, Jairo :) ___ If your question is of interest

[NTG-context] Uploaded LuaMetaTeX version

2020-12-04 Thread Rik Kabel
, Henning Hraban Ramm wrote: Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext \startplacefigure[location=here

Re: [NTG-context] LMTX ignores figure size

2020-12-04 Thread Hans Hagen
On 12/4/2020 11:19 AM, Henning Hraban Ramm wrote: Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext

[NTG-context] LMTX ignores figure size

2020-12-04 Thread Henning Hraban Ramm
Hi, with latest LMTX, the size (width) of external figures is ignored in floats, while it works outside of floats and with MkIV. It also works with metapost figures (e.g. dum library). \setupexternalfigure[location=default] \starttext \startplacefigure[location=here] \externalfigure[cow

Re: [NTG-context] Parallelizing typesetting of large documents with lots of cross-references

2020-12-03 Thread Hans Hagen
time assuming effecitne metapost code Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Stephen Gaito
document. > > hm, on my 2013 laptop the luametatex manual needs 10 sec (i have all > the fonts, so that includes a bunch) and a metafun manual should do > about 20 > > a test on am M1 mini needs half those times as reported yesterday > > i bet that on a modern deskt

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 2/2

2020-12-03 Thread Stephen Gaito
luametatex we have no c++ ... all is > just C.) > > > Finally, the computational complexity of my proof engine, will be > > comparable to MetaFun/MetaPost... which I suspect you would not > > consider implementing in pure Lua. Some things are faster in C. > > Hard

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 2/2

2020-12-02 Thread Hans Hagen
we have no c++ ... all is just C.) Finally, the computational complexity of my proof engine, will be comparable to MetaFun/MetaPost... which I suspect you would not consider implementing in pure Lua. Some things are faster in C. Hard to say ... I think that the parser / expansion machinery

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-02 Thread Hans Hagen
l should do about 20 a test on am M1 mini needs half those times as reported yesterday i bet that on a modern desktop the luatex manual will do < 5 sec In the case of the `luametafun` document, it is the MetaFun/MetaPost processing which, of course, is taking a long time (as it should, th

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 2/2

2020-12-02 Thread Stephen Gaito
rogramming approach), *and* (since I can not even hope to prove the compilers are *correct*), there must be many *different* compiler implementations (to show that the results are not artefacts of one particular implementation). Finally, the computational complexity of my proof engine, will b

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-02 Thread Stephen Gaito
backs essentially cut only 6-8 seconds out of 18 seconds, for the `luametatex` document, and 190 seconds, for the `luametafun` document. In the case of the `luametafun` document, it is the MetaFun/MetaPost processing which, of course, is taking a long time (as it should, the graphics comput

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-27 Thread Keith McKay
gt; > > > I have been using xpart and ypart to extract these values from pairs of > points in a path but I wasn't getting the correct result. I was expecting: > > > > pair (2cm, 11cm) to give xpart 2 and ypart 11 > > As explained by various people, Metapost does not have dim

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-27 Thread Taco Hoekwater
lained by various people, Metapost does not have dimensions. All lengths are implicit Postscript big points (72/inch). Variables like “cm” just add a multiplication factor to your expressions, at no point is a dimension stored inside Metapost. Your equation: a0 = (2cm,11cm) first ex

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and thus to get the values of xpart or ypart in cm I would have to use a correction factor. I had made the

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
e xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
the correct result. I was expecting: >>> >>> pair (2cm, 11cm) to give xpart 2 and ypart 11 >>> >>> However I was getting: >>> >>> pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 >>> >>> After much head scratching

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the un

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Bi

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
art 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and thus to get the values of xpart or ypart in cm I would have to

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
ypart 11 > > However I was getting: > > pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 > > After much head scratching and reading the MetaPost and MetaFun manuals, I > realised that the units of xpart or ypart are in Postcript points or Big > Points (bp), and 1 bp is 1

[NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
ead scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and thus to get the values of xpart or ypart in cm I would have to use a correction factor. I had made the assumpt

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
here: > https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt > To actually answer your question, if you actually want to load a Metapost > graphic externally generated, you should have something like: > > %nice.mp > %"begin ... endfig", as well as "end" are

Re: [NTG-context] embed metapost figure into document

2020-11-09 Thread Jairo A. del Rio
a Metapost graphic externally generated, you should have something like: %nice.mp %"begin ... endfig", as well as "end" are important beginfig (1); draw fullcircle scaled cm %withcolor black ; endfig; end so when you compile it via mpost nice.mp (obviously supposing you have Metapo

[NTG-context] embed metapost figure into document

2020-11-09 Thread Sylvain Hubert
Dear List, I'm trying to embed a metapost image into the document. According the MetaFun manual <http://www.pragma-ade.com/general/manuals/metafun-p.pdf>, "embedding such a graphic is done by: \externalfigure[graphic.123][width=4cm]", but the following example produc

[NTG-context] lmt_axis

2020-11-06 Thread thierry horsin
Any insight about this issue ? Many thanks. Thierry metapost log    > >> unknown path p metapost log    > >> 0 metapost log    > ! Equation cannot be performed (unknown path=numeric). metapost log    > metapost log    >    (path) meta

Re: [NTG-context] About filling paths, unfill, etc.

2020-11-03 Thread Jairo A. del Rio
t to know if nowadays (2020) Metafun is able to do an > > actual unfill, like above: > > > > > https://tex.stackexchange.com/questions/151068/how-can-i-fill-a-complex-path-with-metapost-metafun/218718#218718 > > > > Example of what I want to do: > > > > \sta

Re: [NTG-context] About filling paths, unfill, etc.

2020-11-03 Thread Hans Hagen
On 11/3/2020 12:59 PM, Jairo A. del Rio wrote: Hi everyone. I want to know if nowadays (2020) Metafun is able to do an actual unfill, like above: https://tex.stackexchange.com/questions/151068/how-can-i-fill-a-complex-path-with-metapost-metafun/218718#218718 Example of what I want to do

[NTG-context] About filling paths, unfill, etc.

2020-11-03 Thread Jairo A. del Rio
Hi everyone. I want to know if nowadays (2020) Metafun is able to do an actual unfill, like above: https://tex.stackexchange.com/questions/151068/how-can-i-fill-a-complex-path-with-metapost-metafun/218718#218718 Example of what I want to do: \startMPpage path A, B, C; A := unitcircle shifted

[NTG-context] [save] [setmatrix] [restore] and [latelua] messages on terminal

2020-10-30 Thread Aditya Mahajan
]... data = % mps graphic 1: end It seems like metapost to PDF code is being printed to the terminal (not sure about that). I also see messages like: [latelua

Re: [NTG-context] A Spanish introduction to ConTeXt Mark IV

2020-10-14 Thread Joaquín Ataz López
: Hi, Joaquín. I've just found your introduction yesterday and I have to say it is a pleasure to read it. I can help you with some areas you haven't discussed too much, e.g. Lua interfaces and Metapost (well, I'm not as skilled as Aditya or Hans in the latter), as I use it often. I'll send you

Re: [NTG-context] A Spanish introduction to ConTeXt Mark IV

2020-10-13 Thread Jairo A. del Rio
Hi, Joaquín. I've just found your introduction yesterday and I have to say it is a pleasure to read it. I can help you with some areas you haven't discussed too much, e.g. Lua interfaces and Metapost (well, I'm not as skilled as Aditya or Hans in the latter), as I use it often. I'll send you

Re: [NTG-context] library 'uni' is unknown

2020-10-01 Thread Jairo A. del Rio
not available for ConTeXt MkIV, but you could make it > work with a proper font set (e.g. Quivira) or better, ask Hans for it. > > Wrt ifsym itself, it is a LaTeX specific package and it won't work out of > the box, so you could 1) use a Unicode alternative instead or 2) adjust > Meta

Re: [NTG-context] library 'uni' is unknown

2020-10-01 Thread Jairo A. del Rio
) use a Unicode alternative instead or 2) adjust Metafont files so they could be compiled via Metapost. If you go for 2), the following would work as a poor's man solution for any symbol you need. \starttext \startuseMPgraphic{Flag} %From ifsym.gen draw (3pt,0pt)--(3pt,10pt); fill (3pt,10pt)--(0pt

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Geert Verhaag
error: ! Missing argument to mymacro. Isn't that weird? But perhaps it has to do with me not understanding argument passing properly within METAPOST macros! Can someone please explain why this 2 argument example doesn't work? (But maybe this isn't the proper list to ask questions like these. I

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Hans Hagen
o. Isn't that weird? But perhaps it has to do with me not understanding argument passing properly within METAPOST macros! Can someone please explain why this 2 argument example doesn't work? (But maybe this isn't the proper list to ask questions like these. If so, I'm sorry for bothering you!)

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-17 Thread Geert Verhaag
e not understanding argument passing properly within METAPOST macros! Can someone please explain why this 2 argument example doesn't work? (But maybe this isn't the proper list to ask questions like these. If so, I'm sorry for bothering you!) Regards, Gerard On 16-09-2020 16:32, Geert Ver

Re: [NTG-context] Documentation for the database module

2020-09-15 Thread DesdeChaves
Some time ago I wrote metapost code for make a periodic table. See: https://tex.stackexchange.com/questions/233417/periodic-table-with-electron-counts-in-shells/233644 Have a nice day Jorge <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail&g

[NTG-context] About Metapost and patterns, tessellations, fractals, etc.

2020-09-07 Thread Jairo A. del Rio
Hi, list! I have a problem with some graphics in Metapost. I've tried to replicate the Koch curve cited here using ConTeXt: https://en.wikipedia.org/wiki/L-system To my own amusement, the patterns seem to appear. However, when I try with a number from 6, ConTeXt stops doing anything or output

Re: [NTG-context] Import a metapost extension

2020-09-02 Thread Fabrice Couvreur
Hello, That's okay, I'll compile the files with mpost and do an image insert. Thanks for your help. Fabrice Le mar. 1 sept. 2020 à 19:32, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Taco Hoekwater schrieb am 01.09.2020 um 19:12: > > Hi, > > > On 1 Sep 2020, at 16:46, Hans

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 01.09.2020 um 19:12: Hi, On 1 Sep 2020, at 16:46, Hans Hagen wrote: On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. A logfile of a failed run would have

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Taco Hoekwater
Hi, > On 1 Sep 2020, at 16:46, Hans Hagen wrote: > > On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: >> Hi Taco, >> Thank you for your help. I specify that this extension works perfectly by >> compiling the following file. A logfile of a failed run would have been more helpful in trying to

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Hans Hagen
On 9/1/2020 3:04 PM, Fabrice Couvreur wrote: Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. input mp-scratch; Scratchversion:=3; beginfig(1);   draw Drapeau;   draw Repeter("4");   draw Avancer("100");   draw

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
tchversion:=3; > …. > > If that also doesn’t work, perhaps attach the log file / terminal output > to a new message. > > Best wishes, > Taco > > > On 1 Sep 2020, at 13:07, Fabrice Couvreur > wrote: > > > > Hello > > Is it possible to import

Re: [NTG-context] Import a metapost extension

2020-09-01 Thread Taco Hoekwater
ote: > > Hello > Is it possible to import a metapost extension into a file compiled with the > lmtx engine ? > I tried unsuccessfully with this example : > > begin test.tex > > \starttext > \startMPcode > input mp-scratch; > > Scratchversion:=3; >

[NTG-context] Import a metapost extension

2020-09-01 Thread Fabrice Couvreur
Hello Is it possible to import a metapost extension into a file compiled with the lmtx engine ? I tried unsuccessfully with this example : begin test.tex \starttext \startMPcode input mp-scratch; Scratchversion:=3; draw Drapeau; draw Repeter("4"); draw Avancer("50&q

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-16 Thread Keith McKay
Thanks Taco! I have been playing about with an example from this site https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html which was originally for a square and I obviously didn't get my angles right. Thanks for spotting it. I'm beginning to appreciate where the Fun in MetaFun

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-14 Thread Mojca Miklavec
;. What's missing is better integration though (to end up with almost as good integration as metapost/metafun offers), and 3D with javascript mousing support never worked either. Mojca ___ If your question is of

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Nice, I'm reading results right now. Thank you a lot, Hans. Jairo :) El dom., 9 de ago. de 2020 a la(s) 13:05, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/9/2020 8:03 PM, Jairo A. del Rio wrote: > > Oh, thank you a lot, Hans, that's a really cleaner way than mine. One > > more question, is

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Hans Hagen
On 8/9/2020 8:03 PM, Jairo A. del Rio wrote: Oh, thank you a lot, Hans, that's a really cleaner way than mine. One more question, is there something similar to EmWidth for \textwidth or \linewidth? Better, a better way to access TeX dimensions? Thank you again. When you grep for EmWidth ...

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
...@xs4all.nl) escribió: > On 8/9/2020 5:39 PM, Jairo A. del Rio wrote: > > Hi, list! I'm doing the following to scale squares and other stuff in > > MetaPost/MetaFun. Although the following kinda works (maybe I'm just > > lucky with this), I want to know how to do a better piece from

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Hans Hagen
On 8/9/2020 5:39 PM, Jairo A. del Rio wrote: Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua

[NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua and TeX to Metapost and better ways to do

[NTG-context] Is there a bug in lmt_shade[...=...,...=...]

2020-07-29 Thread Keith McKay
] ; StopPage; \stopMPpage \stoptext The console output gives this: system > system > ConTeXt ver: 2020.07.29 14:08 LMTX fmt: 2020.7.29 int: english/english system > metapost > log > metapost > log > loading metafun, including plain.mp version 1.004 for meta

Re: [NTG-context] upload

2020-07-28 Thread Fabrice Couvreur
s now made it in core. > Normally users will not notice this but who knows. > > There are already features in lmtx that are not (and are unlikely to be) > in mkiv (most significant in the metapost related part). When possible > new macros and additions to mechanism will be in

[NTG-context] upload

2020-07-27 Thread Hans Hagen
of the experimental low level code has now made it in core. Normally users will not notice this but who knows. There are already features in lmtx that are not (and are unlikely to be) in mkiv (most significant in the metapost related part). When possible new macros and additions to mechanism

Re: [NTG-context] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-07-20 Thread Jano Kula
everything related. Each meeting is source of inspiration for everybody, > from beginner to expert. Friendly company is always looking for meeting new > participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc. > > There is a special discount for those, who attend the meeting

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-20 Thread Hans Hagen
. Special cases are for instance metapost things, so we don't translate an instance name 'lessfun'. Again, it does no harm to have the entries but there is no such 'moinsfun' defined because this is a system key. A general rule can be: - things we do in styles that are very unlikely to be done

Re: [NTG-context] Broken PDF with latest MkIV

2020-07-12 Thread Alan Braslau
well in Preview.app and PDF Studio 2019, but Adobe (Reader DC and Acrobat Pro 9) can’t open the new PDF. I’ll try to cook up a MWE. Does anyone else experience problems with Adobe apps? Hraban Is this perhaps related to the thread: [NTG-context] Minimum METAPOST code produces problematic PDF

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-11 Thread Gerben Wierda
> On 9 Jul 2020, at 08:37, Aditya Mahajan wrote: > > On Wed, 8 Jul 2020, Gerben Wierda wrote: > >> I found out this in the PDF spec: >> >> The minimum page size should be 3 by 3 units in default user space; the >> maximum should be 14,400 by 14,400 units. > > So, does the following work: >

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Gerben Wierda
The minimum is a relative one: It is page 650 in the (normative) Annex C Implementation Limits for PDF readers and writers: Additionally, conforming writers should adhere to the following constraints, and conforming readers should accommodate PDF files that obey the constraints. The minimum

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Hans Hagen
On 7/9/2020 9:08 AM, Taco Hoekwater wrote: On 9 Jul 2020, at 08:32, Hans Hagen wrote: On 7/8/2020 8:14 PM, Gerben Wierda wrote: I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the I never noticed that ... what section/paragraph in the

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Aditya Mahajan
On Wed, 8 Jul 2020, Gerben Wierda wrote: I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. So, does the following work: \startMPpage[instance=doublefun, offset=2pt] draw (0,0)--(100,0)

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Hans Hagen
On 7/8/2020 8:14 PM, Gerben Wierda wrote: I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the I never noticed that ... what section/paragraph in the spec? maximum should be 14,400 by 14,400 units. So we should bump tex's maxima ...

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-08 Thread Gerben Wierda
I found out this in the PDF spec: The minimum page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. Apparently, Adobe InDesign demands that in a hard way. G > On 8 Jul 2020, at 01:08, Jairo A. del Rio wrote: > > Evince and Okular (Linux) open

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Jairo A. del Rio
Evince and Okular (Linux) open the PDF output without warnings nor issues. Jairo :) El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda ( gerben.wie...@rna.nl) escribió: > The following code: > > \startMPpage[instance=doublefun] > draw (0,0)--(100,0) dashed withdots; > \stopMPpage > >

[NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Gerben Wierda
The following code: \startMPpage[instance=doublefun] draw (0,0)--(100,0) dashed withdots; \stopMPpage When run through LuaMetaTeX produces a PDF about which Acrobat complains: The dimensions of this page are out-of-range. Page content might be truncated. and Adobe InDesign cannot

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
ame '/Users/janneman/context-osx-64/tex/texmf-context/tex/context/base/mkiv/meta-imp-dum.mkiv' metapost> library 'dum' is loaded metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as '/Users/janne

[NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
source > level 3, order 6, name '/Users/janneman/context-osx-64/tex/texmf-context/tex/context/base/mkiv/meta-imp-dum.mkiv' close source> level 3, order 6, name '/Users/janneman/context-osx-64/tex/texmf-context/tex/context/base/mkiv/meta-imp-dum.mkiv' metapost> library '

Re: [NTG-context] spacing before items

2020-06-24 Thread Hans Hagen
.. don't use tex; i admit that i never used word but then, i never had to make documents of that kind (just like i alway suse metapost and never used a drawing program as i never needed that kind of graphics) - in context you need to think rather minimalistic: most styles can actually be ra

[NTG-context] METAPOST's uniformdeviate is not truly random (seed)

2020-06-23 Thread Gerben Wierda
I’m trying to get a real random number in METAPOST MWE: \startMPpage[instance=doublefun] show uniformdeviate 60; \stopMPpage Every time I run this, it shows the same result. I tried playing around with the randomseed, but for instance when I do two runs shortly after each other they still

Re: [NTG-context] METAPOST's uniformdeviate is not truly random (seed)

2020-06-23 Thread Wolfgang Schuster
    Gerben Wierda schrieb am 23.06.2020 um 17:57: I’m trying to get a real random number in METAPOST MWE: \startMPpage[instance=doublefun] show uniformdeviate 60; \stopMPpage Every time I run this, it shows the same result. I tried playing around with the randomseed, but for instance when I

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
llowing working example below, I would like to replace >> >> MyPens[j] := pencircle scaled 2pt ; >> >> by something like >> >> MyPens[j] := pencircle scaled (2+j) pt ; > > MyPens[j] := pencircle scaled ((2+j)*pt); > > “pt” is just a multiplier vari

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Taco Hoekwater
ce > > MyPens[j] := pencircle scaled 2pt ; > > by something like > > MyPens[j] := pencircle scaled (2+j) pt ; MyPens[j] := pencircle scaled ((2+j)*pt); “pt” is just a multiplier variable in MetaPost. there is an implied multiplication operation, but that only work

Re: [NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Hans Hagen
On 6/20/2020 4:48 PM, Otared Kavian wrote: Hi all, I have a family of graphs to draw in Metapost and I would like to attribute a different color to each of them according to the value of a certain variable. Assuming that the path mygraph(j) depends on the variable j, which is computed within

[NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Otared Kavian
Hi all, I have a family of graphs to draw in Metapost and I would like to attribute a different color to each of them according to the value of a certain variable. Assuming that the path mygraph(j) depends on the variable j, which is computed within a lua code and passed to Metapost, I wonder

Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hi Marco, thank you! :-) Willi > On 16 Jun 2020, at 14:44, Marco Patzer wrote: > > On Tue, 16 Jun 2020 14:37:17 +0200 > Marco Patzer wrote: > >> On Tue, 16 Jun 2020 14:17:09 +0200 >> Willi Egger wrote: >> >>> I try to use a Metapost drawing as

Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:37:17 +0200 Marco Patzer wrote: > On Tue, 16 Jun 2020 14:17:09 +0200 > Willi Egger wrote: > > > I try to use a Metapost drawing as a background to a framed text. — > > I can not make it working though… > > > > \startuniqueMPgraphic{Marki

Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:17:09 +0200 Willi Egger wrote: > I try to use a Metapost drawing as a background to a framed text. — I > can not make it working though… > > \startuniqueMPgraphic{Markings} > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm &

[NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hello listmembers, I try to use a Metapost drawing as a background to a framed text. — I can not make it working though… \startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm withcolor blue; \stopuniqueMPgraphic \defineoverlay[Marks

[NTG-context] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-06-02 Thread Jano Kula
development of LuaMetaTeX, ConTeXt, and everything related. Each meeting is source of inspiration for everybody, from beginner to expert. Friendly company is always looking for meeting new participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc. There is a special discount for those, who attend

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

2020-05-29 Thread Hans Hagen
. The production projects run on some oldish 2019 MkIVs anyway. I'm trying to get my feet wet with lmtx and run it on some projects to check how usable and compatible it is. It should be compatible, although at some point there will be functionality that is only in lmtx. Okay, metapost is an exception, because

Re: [NTG-context] 'debug' version of METAPOST draw?

2020-05-28 Thread Keith McKay
Would Chapter 11, section 11.1 Showing Paths of the MetaPost manual, be any help here? Below is a MWE of a random path of curves and straight lines. The points are shown using drawpoints. The arrow path and control lines are also shown and are better described in the Metapost manual

[NTG-context] 'debug' version of METAPOST draw?

2020-05-28 Thread Gerben Wierda
I would like to be able (during development) to draw paths where the points of the path (and maybe thing slike directions) are visualised. E.g. a path where each pair in teh path is also drawn as a dot and maybe teh directions drawn as small arrows. Does someone have such a beast lying around?

Re: [NTG-context] [pretty printing python]

2020-05-24 Thread Henning Hraban Ramm
> Am 24.05.2020 um 14:04 schrieb Floris van Manen : > > Does anyone know how to activate/use the pretty printing of python code? > > \starttyping[option=python] > > does not work. No, ConTeXt supports only TeX, XML, MetaPost and Lua. Try Aditya’s vim module: https

Re: [NTG-context] ntg-context Digest, Vol 191, Issue 66

2020-05-20 Thread jk...@inradius.net
> Message: 5 > Date: Wed, 20 May 2020 15:38:23 -0400 (EDT) > From: Aditya Mahajan mailto:adit...@umich.edu>> > Subject: Re: [NTG-context] metapost boxes error > > On Wed, 20 May 2020, jk...@inradius.net <mailto:jk...@inradius.net> wrote: > >> Is the

Re: [NTG-context] metapost boxes error

2020-05-20 Thread Aditya Mahajan
On Wed, 20 May 2020, jk...@inradius.net wrote: Is there a different approach to use boxes.mp? MNWE: \startMPpage input boxes.mp; boxit.bl("left"); boxit.br("right"); br.sw - bl.ne = (20,0); drawboxed(bl,br); \stopMPpage Move `input boxes` outside the `\startMPpage`.

[NTG-context] metapost boxes error

2020-05-20 Thread jk...@inradius.net
int: english/english metapost log> loading metafun, including plain.mp version 1.004 for metafun iv and xl metapost log> metapost log> >> _dojoin metapost log> ! Isolated expression. __

[NTG-context] Looking for a way to use lua to output console/debug messages from MetaPost instead of 'show'

2020-05-18 Thread Gerben Wierda
I often need some debugging info to find out what is going on in my METAPOST code (as I often do not have exact knowledge of what some things do). MetaPost’s ‘show’ command has limited formatting functionality (e.g. I would like to add a number as a string to a show message instead of putting

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-17 Thread Keith McKay
ough the mailing list archives and it seems that > > if I add [instance=doublefun] I do not get the Arithmetic Overflow > > error. Joy! > fwiw, we have also instance=decimalfun > > concerning arithmic: > > in metapost we have > > scaled : upto 4K bp > double :

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Hans Hagen
: in metapost we have scaled : upto 4K bp double : 64 bit floats decimal : configurable accuracy complex : dual doubles (only in luametafun) in lmtx lua we have: integer : lua tries to be clever but mixing leads to double float: lua tries to be clever decimal : userdata arbitrary precision (only

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Thank you. That works. > On 14 May 2020, at 17:13, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 14.05.2020 um 11:47: >> Is it possible to get a transparent background in a textext()? The following >> minimal example doesn’t work. >> \starttext >> \setupMPpage >>

Re: [NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Wolfgang Schuster
Gerben Wierda schrieb am 14.05.2020 um 11:47: Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage   [background=color,    backgroundcolor=gray] \startMPpage draw

[NTG-context] Using transparency in METAPOST within textext()

2020-05-14 Thread Gerben Wierda
Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work. \starttext \setupMPpage [background=color, backgroundcolor=gray] \startMPpage draw

[NTG-context] \goto works but links don't when passed via textext() in METAPOST

2020-05-10 Thread Gerben Wierda
I am trying to get an URL link in a textext() via METAPOST. I’ve got this before \starttext (or after, tried both): \setupinteraction [state=start, color=blue, style=bold] The intended link shows up in blue and bold, but it is not clickable. I’ve turned ConTeXt tracing on and see

[NTG-context] Would it be possible in LMTX to do something like variable font/lineheight to fit a fixed frame?

2020-05-10 Thread Gerben Wierda
Suppose I have a fixed sized frame, say 3 y 4 cm. And I have a variable-length text. Would it be possible to write a macro that scaled the font and line height such that the text will fit in the frame? What I have now is very basic: Fixed width Typeset (METAPOST textext

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-10 Thread Gerben Wierda
> On 10 May 2020, at 00:01, Bruce Horrocks wrote: > >> You can save extracting the xparts and yparts by using direct subtraction of >> pairs and comparing with (0,0) like this: > > Aaaargh, no, ignore that, it's nonsense. It's amazing how you can stare at > something for minutes but only see

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-09 Thread Bruce Horrocks
> You can save extracting the xparts and yparts by using direct subtraction of > pairs and comparing with (0,0) like this: Aaaargh, no, ignore that, it's nonsense. It's amazing how you can stare at something for minutes but only see the flaw the moment you press send. Sorry for the noise. --

Re: [NTG-context] METAPOST subpath rounding issue

2020-05-09 Thread Bruce Horrocks
> On 8 May 2020, at 13:58, Gerben Wierda wrote: > >> On 8 May 2020, at 00:46, n...@scorecrow.com wrote: >> >>> On 7 May 2020, at 20:28, Gerben Wierda wrote: >>> >>> I have a METAPOST algorithm that splits a path at a certain time in two, &g

Re: [NTG-context] error during the installation of luametatex

2020-05-09 Thread Rik Kabel
   : cont...@ntg.nl <mailto:cont...@ntg.nl> Copyright : The 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. And the context version

Re: [NTG-context] error during the installation of luametatex

2020-05-09 Thread Giulio Bertellini
y. Redistribution of this software is covered by the > terms > of the GNU General Public License, version 2 or (at your option) any later > version. For more information about these matters, see the file named > COPYING > and the LuaTeX source. > > Functionality : level 2

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