[NTG-context] Fira Math: goodies needed?

2023-07-21 Thread Leah Neukirchen
Hi, I'm trying to use Fira Math (https://github.com/firamath/firamath). But this small example yields both limits on the same horizontal axis, i.e. the 0 is far away from the integral sign: \definefontfamily [mainface] [mm] [Fira Math] \setupbodyfont[mainface] \starttext \startformula

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Keith McKay
Thanks Hans! I'll have a play and keep an eye on updates Best Wishes Keith On 21/07/2023 17:10, Hans Hagen via ntg-context wrote: Hi Keith, Here an example that Mikael made for such a book: \showframe % let's very strict \startsetups [*default]     \directsetup{*reset}    

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen via ntg-context
Hi Keith, Here an example that Mikael made for such a book: \showframe % let's very strict \startsetups [*default] \directsetup{*reset} \frozen\widowpenalty1 \frozen\clubpenalty 1 \frozen\displaywidowpenalty 1 \frozen\brokenpenalty 0 %

[NTG-context] Re: Par Builder Tests

2023-07-21 Thread Hans Hagen
On 7/21/2023 5:34 PM, Keith McKay wrote: Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting

[NTG-context] Fwd: Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] Re: Replacing %20 with spaces in xml attributes Date: Fri, 21 Jul 2023 17:50:04 +0200 From: Hans Hagen To: denis.ma...@unibe.ch On 7/21/2023 5:27 PM, denis.ma...@unibe.ch wrote: Thanks, but I'm still getting the same error. I'm

[NTG-context] Par Builder Tests

2023-07-21 Thread Keith McKay
Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting novels. I was keen to try these since I have

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
Thanks, but I'm still getting the same error. I'm thinking that it has something to do with the percent characters... This here works just fine: \startluacode function test(s) result = string.gsub(s, 'x20', 'MATCH') context(result) end \stopluacode \define[1]\test{\ctxlua{test("#1")}}

[NTG-context] Re: OSFONTDIR

2023-07-21 Thread Alan Braslau via ntg-context
Thomas, I actually set OSFONTDIR=. which seems to be a sane default. I store specific font files with projects (along with a copy of the ConTeXt distribution used to typeset the project). This way, I can come back to a project later and make minor corrections without running into surprises or

[NTG-context] Re: OSFONTDIR

2023-07-21 Thread Alan Braslau via ntg-context
On 19/07/23 19/07/23, 22:51, Hans Hagen via ntg-context wrote: is looking for system fonts by default the new standard? Is it a good idea? Thank you and all best it is a tex live thing; you can just set that variable to nothing, in the environment or in a local file like in

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans van der Meer via ntg-context
Here in Terminal on my Mac: 21 ~: lua Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio > string.gsub('a%20b', '%%20', ' ') a b 1 > (string.gsub('a%20b', '%%20', ' ')) a b > ^D 21 ~: The first call returns the 1 giving the match, the extra ()'s get rid of that second return value. yours

[NTG-context] Convert tif to jpg (instead of pdf)

2023-07-21 Thread denis.maier
Hi, According to the documentation, it is possible to automatically convert TIFF images to a format supported by LMTX via GraphicsMagick. https://wiki.contextgarden.net/Using_Graphics#Image_Conversion However, by default this produces pdf files which are quite huge. is it possible to instruct

[NTG-context] Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
Hi, I'm typesetting an XML document where the links to the images contain spaces which are encoded as %20 Using this works in cases without spaces: \startxmlsetups xml:fig:graphic \externalfigure[\xmlatt{#1}{xlink:href}] \stopxmlsetups This also works for normal spaces, but is there a way