[NTG-context] Re: 2024

2024-01-02 Thread Hans Hagen via ntg-context
On 1/1/2024 3:33 PM, vm via ntg-context wrote: On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed

[NTG-context] Re: 2024

2024-01-01 Thread vm via ntg-context
On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed ! (And thank you for all the good work) Is the puzzle

[NTG-context] 2024

2024-01-01 Thread Hans Hagen
Hi, As a side effect (spin off) of this years xmas card we have a new years gimmick: https://www.pragma-ade.nl/2023 Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
On Sun, 31 Dec 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. Right now I > generate images separately and embed them in PDF using externalfigure command > which works but I have to maintain all the graphics separately. It is possible

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Hans Hagen
On 12/30/2023 8:04 PM, Shiv Shankar Dayal wrote: Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. next year we

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Alan Braslau via ntg-context
On 30/12/23 30/12/23, 12:04, Shiv Shankar Dayal wrote: It would be nice to either support Metapost 3D Very simple MP pseudo 3D is included in tex/texmf-context/metapost/context/base/mpiv/mp-tres.mpiv Alan

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Gavin via ntg-context
Hi Shiv and Fabrice, > On Dec 30, 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. > On Dec 6, 2021, Fabrice L wrote: > I would be very interested to see an example of a Metafun drawing made with > the help of LuaTeX to speed up so

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Shiv Shankar Dayal
Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. Respect, Shiv

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
me suggestions. When all is stable I can spend a few hours on optimizing if needed. I am a novice at both Lua and MetaPost. I’m also new to Git and have never shared anything of substance with the ConTeXt community. (This barely counts as substantive, but I figure it’s best to start smal

[NTG-context] Seeking advice for module that draws globes

2023-12-17 Thread Gavin via ntg-context
;% Add a border, if you want. \stopMPpage I am a novice at both Lua and MetaPost. I’m also new to Git and have never shared anything of substance with the ConTeXt community. (This barely counts as substantive, but I figure it’s best to start small.) I’m sure many of you could find

[NTG-context] Re: About framedtext

2023-12-13 Thread Alan Braslau via ntg-context
On Wed, 13 Dec 2023 18:55:34 +0100 Wolfgang Schuster wrote: > This was added a few years ago (AFAIR to provide something similar to > the TikZ color command). You actually mean similar to the MetaPost color command.

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
(corner=round still works) or create your own background as metapost graphic with rounded corners. Oh, yes, here’s Hans’ fix. Hraban if not modules then modules = { } end modules ['lpdf-rul'] = { version = 1.001, comment = "companion to grph-rul.mkiv", author= &

[NTG-context] Re: About framedtext

2023-12-13 Thread Wolfgang Schuster
background as metapost graphic with rounded corners. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
Hi, in my ConTeXt book, some examples for \framed with rounded corners look odd, as if the MetaPost calculation of rounded corners fails. I can’t find a minimal example that shows the problem, and I can’t imagine which of the settings in my extensive environment would cause it. Find below

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
t = "\JapaneseFont 日本語" > >> ], AEndPoint);); > >> > >> p3:=image( > >> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); > >> ); > >> > >> p4:=image(draw A; label(lmt_outline

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
gt; > >> z3 = (10,70); > > >> z4 = (30,50); > > >> z5 = (90,70); > > >> z6 = (-10,70); > > >> > > >> path A; A = z0..z1..z2..z3..z4 ; > > >> pair AStartPoint; AStartPoint = point 0 of A; > > >> pair AEn

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
t;> > >> p2:=image(draw A; label(lmt_outline [ > >> text = "\JapaneseFont 日本語" > >> ], AEndPoint);); > >> > >> p3:=image( > >> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
>> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); > >> ); > >> > >> p4:=image(draw A; label(lmt_outline [ > >> text = "\KoreanFont 한국어" > >> ], AStartPoint);); > >>

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
mage( >> draw B withcolor blue; >> ); >> \stopMPinclusions >> >> \starttext >> >> \dorecurse{6}{ % Frame >> \setupMPpage[background=color, backgroundcolor=SpringGreen] >> \startMPpage[pagestate=start] >> currentime := #1 ; >>

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
n) withcolor > magenta ; > for k=1 upto currentime: draw p[k]; endfor > setbounds currentpicture to TheFrame ; > > desiredformat := 1080;% In pixels (will be converted by default at 72dpi) > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > > \stopMPpage &

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
t := 1080;% In pixels (will be converted by default at 72dpi) > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > > \stopMPpage > } > > \stoptext > On Nov. 27 2023, at 11:25 pm, Aditya Mahajan wrote: > > On Mon, 27 Nov 2023, Fabrice L wrote: >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
e L wrote: > > > Hi, > > > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > > multiple times. Here is an example which build an animation of a particle > > moving according to a Brownian motion. > > A very similar option is to pass a variabl

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
pass a variable to a metapost drawing. This is what I use: https://adityam.github.io/context-blog/post/metapost-animation/ It only works when viewed in acrobat, you can just comment out the animation part and wrap it in \startTEXpage .. \stopTEXpage to get multi

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
0;% In pixels (will be converted by default at 72dpi) currentpicture := currentpicture xysized (desiredformat ,desiredformat ); \stopMPpage } \stoptext % 8< --- > Le 27 nov. 2023 à 13:49, Emanuel Han via ntg-context a > écrit : > > How can

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
How can I achieve multipage metapost output from ConTeXt? The result should be a multipage pdf. It contains just a metapost graphic per page. The graphic has always the same bounding box and evolves from page to page: Some elements to be drawn are added, and some others would ideally also

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-20 Thread Emanuel Han via ntg-context
white 1mm thick border in a Metapost >> label. Here is my code, which doesn't draw the border at all and which draws >> the text in white instead of black (I'm using mkiv and mkxl version >> 2023.09.26 18:19 on osx-arm6): >> | >> |beginfig(1); >> %

