Re: [NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
aking routines have broken the paragraph into lines. In this case, line breaks are identical to standard TeX behavior. So maybe just copy this paragraph to the LuaTeX manual. On 12/5/19 1:34 PM, Henri Menke wrote: Possible patch (can be directly used with `git apply') diff --git a/s

Re: [NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Henri Menke
On 12/5/19 2:10 PM, Jairo A. del Rio wrote: I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV), mainly for what can be done with them (the "mode=harf" feature and Lua language features). Although this is pretty easy with LaTeX: \usepackage{harfload} \setmainfont{font}[RawFe

Re: [NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Henri Menke
On 12/9/19 10:02 AM, Fabrice Couvreur wrote: Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. No, eofill is basically just a frontend for the PDF primitive eofill, which works on a single connected path that intersects itself. If that wasn't

[NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
Dear devs, The example below crashes LuaTeX with a segmentation fault. It is reproducible with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226. To this end I built 7226 from source with --debugopt to get a backtrace, which can be found below as well. Cheers, Henri --- \directlua{token.set_macro(-1

Re: [NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
On 12/11/19 12:23 PM, luigi scarso wrote: On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen wrote: On 12/11/2019 12:03 AM, luigi scarso wrote: On Tue, Dec 10, 2019 at 9:27 PM Henri Menke mailto:henrime...@gmail.com>> wrote: Dear devs, The example below crashes LuaTeX

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 10:19 AM, Rik Kabel wrote: List, Is there a way in ConTeXt to adjust the left-side kern for one character? No, kerns always come in pairs. The cap J in the font I am using is being set too close to the preceding characters and I would rather not insert a thinspace before each.

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to the preceding characters and I would rather

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 3:33 PM, Henri Menke wrote: On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to

Re: [NTG-context] Entity to receive donations?

2019-12-26 Thread Henri Menke
On 12/27/19 4:49 PM, Jon Wong wrote: Is there a formal entity for ConTeXt to receive donations? What about receiving earnings? https://group.contextgarden.net/payment.shtml ___ If your question is of interest to

Re: [NTG-context] LMTX for alpine linux (musl)

2020-01-02 Thread Henri Menke
On 1/3/20 8:23 PM, Mojca Miklavec wrote: > On Thu, 2 Jan 2020 at 14:42, Martin Hasoň wrote: >> >> Hi all, >> >> I would like use the LMTX in alpine linux (musl). Is this version planned to >> be prepared? > > What's the oldest version of Alpine that we would want to support? Regular LuaTeX can b

[NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
Dear Hans, Recent updates to ConTeXt broke my CV. This MWE \usemodule[letter] \starttext \stoptext fails with ...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call a nil value (field 'uselibrary') Here are the steps by which I can reproduce on my machine: rm -rf /op

Re: [NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
= name -commands.uselibrary { +resolvers.uselibrary { name = name, patterns = patterns[environment], action = action, On 1/13/20 2:19 PM, Henri Menke wrote: > Dear Hans, > > Recent updates to ConTeXt broke my CV. This MWE > > \u

Re: [NTG-context] Historic ligatures with lucidaot

2020-01-16 Thread Henri Menke
On 1/17/20 10:52 AM, Otared Kavian wrote: > Hi all, > > How can I add the so-called « historic ligatures », such as in st, ct, to a > font (assuming it has that feature)? > > For instance > > \setupbodyfont[lucidaot] > > \starttext > > construction > > \stoptext > > does not show the histor

Re: [NTG-context] removing extra margins

2020-01-28 Thread Henri Menke
On 1/29/20 10:09 AM, Pablo Rodriguez wrote: > Dear list, > > I need to add a PDF page, but removing extra margins that it contains. > > A sample would be: > > \setupexternalfigures[location=default] > \starttext > \externalfigure[cow.pdf] > \stoptext > > How could I crop 2ex fro

Re: [NTG-context] beta vs current

2020-01-30 Thread Henri Menke
On 1/31/20 8:37 AM, Aditya Mahajan wrote: > On Thu, 30 Jan 2020, Hans Hagen wrote: > >> Hi, >> >> Already for quite some years the 'current' context release is the one >> that ends up on texlive. The rest of the year we talk about betas and >> very rarely an alpha release. This distinction no lo

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangle (1,1); \s

Re: [NTG-context] Global \setup has no effect while ad-hoc setting does

2020-02-13 Thread Henri Menke
On 2/14/20 6:30 PM, Wolfgang Schuster wrote: > On Fri, 14 Feb 2020 02:21:03 +0100 > Exp wrote: > >> Dear list, >> >> I want to prevent an overfull hbox caused by an inline typing by making the >> alignment very tolerant, but it didn't work: >> >> ``` >> \setupframedtext[ >> width=broad, >>

Re: [NTG-context] Third party modules in LMTX

2020-02-13 Thread Henri Menke
On 2/12/20 5:10 PM, jdh wrote: > > > I would like to use Wolfgang's t-letter module, but need some help. > > I found the following instructions: > > "The ConTeXt suite only comes with Taco's t-bib module. If you want to > install a new module, say Wolfgang's t-letter module, you can use > >

Re: [NTG-context] Second derivative ''

2020-03-04 Thread Henri Menke
Looks like the ligature is broken. \starttext \startformula \left(f\right)'' = f'' \stopformula \startformula \left(f\right)″ = f″ \stopformula \stoptext On 3/5/20 11:44 AM, Weber, Matthias wrote: > Dear List, > > \starttext > \startformula > \left(f\right)'' = f'' > \stopformula > \stoptext

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Henri Menke
On 10/03/20, 10:01, Hans Hagen wrote: > On 3/9/2020 10:59 PM, Jorge Manuel wrote: > > > \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 > > Error: #2} > > l.11   \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{} > >                                                

Re: [NTG-context] Only-black emojis in LMTX

2020-03-10 Thread Henri Menke
On 3/11/20 11:35 AM, Alejo Barrio Blaya wrote: > I'm trying to get emojis working. The examples that do, are only printing > plain black emojis. Not colors, nor greyscales. > I'm using the latest beta of LMTX. See section 5.2.13 Color in the fonts manual. http://www.pragma-ade.nl/general/manuals/f

[NTG-context] Ignored spacings are ignored

2020-03-17 Thread Henri Menke
Dear list, Sorry for the stupid title, I couldn't resist. :-) LuaTeX has the option to adjust spacing between different classes of math atoms. However, looking in the TeXbook, page 170, in the table for spacings between adjacent atoms, we find that some of those spacing are undefined (* in the t

Re: [NTG-context] Ignored spacings are ignored

2020-03-18 Thread Henri Menke
Dear Hans, Thank you for the examples. Usually glue is only set at the end of a list and the last active glue will be used, so the \frozen mechanism is a bit confusing maybe. Anyway, is there an ETA for the release of the luametatex source? I'd really like to see how \frozen is implemented. Ki

Re: [NTG-context] Puzzle (for me)

2020-03-31 Thread Henri Menke
On 01/04/20, 01:20, Gerben Wierda wrote: > I have a string with double quotes that needs to become a text in a box in > METAPOST. METAPOST is used to create an image consisting of boxes and > connections. > > Basically, the approach is now something like this: > > TeX: calls Lua code with \ctxl

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-06 Thread Henri Menke
The problem is that pgfplots uses the ^^ syntax to access characters but this relies on ^ having catcode 7 which is not the case by default in ConTeXt. I had a similar issue in PGF before and that was fixed by just replacing the ^^ syntax with the ascii code constants from syst-ini.mkxl. Cheers,

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
rget about whatever was undefined. > > > mtx-context | fatal error: return code: 256 > > TeX Output exited abnormally with code 1 at Tue Apr 7 14:15:58 > > Le mar. 7 avr. 2020 à 04:21, Henri Menke a écrit : > > > The problem is that pgfplots uses the ^^ synta

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
ence at the end of the top line of your error message was > never > \def'ed. You can just continue as I'll forget about whatever was undefined. > > > mtx-context | fatal error: return code: 256 > > TeX Output exited abnormally with code 1 at Wed Apr 8 11:49:56 > >

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Henri Menke
It would be really great if you'd stop wasting people's time by not crossposting. Cheers, Henri On 09/04/20, 09:04, Gerben Wierda wrote: > Nobody? > > > On 8 Apr 2020, at 12:20, Gerben Wierda wrote: > > > > I would like to use the result of transparent() straight in my macros, so I > > can pa

[NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
Dear list, I'm trying to build the plain format but it fails with $ mtxrun --script plain --make [...] ! I can't find file `luatex-plain.tex'. but mtxrun can find the file. $ mtxrun --find-file "luatex-plain.tex" /opt/context/tex/texmf-context/tex/generic/context/luatex/luat

Re: [NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
On 16/04/20, 12:35, Hans Hagen wrote: > On 4/16/2020 10:51 AM, Henri Menke wrote: > > Dear list, > > > > I'm trying to build the plain format but it fails with > > > > $ mtxrun --script plain --make > > [...] > > ! I can't fin

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] 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] 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] 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] 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? I

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 contai

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 t

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

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 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] 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 typesett

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 val

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

[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: How to use fonts without typescripts?

2024-05-15 Thread Henri Menke via ntg-context
On Wed, 2024-05-15 at 20:03 +0530, Shiv Shankar Dayal wrote: > Hi, > > Defining typescripts to use a font is very painful. How can I use a > font > without using a typescript? Use \definefontfamily which is essentially the successor of the old simplefonts module. https://wiki.contextgarden.net/C

<    1   2   3   4   5