[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Henri Menke via ntg-context
On Fri, 2024-01-19 at 13:56 +0530, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good > coding practice. These potions of code which have goto should be > refactored. https://xkcd.com/292/ > I am a C programmer, but I know very

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-09 Thread Henri Menke via ntg-context
On 8/8/23 20:57, Hans Hagen wrote: > On 8/8/2023 7:43 PM, Hans Hagen wrote: >> On 8/8/2023 6:13 PM, Xavier B. wrote: >>> After some time, I could write a minimal example with tikz with >>> strange error: Cannot parse this coordinate. >>> >>> Can someone help me to find the bug? >>> >>> I attach

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 11:01 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:35 AM, Henri Menke via ntg-context wrote: > > > Thanks, this is indeed the workaround that I currently use. > > However, > > the downside is that this has to tokenize the contents of

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 10:30 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:13 AM, Henri Menke via ntg-context wrote: > > On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context > > wrote: > > > On 1/26/2023 9:33 PM, Henri Menke via ntg-context w

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context wrote: > On 1/26/2023 9:33 PM, Henri Menke via ntg-context wrote: > > \directlua{ > >userdata = userdata or {} > >function userdata.test() > > tex.print("\string\\numexpr 17\string\\relax

[NTG-context] protected macro vs protected luacall

2023-01-26 Thread Henri Menke via ntg-context
Dear list, I have noticed a somewhat strange difference between protected macros and protected luacalls, namely that the latter cannot be expanded by \the. In the example below I define a Lua function that prints \numexpr 17\relax to the token stream and I call it once from a protected TeX macro

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Henri Menke via ntg-context
On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote: > > On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > > > just load tikz first so that the right loader helpers are there > > > > \usemodule[tikz] > > \usemodule[pgfplots] > > > > \starttext > > Hello > > \stoptext > > > > seems

Re: [NTG-context] Containerized ConTeXt

2022-12-14 Thread Henri Menke via ntg-context
The Island of TeX builds Docker images for ConTeXt weekly. https://gitlab.com/islandoftex/images/context registry.gitlab.com/islandoftex/images/context:lmtx Cheers, Henri On Tue, 2022-12-13 at 20:56 -0800, Thangalin via ntg-context wrote: > Hi again, > > I've added the start of a podman

Re: [NTG-context] Microtipography

2022-05-25 Thread Henri Menke via ntg-context
On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context wrote: > Hello list, > > here and there on the Net there are slightly different ways to > activate the > microtypography functionality in a ConTeXt document. > >  My question is: what is the most correct and clean way to do it?

Re: [NTG-context] Syntax highlighting using LMTX

2021-12-02 Thread Henri Menke via ntg-context
On Thu, 2021-12-02 at 12:07 -0500, Aditya Mahajan via ntg-context wrote: > On Thu, 2 Dec 2021, Thangalin via ntg-context wrote: > > > Hi all, > > > > There are a few technical hurdles with using the t-vim module in > > LMTX. > > First, users need to install the module using externally defined >

Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Henri Menke via ntg-context
On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote: > On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote: > > Hello Community, > > > > If my memory serves me correctly, I might have noticed (in one of the > > presentations during the recent ConTeXt meeting) that the distro >

Re: [NTG-context] running tikz

2021-10-01 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 14:52 -0400, Aditya Mahajan via ntg-context wrote: > On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote: > > > On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context > > wrote: > > > Hi! > > > > > > I would li

Re: [NTG-context] running tikz

2021-09-30 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote: > Hi! > > I would like to use tikz to benefit of the package "pgf-soroban" I > did write for LaTeX (after adapting it and before, later, to > translate it to metapost). > > I did try the sample program from the tikz manual,

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
On Mon, 2021-08-23 at 17:24 +0200, Hans van der Meer via ntg-context wrote: > I guess the underlying library calls are from Lua5.4? Then it is > perhaps useful to know that between 5.3 and 5.4 there is mentioned a > new implementation for math.random. Perhaps it changes the sequence of > random

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
On Mon, 2021-08-23 at 16:46 +0200, Thierry Horsin via ntg-context wrote: > Hi everybody. > > I wonder how does math.random() work in context. I found that this > subject was discussed more than ten years ago by Otared and Taco and > Thomas. It is clear to me how to obtain new results upon