[NTG-context] Re: Metapost label text surrounded by white border

2023-11-19 Thread Henning Hraban Ramm
Am 19.11.23 um 16:41 schrieb Emanuel Han via ntg-context: I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18

[NTG-context] Metapost label text surrounded by white border

2023-11-19 Thread Emanuel Han via ntg-context
I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18:19 on osx-arm6): beginfig(1); % Define the text and colors

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-12 Thread Hans Hagen
On 11/11/2023 11:43 PM, Paul Mazaitis wrote: On 11 Nov 2023, at 14:52, Aditya Mahajan wrote: Last time I checked tree-sitter on neovim, there were no good tree-sitters for context. I'd be interested in testing this out. Happy to have feedback! Does the parser detect nested metapost

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-11 Thread Paul Mazaitis
On 11 Nov 2023, at 14:52, Aditya Mahajan wrote: > Last time I checked tree-sitter on neovim, there were no good tree-sitters > for context. I'd be interested in testing this out. Happy to have feedback! > Does the parser detect nested metapost and luatex environments? The parser r

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-11 Thread Aditya Mahajan
document > hierarchy.) Last time I checked tree-sitter on neovim, there were no good tree-sitters for context. I'd be interested in testing this out. Does the parser detect nested metapost and luatex environme

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Henning Hraban Ramm
. Fixed. Any suggestions as to what needs to be changed to get the diagram to display correctly? I saved it again and now it seems to work. Thank you! BTW, for my book I made a new one in MetaPost, see attachment. \startMPpage input layout.mp; draw Layout; \stopMPpage Hraban % Diagram of lay

[NTG-context] Re: [ metapost -> svg ]

2023-11-07 Thread vm via ntg-context
On 07/11/2023 14:54, Lutz Haseloff wrote: mutool convert -o metapost.svg -O text=path metapost.pdf Hope it helps a little yes, mutool was the key to remember. thanks! .F ___ If your question is of interest to

