Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers

[NTG-context] bottlenecks

2022-12-16 Thread Hans Hagen via ntg-context
Hi, I'm (occasionally) trying to 'minimize' bottlenecks in the context / luametatex code. This is kind of hard because both are rather efficient already. On regular runs performance is probably okay but there are cases when one has a large complex document (e.g. with many tables) or has many

Re: [NTG-context] bottlenecks

2022-12-16 Thread Hans Hagen via ntg-context
On 12/16/2022 8:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 16.12.22 um 18:10 schrieb Hans Hagen via ntg-context: So the challenge is how to determine bottlenecks. Are there users on this list that have document runs of more than 10 seconds (as reference: the luametatex manual takes

Re: [NTG-context] bottlenecks

2022-12-17 Thread Hans Hagen via ntg-context
On 12/17/2022 1:05 AM, Rik Kabel via ntg-context wrote: The laptop was hot stuff in 2017 with 16GB RAM, 1TB SSD, and a 4K touch screen -- today, not so hot. Due to be replaced next year. so a bit like the surface i have as spare (which was slower than the 2013 precission that i recently

Re: [NTG-context] bottlenecks

2022-12-17 Thread Hans Hagen via ntg-context
On 12/17/2022 10:11 PM, Alan Braslau via ntg-context wrote: With lots of MetaPost, lots of references, lots of figures, lots of tables, lots of bibliography entries, lots of chemical structures, ... mkiv lua stats > node memory usage: 2491 attribute, 76 boundary, 84 dir, 1167 glue, 85

Re: [NTG-context] issues with variable fonts in latest

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 5:00 PM, Pablo Rodriguez via ntg-context wrote: Dear Hans, since you mentioned current latest (2022.12.09 16:34) regarding to variable fonts today, I have found the following issues with Recursive (comparing it with https://www.recursive.design/#toolbar): maybe old font cache

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 5:15 PM, Gavin wrote: Hi Hans and List, 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get

Re: [NTG-context] bottlenecks

2022-12-17 Thread Hans Hagen via ntg-context
On 12/17/2022 4:05 PM, Rik Kabel via ntg-context wrote: On 2022-12-17 04:48, Hans Hagen via ntg-context wrote: On 12/17/2022 1:05 AM, Rik Kabel via ntg-context wrote: The laptop was hot stuff in 2017 with 16GB RAM, 1TB SSD, and a 4K touch screen -- today, not so hot. Due to be replaced next

Re: [NTG-context] bottlenecks

2022-12-17 Thread Hans Hagen via ntg-context
On 12/17/2022 5:02 PM, Henning Hraban Ramm via ntg-context wrote: Am 16.12.22 um 21:02 schrieb Hans Hagen via ntg-context: (2) This is a 720 page novel (first run with this LMTX version, some fonts were still uncached): mkiv lua stats  > runtime: 19.275 seconds, 720 processed pages,

Re: [NTG-context] bottlenecks

2022-12-18 Thread Hans Hagen via ntg-context
On 12/18/2022 2:14 PM, mf via ntg-context wrote: > ... So we gained a lot in the meantime. mkiv lua stats  > loaded fonts: 27 files: lmmono10-regular.otf, texgyrepagella-math.otf, dejavusansmono.ttf, gfsneohellenic.otf, firasans-bolditalic.otf, firasans-regular.otf,

Re: [NTG-context] bottlenecks

2022-12-18 Thread Hans Hagen via ntg-context
On 12/18/2022 4:21 PM, mf via ntg-context wrote: Il 18/12/22 14:49, Hans Hagen via ntg-context ha scritto: On 12/18/2022 2:14 PM, mf via ntg-context wrote: > ... So we gained a lot in the meantime. mkiv lua stats  > loaded fonts: 27 files: lmmono10-regular.otf, texgyrepagella-ma

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Hans Hagen via ntg-context
On 12/14/2022 9:45 PM, Thangalin via ntg-context wrote: Inkscape can export the gradients to PDF. I was hoping to eliminate Inkscape as an extra piece of software users have to download to make sure their SVG images are rendered correctly. By containerizing ConTeXt, MetaPost can be swapped for

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 4:20 AM, Gavin via ntg-context wrote: Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has

Re: [NTG-context] Writing Tabular with \Vert

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 12:39 PM, Ursula Hermann via ntg-context wrote: Dear List, In this tabular I wanted to set \Vert. But when I compile it, \bTABLE \bTR \bTD \Vert r1c1\Vert \eTD \bTD \bf r1c2 \eTD \bTD \bf r1c3 \eTD \bTD \bf r1c4 \eTD \eTR \bTR \bTD r2c1 \eTD \bTD r2c2 \eTD

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Hans Hagen via ntg-context
On 12/17/2022 6:27 PM, Marco via ntg-context wrote: On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. It seems that one can fool ConTeXt into typing a file without suffix by giving the path to that file… That works, I can confirm.

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 3:05 PM, Gavin via ntg-context wrote: Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine

[NTG-context] upload

2022-12-21 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version of lmtx. This version uses a new counter and dimension model deep down (\newinteger and \newdimension) which is more efficient in certain cases. From the user's perspective there is no difference between \newcount and \newdimen although there are some fundamental

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
On 12/5/2022 7:23 PM, Pablo Rodriguez via ntg-context wrote: On 12/5/22 18:30, Hans Hagen via ntg-context wrote: On 12/5/2022 5:39 PM, Pablo Rodriguez via ntg-context wrote: [...] it would be great to have something like: \loadsection[1] [2] [3] [...] that is not flexible

Re: [NTG-context] issue with OT feature in LMTX

2022-12-04 Thread Hans Hagen via ntg-context
On 12/3/2022 2:04 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample (using current latest from 2022.12.01 13:05): \definefallbackfamily[mainface][rm][Noto Emoji] [range={0x1F004-0xFE837}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella]

Re: [NTG-context] two issues with variable fonts

2022-12-04 Thread Hans Hagen via ntg-context
On 12/3/2022 10:29 AM, Pablo Rodriguez via ntg-context wrote: On 12/3/22 01:01, Hans Hagen via ntg-context wrote: On 12/2/2022 8:17 PM, Hans Hagen via ntg-context wrote: Also in the last instances (at least, pages 19 to 25), kerning or interletter spacing clearly needs to be improved

[NTG-context] upload

2022-12-09 Thread Hans Hagen via ntg-context
Hi, A new upload: - we had a dir node leak (in some cases), fixed - some fun stuff that i couldn't resist adding: % \bgroup % \unprotect % \catcode`< \lettercatcode \ifnum 1 = 2 n \else y \fi \ifnum 1 > 2 n \else y \fi \ifnum 1 < 2 y \else n \fi \ifnum 1 != 2 y \else n \fi

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 1:39 AM, Joel wrote: Thanks so much! It took some work for me to figure out how to make it work, but it now works great! i added \firstsectionpage and \lastsectionpage that (i guess) Pablo will document at the wiki Hans

Re: [NTG-context] \hpos in math - Half solved

2022-12-08 Thread Hans Hagen via ntg-context
On 12/8/2022 8:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Mikael, These features are amazing! Many many thanks! Thanks also to Gavin for having stated so precisely these kinds of needs, so that Hans and Mikael could come up with this solution. Gavin, good luck with your project, and

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Hans Hagen via ntg-context
On 12/14/2022 5:46 AM, Thangalin via ntg-context wrote: Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; viewBox="0 0 115.669 115.669"> \stopbuffer \starttext

Re: [NTG-context] Non-standard font alternatives

2022-12-13 Thread Hans Hagen via ntg-context
On 12/13/2022 9:15 AM, Matthew McCabe via ntg-context wrote: Hi list, I'm looking to import a font with medium and light weights (in this case Roboto) and define font alternatives so one can quickly switch to light text just as one would switch to bold text. There is a stackexchange answer

Re: [NTG-context] \hpos in math - Half solved

2022-12-07 Thread Hans Hagen via ntg-context
On 12/7/2022 1:42 PM, Gavin via ntg-context wrote: Hi List, I solved my original problem 2, allowing me to reuse the same \hpos labels in different equations without interference. I added an equation counter and set up my custom math version of \hpos to use the count as part of the label

Re: [NTG-context] Heisenbug in current?

2022-11-23 Thread Hans Hagen via ntg-context
On 11/23/2022 11:01 PM, Thomas A. Schmitz via ntg-context wrote: Hi all, I'm very hesitant to report this because I can't reproduce it consistently: some of my files don't compile with bizarre font errors, sometimes. At first I thought it may be a hardware problem on my laptop, but I've seen

Re: [NTG-context] annotated equations

2022-11-18 Thread Hans Hagen via ntg-context
On 11/18/2022 5:25 PM, Aditya Mahajan via ntg-context wrote: On Thu, 17 Nov 2022, Henning Hraban Ramm via ntg-context wrote: Here’s an interesting example for annotated equations, done with LaTeX/TikZ: https://mastodon.social/@sibin/109349703357749846 I guess something similar is possible

Re: [NTG-context] Font expansion enabled by default with the latest upload

2022-11-21 Thread Hans Hagen via ntg-context
On 11/21/2022 10:20 AM, Max Chernoff via ntg-context wrote: Hi Hans, Font expansion (hz) seems to be enabled by default with the latest upload. If I compile this document locally with ConTeXt "2022.11.18 13:22": \showframe % \definefontfeature[default][default][expansion=quality]

Re: [NTG-context] LMTX: reimplementing texquotes as OTF feature

2022-11-11 Thread Hans Hagen via ntg-context
On 11/11/2022 10:19 PM, Leah Neukirchen via ntg-context wrote: Hi, as Hans recommended in the last video meeting, I tried to implement the texquotes feature using OTF features, and hit two problems: 1) To support German quotes as well, I have two ligatures that end up as the same glyph:

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Hans Hagen via ntg-context
On 11/16/2022 10:09 PM, Thomas A. Schmitz via ntg-context wrote: On 11/16/22 21:51, Denis Maier via ntg-context wrote: Just a quick question regarding this? Is xml.filter equivalent to \xmlfilter? If so, how do you pass the match to a command as you'd do with \xmlfilter? I'm still digesting

Re: [NTG-context] Xml filtering in Lua

2022-11-17 Thread Hans Hagen via ntg-context
On 11/16/2022 8:56 PM, mf via ntg-context wrote: This works: local metadata = xml.filter (t, '../../topics/topic[@t:id=="' .. ch_id .. '"]') also this: local lpath = string.format('../../topics/topic[@t:id=="%s"]', ch_id) local metadata = xml.filter (t, lpath) It looks like xml.filter

Re: [NTG-context] annotated equations

2022-11-17 Thread Hans Hagen via ntg-context
On 11/17/2022 1:46 PM, Henning Hraban Ramm via ntg-context wrote: Here’s an interesting example for annotated equations, done with LaTeX/TikZ: https://mastodon.social/@sibin/109349703357749846 I guess something similar is possible with node anchors in ConTeXt/MetaPost? Mikael and I played

Re: [NTG-context] \autoinsertedspace fails following \nbsp under LMTX

2022-11-17 Thread Hans Hagen via ntg-context
On 11/17/2022 6:43 AM, Rik Kabel via ntg-context wrote: ConTeXt  ver: 2022.11.14 22:58 LMTX on W11 x64 I have been testing the recently added \autoinsertedspace, and I found an odd failure. fixed n next upload -

Re: [NTG-context] accessing ital axis in variable font

2022-12-01 Thread Hans Hagen via ntg-context
On 12/1/2022 7:54 PM, Pablo Rodriguez via ntg-context wrote: Dear list, using the Literata variable fonts from https://github.com/googlefonts/literata/tree/main/fonts/variable, I have the following source: \definefontfeature[myaxis][axis={weight=500, italic=1}]

[NTG-context] lmtx upload

2022-12-01 Thread Hans Hagen via ntg-context
Hi, I uploaded lmtx. Most significate: - A slightly different implementaqtion of font modes 'base' and 'none' (hopefully no side effects). - A few math updates (like primes done a bit differently, we made some choices here). - Limited support for colr format 1 as needed for the rather

Re: [NTG-context] filling buffers in cld documents

2022-11-27 Thread Hans Hagen via ntg-context
On 11/27/2022 1:05 PM, damien thiriet via ntg-context wrote: Hi, I am used to giving very extensive feedbacks to my pupils. These are buffers with xtables flushing lua vectors. Here is their basic structures: * an environment that stores xtables. Turned into MWE, look like:   

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

2023-01-16 Thread Hans Hagen via ntg-context
On 1/16/2023 3:21 AM, Aditya Mahajan via ntg-context wrote: On Fri, 30 Dec 2022, Hans Hagen via ntg-context wrote: On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: Hi List, The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE: \usemodule[tikz

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

2023-01-16 Thread Hans Hagen via ntg-context
On 1/16/2023 6:23 PM, Aditya Mahajan via ntg-context wrote: On Mon, 16 Jan 2023, Henri Menke via ntg-context wrote: 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

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Hans Hagen via ntg-context
On 1/18/2023 12:36 AM, Bruce Horrocks via ntg-context wrote: ConTeXt ver: 2023.01.04 The following MWE won't compile because of the \dummycommand line even though it is a comment. Not sure whether it's a minor bug or an unavoidable aspect of allowing embedded Lua. \startluacode --

Re: [NTG-context] wider font effect as font feature?

2023-01-20 Thread Hans Hagen via ntg-context
On 1/20/2023 1:59 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I wanted to use a font with slightly wider effect, such as in: \definetweakedfont[wider][xscale=1.075] Is there any way that it could be applied as a font feature? Or how could I apply this effect everytime a

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-26 Thread Hans Hagen via ntg-context
On 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote: On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context wrote: Hi, Thanks Hraban for the information and the link to the article by Hans and Mikael about the math fonts in Lucida. I very much appreciated that article: one

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-26 Thread Hans Hagen via ntg-context
On 1/26/2023 10:52 PM, Otared Kavian via ntg-context wrote: Indeed the command \colonequals give the precise expected alignment for the combination glyph « := ». Befors changing the combination « := » to \columnequals in my documents, I am wondering whether one could add a small lua code in

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

2023-01-27 Thread Hans Hagen via ntg-context
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 wrote: \directlua{ userdata = userdata or {} function userdata.test() tex.print("\string\\numex

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

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 12:03 PM, Henri Menke via ntg-context wrote: How much do you think would break if protected luacall were treated like protected macros after \the in the engine? That kind of incompatibility is no option (I'm not going to analyze it for mkiv let along other macro package usage

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Hans Hagen via ntg-context
On 1/27/2023 4:22 AM, Joel via ntg-context wrote: Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends

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

2023-01-27 Thread Hans Hagen via ntg-context
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 \directlua every time (and is therefore susceptible to surrounding \catcode shenanigans) and it expands in at

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-30 Thread Hans Hagen via ntg-context
On 1/29/2023 5:03 PM, Yaroslav Beltukov via ntg-context wrote: Dear Hans and all contributors, I really appreciate ConTeXt for the right way to obtain high quality documents. I'm a theoretical physicist and I'm going to write a book. I think ConTeXt is the right choice to work with a number

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread Hans Hagen via ntg-context
On 1/30/2023 1:14 AM, jbf via ntg-context wrote: Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument

Re: [NTG-context] Best way to access casul fonts

2023-01-30 Thread Hans Hagen via ntg-context
On 1/30/2023 6:49 PM, Henning Hraban Ramm via ntg-context wrote: Am 30.01.23 um 18:24 schrieb Mattias Märka via ntg-context: \definefontstyle is still bugging me. I gather from previous threads that it should be possible to define a new font style for casual and use that via a font switch, but

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thank you for the hint: indeed \setupmathematics[collapsing=2] does exactly what I was looking for… Now, like many others, I am just waiting for the 3145 pages document about maths in ConTeXt :-) It will be 3147 because we

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 6:58 PM, Aditya Mahajan via ntg-context wrote: On Fri, 27 Jan 2023, Hans Hagen via ntg-context wrote: On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thank you for the hint: indeed \setupmathematics[collapsing=2] does exactly what I was looking for… Now

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

2023-01-26 Thread Hans Hagen via ntg-context
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") end } \tt \protected\def\test{\directlua{userdata.test()}} \meaning\test\par \edef\x{\test}\meaning\x\par

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Hans Hagen via ntg-context
On 1/28/2023 9:26 PM, Kalouguine Andre via ntg-context wrote: On 28.01.2023 17:37, Pablo Rodriguez via ntg-context wrote: Using Fedora 37 (and having just installed Okular), I see that annotations are tricky to open in Okular. First you have to select the Annotations tab on the left pane, go

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Hans Hagen via ntg-context
On 1/18/2023 6:47 PM, Pablo Rodriguez via ntg-context wrote: from what I understand is that undefined TeX commands cannot be added to Lua comments. Indeed. Of course we could have some 'ignore undefined command' feature but that cripples the engine as well as then also never gives warning in

Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Hans Hagen via ntg-context
On 11/5/2022 4:30 PM, Pablo Rodriguez via ntg-context wrote: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else

Re: [NTG-context] how to simulate \hss in luametatex?

2022-11-11 Thread Hans Hagen via ntg-context
On 11/11/2022 10:53 AM, Max Chernoff via ntg-context wrote: Hi, I want to simulate \hss in lua end in ConTeXt/luametatex environment. For example, ```ConTeXt a{\raise 1.5ex\hbox to 0pt{\hss b}}c ``` And in lua, I do as follows(part of my app seen in attachment): Your code doesn't

Re: [NTG-context] node.setglue broken in LuaMetaTeX

2022-11-07 Thread Hans Hagen via ntg-context
On 11/7/2022 11:40 AM, Max Chernoff via ntg-context wrote: Hi Hans, Using node.setglue in LuaMetaTeX sets all of the glue components to zero. This example: \startluacode local stretch_order = "stretch_order" local shrink_order = "shrink_order" if

Re: [NTG-context] font features

2022-11-03 Thread Hans Hagen via ntg-context
On 11/3/2022 12:52 PM, Herbert Voss via ntg-context wrote: Am 03.11.22 um 12:37 schrieb Thomas A. Schmitz via ntg-context: Hi, is there an easy way to get a list of all features that a font has and typeset a sample text to see the result of every single feature? There probably is, but I

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Hans Hagen via ntg-context
On 11/3/2022 9:32 PM, Henning Hraban Ramm via ntg-context wrote: I’m constantly struggling with dimension calculations. Is there anything I can read about the possibilities and limitations? e.g. with \definemeasure[PageWidth][132mm] none of the following works: \definemeasure[FlapWidth][0.8 *

Re: [NTG-context] font features

2022-11-03 Thread Hans Hagen via ntg-context
On 11/3/2022 2:03 PM, Thomas A. Schmitz via ntg-context wrote: On 11/3/22 13:27, Henning Hraban Ramm via ntg-context wrote: If it works for you, then it’s a problem of my installation, otherwise a regression in current LMTX... No, I get the same error message, this looks promising but doesn't

Re: [NTG-context] OpenBSD binaries

2022-11-04 Thread Hans Hagen via ntg-context
On 11/4/2022 9:24 AM, damien thiriet via ntg-context wrote: Hi, I have two question regarding OBSD binaries: 1) the building farm holds two binaries: current -stable version (or -release?) and the previous version. Since upgrading OBSD with sysupgrade is very easy, but AFAIU works only to

Re: [NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-14 Thread Hans Hagen via ntg-context
On 11/12/2022 12:02 PM, Werner Schmidt via ntg-context wrote: Dear list, I like to use the Iosevka as mono typeface. It worked in the past, but sadly context crashes now with the following error. fatal error: /font-dsp-macro.lua:2336: attempt to index a nil value (local 'sequence')

Re: [NTG-context] \xmldocument vs #1 in \xmlsetsetup

2022-11-14 Thread Hans Hagen via ntg-context
On 11/14/2022 7:28 PM, Pablo Rodriguez via ntg-context wrote: On 11/14/22 14:00, Denis Maier via ntg-context wrote: Hi, most examples in the mkiv-xml manual use #1 with \xmlsetsetup, e.g. \startxmlsetups xml:demo:base   \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups

[NTG-context] new upload

2022-11-14 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version. New is that we can apply hz to math, although currently we have configured it as experiment. \setupbodyfont[pagella] % \startluacode % fonts.expansions.vectors.math = { % [0x002B] = { 4, 0 }, -- + % [0x2212] = { 4, 0 }, -- - %

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
On 3/7/2023 6:54 PM, Gerion Entrup via ntg-context wrote: Hi, I'm trying to typeset several pictures as a floatcombination but not in the form of strict cells of a matrix. Here is some ASCII art to demonstrate the positions of the pictures: --- |

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Hans Hagen via ntg-context
On 3/8/2023 9:29 AM, Floris van Manen via ntg-context wrote: Does any one know an answer? When wrapping a page in \startTEXpage the empty lines disappear. There is probably a reason to it. Any hints as to remove that difference? .Floris e.g. \starttext   een twee drie vier vijf zes zeven\\

Re: [NTG-context] cannot compile with MkIV

2023-03-06 Thread Hans Hagen via ntg-context
On 3/6/2023 7:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \null \stoptext Trying to compile it with "context --luatex", I get the error message copied bellow. Could anyone confirm that the format file for MkIV (LuaTeX) cannot be

Re: [NTG-context] /CropBox overflows /MediaBox

2023-03-06 Thread Hans Hagen via ntg-context
On 3/6/2023 7:02 PM, Pablo Rodriguez via ntg-context wrote: But I’m afraid that it is wrong to have a /TrimBox larger than the /MediaBox for the same page. Afaik the standard permits is to one gets what one asks. I will add some checks plus a warning and hopefully not break something. Hans

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Hans Hagen via ntg-context
On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: \null\\ I prefer \crlf because \null is well, can you guess? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27

Re: [NTG-context] Bug in maths environment: thematrix

2023-03-12 Thread Hans Hagen via ntg-context
On 3/9/2023 2:45 PM, Otared Kavian via ntg-context wrote: Hi Hans, I noticed that in some situations the command \thematrix does not show all its arguments correctly: some parts are omitted in the typeset formula. In some occasions adding some groupings solves the issue, but not always. I

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

2023-03-14 Thread Hans Hagen via ntg-context
On 3/13/2023 10:55 PM, Gavin wrote: On Mar 13, 2023, at 3:44 PM, Hans Hagen via ntg-context wrote: On 3/9/2023 2:04 PM, Gavin via ntg-context wrote: \startformula \unit{3 meter} \qquad \unit{6 Meter} \qquad \unit{3 mEtEr} \qquad \stopformula Units with lowercase prefixes (c, k, n

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

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 5:33 PM, Gavin via ntg-context wrote: Hi Alan, Hans, and List, On Mar 13, 2023, at 8:10 PM, Alan Braslau via ntg-context wrote: On Mon, 13 Mar 2023 15:55:50 -0600 Gavin via ntg-context wrote: you can look at phys-dim and see plenty of short and long keys and making all case

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

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 7:03 PM, Gavin via ntg-context wrote: I’d like to better understand how the \unit{} command works and why those choices were made. Some of the choices seem to be “asking for troubles,” but perhaps they are essential for some users. I wonder if Alan was using context when the

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

2023-03-14 Thread Hans Hagen via ntg-context
On 3/14/2023 7:14 PM, Alan Braslau via ntg-context wrote: On Tue, 14 Mar 2023 12:03:23 -0600 Gavin wrote: I’d really like one of the acceptable forms to be the form prescribed by Le Système international d'unités Maybe the french title is one of the reasons for the USA not picking up on

[NTG-context] update

2023-03-20 Thread Hans Hagen via ntg-context
Hi, I updated LMTX. Most improvements are in 'math' as Mikael and I keep mailing down some details that bother us. We also have some updates in the math fonts that Daniel Flipo maintains so the repertoire of alternatives with all-right math support grows. As a side note: lmtx installs

Re: [NTG-context] Did dotless i disappear ?

2023-03-13 Thread Hans Hagen via ntg-context
On 3/13/2023 4:28 PM, Otared Kavian via ntg-context wrote: Hi Hans, I just noticed that the dotless i « \i » is not anymore recognized in ConTeXt. Of course one can nowadays find other ways to have it typeset, but in old documents which are included as inputs one has to correct this manually

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 Hans Hagen via ntg-context
On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: Hello list: This is under a fresh TeXLive installation. Sort as to put aside any texlive prepackaged issues. And the followign lines is the output of the error I've been having with the call of context on a recent texlive installation by

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 Hans Hagen via ntg-context
On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' Maybe your OSFONTDIR is pointing to empty. Does mtxrun --script font --reload work Hans

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 Hans Hagen via ntg-context
On 3/25/2023 10:36 PM, Carlos via ntg-context wrote: On Sat, Mar 25, 2023 at 09:45:25PM +0100, Hans Hagen via ntg-context wrote: On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' Maybe your

Re: [NTG-context] Spacing problem around decimal point

2023-03-26 Thread Hans Hagen via ntg-context
On 3/26/2023 4:20 AM, Gavin via ntg-context wrote: Hi List, I’m getting strange spaces around some decimal points after a clean LMTX install. MWE: \starttext \startformula v = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This produces the result attached below. The 1.32 looks

Re: [NTG-context] \definemathfence broken in latest

2023-03-26 Thread Hans Hagen via ntg-context
On 3/26/2023 8:18 AM, Mikael Sundqvist via ntg-context wrote: I think command=yes was changed into define=yes. indeed. consistency across \definesomeghing Hans - Hans Hagen | PRAGMA ADE

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-26 Thread Hans Hagen via ntg-context
On 3/26/2023 3:08 PM, Carlos via ntg-context wrote: On Sun, Mar 26, 2023 at 01:04:30PM +0200, Henning Hraban Ramm via ntg-context wrote: Am 25.03.23 um 23:42 schrieb Carlos via ntg-context: fonts | names | 3092 afm files checked, okay fonts | names | identifying tree

Re: [NTG-context] Spacing problem around decimal point

2023-03-26 Thread Hans Hagen via ntg-context
On 3/26/2023 4:20 AM, Gavin via ntg-context wrote: Hi List, I’m getting strange spaces around some decimal points after a clean LMTX install. MWE: \starttext \startformula v = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This produces the result attached below. The 1.32 looks

Re: [NTG-context] Bug in searching TTC fonts for the script of mtxrun

2023-03-22 Thread Hans Hagen via ntg-context
On 3/22/2023 7:15 AM, Li Yanrui (李延瑞) via ntg-context wrote: Hi Hans, I have already installed some Chinese TTC fonts, e.g. NotoSerifCJK-Regular.ttc. But when I use mtxrun command to search them, I get an error. $ mtxrun --script font --list --file NotoSerifCJK-Regular.ttc lua error :

Re: [NTG-context] Bug in tabulate

2023-03-21 Thread Hans Hagen via ntg-context
On 3/21/2023 7:20 AM, Li Yanrui (李延瑞) via ntg-context wrote: Hi, Please see the following example: \startTEXpage[offset=5mm] \starttabulate[|c|c|c|] \VL 1 \VL 2 \VL 3\VL\NR \stoptabulate \blank \starttabulate[|c|c|c|] \NC 1 \NC 2 \NC 3\NR \stoptabulate \stopTEXpage In its result, there is a

Re: [NTG-context] Problem with \stoptabulate

2023-03-21 Thread Hans Hagen via ntg-context
On 3/21/2023 12:34 AM, Bruce Horrocks via ntg-context wrote: I have a technical manual style document that requires a lot of examples to be included. They can easily be typeset with a table so I thought I would save myself some typing by defining macros for the various bits of a tabulate

Re: [NTG-context] building from source

2023-03-21 Thread Hans Hagen via ntg-context
On 3/21/2023 12:14 PM, Rainer J.H. Brandt via ntg-context wrote: Dear Context developers, I want to build Context MkXL from source and use that. I went to the download page http://www.pragma-ade.com/download-1.htm and downloaded the 2023-03-20 version:

Re: [NTG-context] Bug in searching TTC fonts for the script of mtxrun

2023-03-22 Thread Hans Hagen via ntg-context
On 3/22/2023 9:58 AM, Li Yanrui (李延瑞) via ntg-context wrote: Hans Hagen via ntg-context <mailto:ntg-context@ntg.nl>> 于2023年3月22日周三 15:51写道: On 3/22/2023 7:15 AM, Li Yanrui (李延瑞) via ntg-context wrote: > Hi Hans, > > I have already installed some Chin

Re: [NTG-context] Bug in searching TTC fonts for the script of mtxrun

2023-03-22 Thread Hans Hagen via ntg-context
On 3/22/2023 11:10 AM, Hans Hagen via ntg-context wrote: http://liyanrui.github.io/share/fonts/fonts-noto-cjk.zip <http://liyanrui.github.io/share/fonts/fonts-noto-cjk.zip> Ok. I'll check it. next upload: >mtxrun --script font --list --file NotoSerifCJK-Regular.ttc familyname

Re: [NTG-context] extra lines in PDF annotations

2023-03-13 Thread Hans Hagen via ntg-context
On 3/13/2023 4:22 PM, Pablo Rodriguez via ntg-context wrote: On 3/13/23 16:06, Pablo Rodriguez via ntg-context wrote: Dear list, using current latest from 2023.03.10 12:18, I have this XML sample: I apologize, XML source doesn’t have lines inside, such as in: I

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-13 Thread Hans Hagen via ntg-context
On 3/12/2023 2:24 PM, Bruce Horrocks via ntg-context wrote: I have an existing macro that I'd like to extend. The current definition is \define[3]\mycommand{...} which I'd like to extend to take an optional 4th parameter plus an optional setup parameter. Thus I currently invoke it as:

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

2023-03-13 Thread Hans Hagen via ntg-context
On 3/9/2023 2:04 PM, Gavin via ntg-context wrote: \startformula \unit{3 meter} \qquad \unit{6 Meter} \qquad \unit{3 mEtEr} \qquad \stopformula Units with lowercase prefixes (c, k, n). \startformula \unit{3cm} \qquad \unit{6kg} \qquad \unit{3ns} \qquad \stopformula Units with

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Hans Hagen via ntg-context
On 2/24/2023 11:37 PM, Rik Kabel via ntg-context wrote: Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') %

[NTG-context] update

2023-02-23 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version. We further improved Antykwa support, \switchtobodyfont[antykwa] \startTEXpage[offset=1dk] \im{ f' = f'' = f''' = f = a + b + \ldots + c + \overbar{x} + \overbar{S} + \bar{x} + \widebar{x} } \im{

Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-25 Thread Hans Hagen via ntg-context
On 2/25/2023 5:01 PM, Joel via ntg-context wrote: I have a list like this: \startitemize[1] \item fish \item eggs \item milk \stopitemize Is there any command in ConTeXt to make this display the items as a comma-separated list, like this: fish, eggs, milk Or a semi-colon-separated list?

Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-26 Thread Hans Hagen via ntg-context
On 2/25/2023 5:01 PM, Joel via ntg-context wrote: I have a list like this: \startitemize[1] \item fish \item eggs \item milk \stopitemize Is there any command in ConTeXt to make this display the items as a comma-separated list, like this: fish, eggs, milk Or a semi-colon-separated list?

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Hans Hagen via ntg-context
On 3/2/2023 11:49 AM, Denis Maier via ntg-context wrote: Ok, I’ve somehow managed to isolate the issue in my real document. There, the issue happens only when a new paragraph starts after the tabulate. If there’s nothing after the tabulate, the footnotes appears... Also, if I’m using

Re: [NTG-context] Math issue

2023-02-16 Thread Hans Hagen via ntg-context
On 2/16/2023 6:05 PM, Willi Egger via ntg-context wrote: Hi math gurus, I should typeset a couple of simple math formulae. However I do not get the desired result. I attach my output as pdf. 1. Why is the \times 12 in the denominator although the fraction is grouped? — I tried also the

<    4   5   6   7   8   9   10   11   12   >