[NTG-context] Re: [ metapost -> svg ]

2023-11-07 Thread Lutz Haseloff
Hi Floris, directly generating SVG with ConTeXt LMTX is not possible. But, using LMTX to generate SVGs has some advantages over MPOST. You can use ConTeXt's advanced color management (transparency and more) and you can use the very nice font management. So my "metapost" file is: \s

[NTG-context] [ metapost -> svg ]

2023-11-05 Thread vm via ntg-context
With the latest lmtx installed, what would be the correct cli command to generate a svg outputfile from a metapost source? .Floris ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Modernizing Parametric type design A case study of Nupuram Malayalam typeface

2023-11-04 Thread BPJ
in/spk_papers/Santhosh_Thottingal_Typoday2023.pdf > > <https://typoday.in/spk_papers/Santhosh_Thottingal_Typoday2023.pdf> > > and > > https://twitter.com/santhoshtr/status/1577596445917470722 > > <https://twitter.com/santhoshtr/status/1577596445917470722> >

[NTG-context] Re: Modernizing Parametric type design A case study of Nupuram Malayalam typeface

2023-11-04 Thread Hans Hagen
tr/status/1577596445917470722> Long live to metapost &  metafont (& mflua :-) :-) :-) ) when the font was released we (MS & HH) played a bit with it and wondered about making a math companion ... Hans -

[NTG-context] Modernizing Parametric type design A case study of Nupuram Malayalam typeface

2023-11-04 Thread luigi scarso
https://typoday.in/spk_papers/Santhosh_Thottingal_Typoday2023.pdf and https://twitter.com/santhoshtr/status/1577596445917470722 Long live to metapost & metafont (& mflua :-) :-) :-) ) -- luigi ___ If your

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Keith McKay
r: >      > Hi, >      > I would like to obtain, if possible, a gray gradient like in the >     image. >      > My code uses Metapost but maybe this is possible with Metafun. > >     Have a look into the Metafun manual, chapter 8.1 “shading”.

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Fabrice Couvreur
> > Best Wishes > > Keith > > > > On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm, > <mailto:te...@fiee.net>> wrote: > > > > Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: > > > Hi, > > > I would like to obtain, if possi

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Henning Hraban Ramm
, if possible, a gray gradient like in the image. > My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban ___ If your question

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Keith McKay
in, if possible, a gray gradient like in the image. > > My code uses Metapost but maybe this is possible with Metafun. > > Have a look into the Metafun manual, chapter 8.1 “shading”. > > Hraban > > > ___

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread peter.hopcroft--- via ntg-context
Yes, indeed. The metafun manual also explains things about overlays and layers I hadn't known. I'd previously ignored that manual. Thank you, Peter > On 5/10/2023, at 7:05 PM, Thomas A. Schmitz > wrote: > > Have a look at chapter 6.4 of the metafun manual. You need StartPage ... > StopPage

[NTG-context] Re: Gray gradient with Metapost

2023-10-05 Thread Henning Hraban Ramm
Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban

[NTG-context] Gray gradient with Metapost

2023-10-05 Thread Fabrice Couvreur
Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Thanks. Fabrice \starttext \startMPcode u=1.2cm; interim ahangle := 30; z0=(0,0); z1=(3u,0

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread Thomas A. Schmitz
Have a look at chapter 6.4 of the metafun manual. You need StartPage ... StopPage in your MPcode, then you can knock yourself out by using variables such as PaperHeight or TextHeight and do all sorts of calculations. All best Thomas On 10/5/23 05:54, peter.hopcroft--- via ntg-context wrote:

[NTG-context] How can I use a variable for a MetaPost coordinate ?

2023-10-04 Thread peter.hopcroft--- via ntg-context
Hello list, I want to draw lines on a page. I want to pass my line coordinates as a percent of \width or \textheight, rather than as millimetres. So that if I change the page size I don't need to change the coordinates. The MWE below compiles but the pdf does not have any lines drawn on it.

[NTG-context] Re: MAPS nr 53

2023-08-22 Thread Keith McKay
Would it be possible to list the contents to whet our appetites? Best Wishes Keith McKay On Tue, 22 Aug 2023, 18:43 luigi scarso, wrote: > > An unmissable issue of MAPS, totally dedicated to MetaPost by Taco. > Once free I will put it in the mp repository. >

[NTG-context] MAPS nr 53

2023-08-22 Thread luigi scarso
An unmissable issue of MAPS, totally dedicated to MetaPost by Taco. Once free I will put it in the mp repository. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] new upload

2023-08-15 Thread Hans Hagen
. One of the predefined units is 'uu' with an associated \ununit (dimension) variable and it's is also interfaced to metafun. That means that when you use uu in metapost graphics you have to make sure that you save the meaning and/or numeric uu now. The idea is that just as in mp one can say

[NTG-context] An error which is not in .log file

2023-08-15 Thread Xavier B.
pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 11.2pt 12.8pt 14pt 16.8pt 16pt 19.2pt 24pt 30pt 36pt mkiv lua stats > metapost: 0.000 seconds, loading: 0.033, execution: 0.000, n: 3, average: 0.011, instances: 1, luacalls: 14196 (file: 13784, text: 0, script: 393, log:

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
gister the needed macro for \definefontfeature -- and we want to move forward with the new regime and not look back. well, you wented symbols so ... why lua then (btw, no need for squeezine as there are virtual commands for scaling; not for rotating; an alternative is to define some chars in

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and not

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution).

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-08 Thread Bruce Horrocks
> On 7 Aug 2023, at 18:13, Henning Hraban Ramm wrote: > > while it’s too late for this year’s conferences, I’d like to have some nice > ConTeXt, MetaPost or general TeX stickers for next year’s. > Do you have ideas? Here's my suggestion for a sticker that we can't us

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Henning Hraban Ramm
cker camps. Looking at other stickers I guess hacker humor is often a bit crude or pubertal. I didn’t say we should print this design – Moss or maybe DANTE will. I’d like to have some interesting/funny stickers to promote ConTeXt (and MetaPost/MetaFun). And while I like the Dodo, it’s a MkII

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Hans van der Meer via ntg-context
like to have some nice ConTeXt, MetaPost or general TeX stickers for next year’s.Do you have ideas?Find attached an example by Moss.Hraban___If your question is of interest to others as well, please add an entry

[NTG-context] ideas for ConTeXt stickers?

2023-08-07 Thread Henning Hraban Ramm
Hi, while it’s too late for this year’s conferences, I’d like to have some nice ConTeXt, MetaPost or general TeX stickers for next year’s. Do you have ideas? Find attached an example by Moss. Hraban TeXies do it in groups-pink-on-black.pdf-flat-no-ICC.pdf Description: Adobe PDF document

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Duncan Hothersall
I am in awe at this. Thanks for sharing. On Wed, 19 Jul 2023 at 18:11, Henning Hraban Ramm wrote: > Am 19.07.23 um 14:07 schrieb Taco Hoekwater: > > First, find the actual point along the curve of the wave you want, then > you can ask for the direction of the wave at that time, and its point: >

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
Am 19.07.23 um 14:07 schrieb Taco Hoekwater: First, find the actual point along the curve of the wave you want, then you can ask for the direction of the wave at that time, and its point: Thank you! pair itime, iangle, boatpos; itime = (wave[3] intersectiontimes

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
Hi, First, find the actual point along the curve of the wave you want, then you can ask for the direction of the wave at that time, and its point: \startuseMPgraphic{Waves} numeric height,stops,yoffset; stops := 10; height := OverlayHeight/10; path wave[]; % storing waves draw

[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Floris van Manen via ntg-context
On 19/07/2023 12:32, Henning Hraban Ramm wrote: I find the waves not yet very convincing. Depending on the intended weather, I'd rather flatten the amplitudes out with the distance. Unlike mountains, waves do not get much higher at the horizon. .F

[NTG-context] enhancing MetaPost presentation progress graphics

2023-07-19 Thread Henning Hraban Ramm
Hi, I’d like a presentation progress indicator that looks like a boat on waves – and if it works, it can also become a bike on hills or a mars rover on dunes. But my math skills are lacking. Below’s a mostly working draft. * I find the waves not yet very convincing. Would it make sense to

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Alan Braslau via ntg-context
d not work when more sophisticated MetaPost transformations might be needed. Along the lines of the conversion downsampler, a resolution reporter and manual resampling could be more efficient than reconverting the bitmap image at every run, of which there ca

[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
. I've tested all of the below with the latest ConTeXt. If you give Metapost an out-of-order gradient, it produces an invalid PDF. Both pages in this example: \startbuffer[gradient] http://www.w3

[NTG-context] Re: mplib: identifiers starting with units

2023-07-05 Thread Hans Hagen
On 7/5/2023 3:47 PM, Leah Neukirchen wrote: Hi, I've been trying to use the 'cmarrows' metapost library with ConTeXt/mplib. Essentially it's a thin wrapper around the cmr metafont sources to get the arrowheads. This triggers an incompatibility between mplib and classic mpost/mf: pt#:=1pt

[NTG-context] mplib: identifiers starting with units

2023-07-05 Thread Leah Neukirchen
Hi, I've been trying to use the 'cmarrows' metapost library with ConTeXt/mplib. Essentially it's a thin wrapper around the cmr metafont sources to get the arrowheads. This triggers an incompatibility between mplib and classic mpost/mf: pt#:=1pt; In MetaFont/MetaPost pt# is an allowed identifier

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context
(?) thesis of one student. He never published the source code, and apparently he stopped hosting it at all. i suppose that it runs on a university machine Unfortunately silent disappearance is a common fate of the really interesting ConTeXt and MetaPost projects from Brno. probably true for many

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Henning Hraban Ramm via ntg-context
, and apparently he stopped hosting it at all. Unfortunately silent disappearance is a common fate of the really interesting ConTeXt and MetaPost projects from Brno. Hraban ___ If your question is of interest to others

[NTG-context] FYI: created with LMTX

2023-05-21 Thread Gerben Wierda via ntg-context
https://ea.rna.nl/archimate/free-archimate-overview-pdf/ <https://ea.rna.nl/archimate/free-archimate-overview-pdf/> The story at the end tells a bit about LMTX and how it was done (it's about 2500 lines of lua to parse the XML and produce the LMTX statements, and about 3500 lines of ME

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
CJK JP] \definetypeface   [noto-jp] [mm] [math] [pagella] [default] \setupbodyfont [noto-jp] \mainlanguage [ja] \setscript [nihongo] Thank you. How do I change that in my setup? My setup is creating the same stuff in different languages from XML input (LMTX using lua and METAPOST), which means I need to

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Gerben Wierda via ntg-context
gt; \setupbodyfont [noto-jp] > > \mainlanguage [ja] > > \setscript [nihongo] Thank you. How do I change that in my setup? My setup is creating the same stuff in different languages from XML input (LMTX using lua and METAPOST), which means I need to adapt the following setup

Re: [NTG-context] update

2023-04-26 Thread lynx--- via ntg-context
eported buglets have been fixed. > > - The biggest addition is however a new number model. In metapost one can now > use 'posit' (positfun instance) as number mode which will use (currently 32 > bit but at some point 64 bit) posit unums. It's also bit of a playground > because 32

Re: [NTG-context] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
hen try to fix it (read: deal with it). It's a lot > of work but we're getting there. > > - A few reported buglets have been fixed. > > - The biggest addition is however a new number model. In metapost one > can now use 'posit' (positfun instance) as number mode which wil

[NTG-context] update

2023-04-26 Thread Hans Hagen via ntg-context
number model. In metapost one can now use 'posit' (positfun instance) as number mode which will use (currently 32 bit but at some point 64 bit) posit unums. It's also bit of a playground because 32 bit posits are not more accurate than 64 bit doubles. It anyhow exposed some potential issues

Re: [NTG-context] Kaktovik numerals

2023-04-20 Thread Willi Egger via ntg-context
umeral. You have 4 digit >>> Kaktovik numerals for 2023, with both a 0 and a 1. > je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde > volgorde uit: > > \useMPlibrary[kaktovik] % de officiele manier > > \definefontfeature > [default] > [def

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
, with both a 0 and a 1. je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde volgorde uit: \useMPlibrary[kaktovik] % de officiele manier \definefontfeature [default] [default] [metapost=kaktovik] \setupbodyfont[dejavu] \starttext 2023 \kaktoviknumerals{5}\kaktoviknumerals

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
-pod.nl - meta-imp-kaktovik.pdf Description: Adobe PDF document %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author

Re: [NTG-context] Feynman Diagrams

2023-04-13 Thread Hans Hagen via ntg-context
On 4/13/2023 4:42 AM, Gavin via ntg-context wrote: Hi Aditya, Thanks for the suggestions. I hadn’t thought to dig into the MetaPost produced when typesetting a LaTeX document. In principle, it should be easier to adapt the feynmp.mp (attached) code to make it work with LMTX. This sounds

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
Hi Aditya, Thanks for the suggestions. I hadn’t thought to dig into the MetaPost produced when typesetting a LaTeX document. > In principle, it should be easier to adapt the feynmp.mp (attached) code to > make it work with LMTX. This sounds like a good summer project for me. I’ll be

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
On Wed, 12 Apr 2023, Gavin via ntg-context wrote: > Hi Aditya, > > > Have you tried using feynmp (the metapost macros) directly instead of the > > LaTeX wrapper? Can you create an example that works with metapost but fails > > in ConTeXt? > > No, I’m not

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
Hi Aditya, > Have you tried using feynmp (the metapost macros) directly instead of the > LaTeX wrapper? Can you create an example that works with metapost but fails > in ConTeXt? No, I’m not sure how to do that. I looked at the manual, and it has some examples where new styles ar

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
t; "shapes" of paths available. So, which ones are actually needed? > > I think the needed shapes are: > - dashed or dotted paths already built into MetaPost > - paths that are wiggly, zig-zag or coiled > - optional arrows on the paths > - optional dots or blobs at t

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Gavin via ntg-context
k the needed shapes are: - dashed or dotted paths already built into MetaPost - paths that are wiggly, zig-zag or coiled - optional arrows on the paths - optional dots or blobs at the connecting points This is plenty for someone doing Standard Model physics. Model builders doing supersymmetric,

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Mikael Sundqvist via ntg-context
feynman with LaTeX in the past, but it > > doesn’t look like either works directly with ConTeXt. My diagrams are > > pretty basic (example below). Does anyone have a ConTeXt solution they > > like? If not, I’ll add it to my list of summer MetaPost projects. > Maybe Alan's node

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Hans Hagen via ntg-context
(example below). Does anyone have a ConTeXt solution they like? If not, I’ll add it to my list of summer MetaPost projects. Maybe Alan's node module can do the work, Hans - Hans Hagen | PRAGMA

[NTG-context] Feynman Diagrams

2023-04-11 Thread Gavin via ntg-context
they like? If not, I’ll add it to my list of summer MetaPost projects. Thanks! Gavin PastedGraphic-1.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Text editors

2023-03-26 Thread Nicola via ntg-context
ce to show the config. (And yes I've seen the Wiki page > https://wiki.contextgarden.net/Text_Editors but I've the feeling some > content is outdated.) Vim offers good support for ConTeXt and MetaPost out of the box (I maintain those filetypes). The Vim page in ConTeXt Garden is up to date, afaict,

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
the bottomframe in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as background, like

Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-25 Thread Carlos via ntg-context
t}/scripts/context/lua/ resolvers | lists | MPINPUTS resolvers | lists | env: unset resolvers | lists | var: MPINPUTS resolvers | lists | exp: .\{home:.texlive2023/texmf-config, home:texmf, !!selfautoparent:texmf-config, !!selfautoparent:texmf-var, !!selfautoparent

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as background, like in the “diagonal” example

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Gavin via ntg-context
{} that does not conflict with other \unit{} features, or perhaps we can make a module that lacks some of the features of \unit{} but conforms to the SI for input as well as output. I would be happy with either. I’d also like to work on the luagraph module this summer. I’m getting a lot better

Re: [NTG-context] Problem with LMTX on macOS: no format file given, quitting

2023-02-13 Thread Luis Montgomery via ntg-context
: cont...@ntg.nl Copyright : The Lua(Meta)TeX Team(s) (2005-2022+) The LuaMetaTeX project is related to ConTeXt development. This macro package tightly integrates TeX and MetaPost in close cooperation with Lua. Updates will happen in sync with ConTeXt and when needed. Don't be fooled

[NTG-context] Problem with LMTX on macOS: no format file given, quitting

2023-02-12 Thread Tommaso Gordini via ntg-context
integrates TeX and MetaPost in close cooperation with Lua. Updates will happen in sync with ConTeXt and when needed. Don't be fooled by unchanged dates: long-term stability is the objective. However, I also get this: charlie@Air-di-Tommaso ~ % luametatex startup error : no format file given, quitting

Re: [NTG-context] regular online meet-up

2023-02-08 Thread Gavin via ntg-context
more than two symbols, it’s getting a little crazy. If I understood more about how the system works, I think I could integrate MetaPost code more elegantly to do the drawing. Looking forward to seeing you! Gavin AnchorsEverywhere.pdf Description: Adobe PDF document > On Feb 8, 2023, at 2

[NTG-context] Fwd: BachoTeX 2023: invitation and call for papers

2023-02-05 Thread Henning Hraban Ramm via ntg-context
cal models and implementation. Do they help or are they an obstacle? * Papers/presentations Of course we also look forward to the normal mix of TeX, Metafont/Metapost (please, do not forget the fonts!), ConTeXt, LaTeX, and friends related presentations. We also do upkeep the BachoTeX trend in which we tr

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Lutz Haseloff via ntg-context
\starttext Test Test \definefont[bahnlight][name:bahnschriftlight*default] \startMPcode picture pic; pic := thelabel(textext("\bahnlight This is Bahnschrift light in Metafont 0123456789"), (0, 0)); draw pic; \stopMPcode \stoptext Am 20. Januar 2023 18:28:23 MEZ schrieb Guido Bartolucci via

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-20 Thread Guido Bartolucci via ntg-context
And how do you set the light variation? On Fri, Jan 20, 2023 at 2:08 AM Lutz Haseloff via ntg-context < ntg-context@ntg.nl> wrote: > Hi Guido, > > > this works here: > > \starttext > Test Test > > \usemodule[fonts-variable] > \definefontfamily [mainface] [ss] [bahnschrift] >

Re: [NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Lutz Haseloff via ntg-context
Hi Guido, this works here: \starttext Test Test \usemodule[fonts-variable] \definefontfamily [mainface] [ss] [bahnschrift] \setupbodyfont[mainface] \ss 123456789 Wild! \medskip \startMPcode picture pic; pic := thelabel(textext("\ss This is in Metafont 0123456789"), (0, 0)); draw pic;

[NTG-context] What's the current method for using a variable font in Context and Metapost?

2023-01-19 Thread Guido Bartolucci via ntg-context
I haven't been able to find working examples. Here is some sample code. I would really like to be able to use the light variation of this DIN-like font. \usemodule[fonts-variable] \definefontfamily [mainface] [ss] [bahnschrift] \setupbodyfont[mainface] \starttext \ss 123456789 Wild! \medskip

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