Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-11 Thread Hans Hagen via ntg-context
On 10/10/2022 12:12 AM, Joel via ntg-context wrote: I'd like to add some area for readers to write in the margins of some text. This would leave three lines, like this to the right of the text. __ __ __ The passage would take up about the left 60% of the text and the margin note s

Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Hans Hagen via ntg-context
On 10/12/2022 8:49 PM, Denis Maier via ntg-context wrote: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Henning Hraban Ramm via ntg-context Gesendet: Mittwoch, 12. Oktober 2022 10:15 An: ntg-context@ntg.nl Cc: Henning Hraban Ramm Betreff: Re: [NTG-context] \quotation, protru

Re: [NTG-context] \text{...} inside \sqrt is tiny

2022-10-13 Thread Hans Hagen via ntg-context
On 10/13/2022 2:38 PM, Gavin via ntg-context wrote: Hi List, When I use text inside a radical, the text is script-script size. $\text{Radius} = \sqrt{\text{Area}/\pi}$ It should be normal size. Any ideas for a fix? I stumbled on this issue when working with \units, but it is not specific to

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-13 Thread Hans Hagen via ntg-context
On 10/13/2022 7:41 PM, Pablo Rodriguez via ntg-context wrote: On 10/13/22 00:50, Max Chernoff via ntg-context wrote: On Wed, 2022-10-12 at 13:14 +0200, Leah Neukirchen wrote: [...] The last version of font-cff.lua should also copy the hinting-related values of the CFF properly (/BlueScale, /Ste

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-13 Thread Hans Hagen via ntg-context
On 10/13/2022 8:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 13.10.22 um 19:41 schrieb Pablo Rodriguez via ntg-context: On 10/13/22 00:50, Max Chernoff via ntg-context wrote: On Wed, 2022-10-12 at 13:14 +0200, Leah Neukirchen wrote: [...] The last version of font-cff.lua should also co

Re: [NTG-context] atan2 function

2022-10-14 Thread Hans Hagen via ntg-context
On 10/14/2022 2:35 AM, Max Chernoff via ntg-context wrote: Hi, The angle function doesn't appear to provide the same calculation as my atantwo in all cases. They both give the same results, but "angle" gives a result in degrees while "atantwo" gives a result in radians. This demo: \star

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-14 Thread Hans Hagen via ntg-context
On 10/13/2022 1:52 PM, Gavin via ntg-context wrote: Hi Oli, Thank four your effort. I found out, that the following definition of a new unit, i called it SI, results also in a correct spaceing in the math environment: \defineunit[SI][alternative=text] It seems, that the option alternative=t

[NTG-context] new upload

2022-10-14 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version. Apart from a few fixes / extensions already mentioned here (or known to those who wanted it) the main changes are in the math goodie files (work in progress, we will clean them up later) as part of improving the rendering of math. Hans

Re: [NTG-context] issues with current latest

2022-10-15 Thread Hans Hagen via ntg-context
On 10/15/2022 12:46 AM, Max Chernoff via ntg-context wrote: On Fri, 2022-10-14 at 16:38 -0600, Alan Braslau wrote: On Fri, 14 Oct 2022 16:33:12 -0600 Max Chernoff wrote: Do you know how to rebuild the format? I've tried the following to no avail: --script mtx-context I believe that you hav

Re: [NTG-context] issues with current latest

2022-10-15 Thread Hans Hagen via ntg-context
On 10/15/2022 12:33 AM, Max Chernoff via ntg-context wrote: Hi Alan, On Fri, 2022-10-14 at 16:20 -0600, Alan Braslau wrote: On Fri, 14 Oct 2022 15:38:52 -0600 Max Chernoff via ntg-context wrote: $ context --luatex test.tex mtx-context | redirect luametatex -> luatex: luatex --lua

Re: [NTG-context] new upload

2022-10-15 Thread Hans Hagen via ntg-context
On 10/14/2022 4:14 PM, Pablo Rodriguez via ntg-context wrote: On 10/14/22 10:21, Hans Hagen via ntg-context wrote: Hi, I uploaded a new version. Apart from a few fixes / extensions already mentioned here (or known to those who wanted it) the main changes are in the math goodie files (work in

Re: [NTG-context] (any) neovim users?

2022-10-15 Thread Hans Hagen via ntg-context
On 10/14/2022 5:00 PM, Alan Braslau via ntg-context wrote: A recent upgrade of the editor neovim leads to the following error when using %&context identification at the head of .tex source files. Error detected while processing BufReadPost Autocommands for "*": Error executing lua callback: /u

Re: [NTG-context] ToC filler dots not aligned

2022-10-15 Thread Hans Hagen via ntg-context
On 10/14/2022 9:50 PM, Pablo Rodriguez via ntg-context wrote: On 10/14/22 17:29, Schister, Roman via ntg-context wrote: Hi, If I typeset a table of contents with the latest version of ConTeXt on my computer (2022.09.11 20:44 LMTX), the filler dots used in list alternative C aren’t aligned [...]

Re: [NTG-context] new upload

2022-10-15 Thread Hans Hagen via ntg-context
On 10/15/2022 10:48 AM, Pablo Rodriguez via ntg-context wrote: On 10/15/22 09:41, Hans Hagen via ntg-context wrote: On 10/14/2022 4:14 PM, Pablo Rodriguez via ntg-context wrote: [...] Many thanks for the new version, Hans. I have discovered that it includes in tex/texmf-context/source

Re: [NTG-context] new upload

2022-10-17 Thread Hans Hagen via ntg-context
On 10/17/2022 8:43 AM, Otared Kavian via ntg-context wrote: I use Lucida in my documents and did not notice any problem with the integrals and other large operators. Do you mean in the future I have to update to a new version of Lucida (and pay again…) or will future versions of LuaMetaTeX han

Re: [NTG-context] new upload

2022-10-17 Thread Hans Hagen via ntg-context
On 10/17/2022 3:38 AM, Aditya Mahajan via ntg-context wrote: On Sun, 16 Oct 2022, Mikael Sundqvist via ntg-context wrote: Hi, On Sun, Oct 16, 2022 at 6:07 PM Aditya Mahajan via ntg-context wrote: On Fri, 14 Oct 2022, Hans Hagen via ntg-context wrote: Hi, I uploaded a new version. Apart

Re: [NTG-context] new upload

2022-10-17 Thread Hans Hagen via ntg-context
On 10/17/2022 7:12 PM, Pablo Rodriguez via ntg-context wrote: On 10/15/22 11:28, Hans Hagen via ntg-context wrote: […] just run twice as the script will pick up Hi Hans, I have tried updating ConTeXt in Windows this morning and I’m afraid it hasn't worked. Until I can manage this, I th

Re: [NTG-context] Missing parinitskips in \normalizelinemode=0

2022-10-19 Thread Hans Hagen via ntg-context
On 10/19/2022 3:01 AM, Max Chernoff via ntg-context wrote: Hi Hans, When running in \normalizelinemode=0, the \parinitleftskip and \parinitrightskip nodes are either nonexistant or invisible from Lua, causing tex.linebreak to not work correctly. This sample file: \enabledirectives[system.c

Re: [NTG-context] \showstruts displaces text in LMTX

2022-10-19 Thread Hans Hagen via ntg-context
On 10/19/2022 8:48 PM, Pablo Rodriguez via ntg-context wrote: Dear list, compiling the following sample with current latest (2022.10.15 10:37): \showframe \showstruts \setuppapersize[A6] \setupnotation[footnote] [alternative=serried] \starttext a\footnote{\input zapf}

Re: [NTG-context] Setting the size of \small

2022-10-21 Thread Hans Hagen via ntg-context
On 10/21/2022 12:59 AM, Leah Neukirchen via ntg-context wrote: Hi, playing around with \definebodyfontenvironment with latest LMTX, I found this possibly buggy behavior: \definebodyfontenvironment[12pt][small=6pt] % x=6pt works here \setupbodyfont[12pt] \starttext normal {\tx tx} {\small small}

[NTG-context] upload

2022-10-21 Thread Hans Hagen via ntg-context
Hi, I updated lmtx ... there are a few fixes for issues reported on the list. In the perspective of updating math the - otherwise unchanged - mkiv variant has also been updated a little. No new commands, just some (already old) experimental font related features gone and replaced by a combine

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Hans Hagen via ntg-context
On 10/23/2022 10:10 PM, Thomas A. Schmitz via ntg-context wrote: On 10/23/22 21:54, Leah Neukirchen wrote: FWIW I get the error too on linux64. OK, found it. File lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg is missing the lines local common  = fonts.goodies.load("common-mat

Re: [NTG-context] Fwd: Hyphenation in multi-language projects

2022-10-24 Thread Hans Hagen via ntg-context
On 10/24/2022 3:08 PM, Steffen Wolfrum wrote: Anfang der weitergeleiteten Nachricht: *Von: *Pablo Rodriguez via ntg-context > *Betreff: **Aw: [NTG-context] Hyphenation in multi-language projects* *Datum: *14. September 2022 um 19:40:53 MESZ *An: *Denis Maier via nt

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Hans Hagen via ntg-context
On 10/25/2022 11:05 AM, Steffen Wolfrum via ntg-context wrote: This does not open the right link. At least on my machine nothing happens when clicking on «litteraturbanken.se ». (And it looks as the link was cropped, only reads the first line?) \setupinteraction

Re: [NTG-context] \autoinsertnextspace regression / discrepancy, mkiv to lmtx

2022-10-26 Thread Hans Hagen via ntg-context
On 10/26/2022 1:52 AM, Rik Kabel via ntg-context wrote: The following example produces different results when processed by LMTX and MkIV. In particular, a space between the X and Y is not auto-inserted by LMTX, while it is by MkIV. \starttexdefinition TEST #1   #1\autoinsertnextspace

Re: [NTG-context] "true" units in LuaMetaTeX

2022-10-27 Thread Hans Hagen via ntg-context
On 10/27/2022 8:11 AM, Max Chernoff via ntg-context wrote: Hi Hans, The unit scanner in LuaMetaTeX fails for any of the "true" dimensions. With this test file: \starttext \vrule width 1truein height 1pt depth 0pt\relax \vrule width 1in height 1pt depth 0pt\relax \

Re: [NTG-context] \autoinsertnextspace regression / discrepancy, mkiv to lmtx

2022-10-27 Thread Hans Hagen via ntg-context
On 10/26/2022 3:35 PM, Rik Kabel via ntg-context wrote: On 2022-10-26 07:43, Hans Hagen via ntg-context wrote: On 10/26/2022 1:52 AM, Rik Kabel via ntg-context wrote: The following example produces different results when processed by LMTX and MkIV. In particular, a space between the X and Y

Re: [NTG-context] "true" units in LuaMetaTeX

2022-10-27 Thread Hans Hagen via ntg-context
On 10/27/2022 10:22 AM, Max Chernoff via ntg-context wrote: Hi Hans, Anyway, I'll check it. Is anyone still using this "true" actually? I've been playing around with LuaMetaLaTeX/LuaMetaPlain recently https://github.com/zauguin/luametalatex and plain.tex uses truein for typesetting

Re: [NTG-context] something’s wrong with \definefontfallback

2022-10-30 Thread Hans Hagen via ntg-context
On 10/30/2022 4:43 PM, Henning Hraban Ramm via ntg-context wrote: This used to work: \definefontfallback[seguiFB]   [file:seguisym.ttf]   [0x0-0xF]   [check=yes,force=no] \definetypeface [contextstart] [ss] [sans]  [segoe] [default][fallbacks=seguiFB] (Intention is to take all mis

Re: [NTG-context] context --autopdf and --showdirectives

2022-11-01 Thread Hans Hagen via ntg-context
On 10/31/2022 11:01 PM, Henning Hraban Ramm via ntg-context wrote: I’d like to configure the default behaviour of "context --autopdf"; since on my Mac I must always write "--autopdf=auto", otherwise context tries to call wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCC instead of e.g.

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 cou

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] \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] 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 up

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 conte

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 status.luatex_engin

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 compil

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] 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') Ples

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 However,

[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 }, -- - % [0x003C]

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 a

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 sup

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 plen

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

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] 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] 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:    \startenvironm

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

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}] \definefontfamily[mainface]

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

2022-12-02 Thread Hans Hagen via ntg-context
On 12/2/2022 6:20 PM, Pablo Rodriguez via ntg-context wrote: On 12/1/22 21:44, Hans Hagen via ntg-context wrote: On 12/1/2022 7:54 PM, Pablo Rodriguez via ntg-context wrote: [...] As explained before, they don’t work for me. How can I access to the italic and the optical size axes? there is

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

2022-12-02 Thread Hans Hagen via ntg-context
On 12/2/2022 7:06 PM, Pablo Rodriguez via ntg-context wrote: Hi Hans, I have two issues with variable fonts (using current latest from yesterday): 1. Using the following sample: \usemodule[fonts-variable] \starttext \showfontvariations[font=file:grenze.ttf] \stoptext With the fonts f

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

2022-12-02 Thread Hans Hagen via ntg-context
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. no clue (ok, a little) sort of fixed but no upload yet (probably next week) Hans

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. no

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] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
On 12/4/2022 11:30 PM, Joel via ntg-context wrote: I can use this code to display page 5 from a PDF: \externalfigure[filename.pdf][page=5] I am making a teacher's guide for a workbook (workbook.pdf). I need to be able to display on the page all pages of a particular section. The teacher's gu

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 5:39 PM, Pablo Rodriguez via ntg-context wrote: On 12/5/22 13:13, Hans Hagen via ntg-context wrote: On 12/4/2022 11:30 PM, Joel via ntg-context wrote: I can use this code to display page 5 from a PDF: [...] \externalfigure[filename.pdf][section=17A] prototype attached (first

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

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 12:39 AM, Gavin via ntg-context wrote: Hello List, I am working on a project which combines graphics with formulas, like this: My code for creating this formula is attached. It works well, but I have a couple of questions that could make it work better. 1) Is there a mathematics

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 6:33 PM, Pablo Rodriguez via ntg-context wrote: On 12/6/22 09:05, Hans Hagen via ntg-context wrote: 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

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this: \definelabel[X][text=] \startTEXpage[offset=1cm] (\X) (\X

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote: On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber

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 inte

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 inte

Re: [NTG-context] extra hyphen in underscore hyphenation

2022-12-08 Thread Hans Hagen via ntg-context
On 12/8/2022 12:33 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte("_") local char = tfmdata.characters[underscore] if not char then return end

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 p

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

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 \placefigure{}{\i

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 I

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 exa

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 cont

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 it

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 ar

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 ar

[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-16 Thread Hans Hagen via ntg-context
On 12/16/2022 10:08 PM, Rik Kabel via ntg-context wrote: Hans, Here are the stats for a 346 page book. Fonts are all cached. Compilation is via a make file which processes this as: context --noconsole --overloadmode=error --batchmode --nonstopmode --nosynctex misquotation_bodyonly.mkv

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 repla

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-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 gluespe

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, firasans-regularitalic.ot

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] \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. \typefile{/Users/kavian

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 \bTD[nr=2]

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] move glyph vertically

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 12:54 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \startluacode fonts.handlers.otf.addfeature { name = "gpos_test", type = "single", data = { [ '¿' ] = 1000, [

Re: [NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 3:53 PM, Gavin via ntg-context wrote: Hi Hans, MIkael and list, I got an unexpected result when I asked for a \mathboxanchored, but then did not use it with a connector. I expected the \mathboxanchored contents to be typeset as usual, without a connector. Instead I got “ ::: c3”

Re: [NTG-context] LMTX: request for \tracinglostchars=3

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 4:23 PM, Leah Neukirchen via ntg-context wrote: Hi, since TeX Live 2021 (TeX 3.141592653), there is - if \tracinglostchars >= 3, make missing characters an error (not just a log message), and always report the character code in hex. LaTeX also enables this by default these d

Re: [NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 9:14 PM, Rik Kabel via ntg-context wrote: With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: \starttext \startxtable   \startxrow     \startxcell   This is a line of text.     \stopxcell     \startxcell

Re: [NTG-context] xtables regression with LMTX 2022-12-21

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 10:19 PM, Pablo Rodriguez via ntg-context wrote: On 12/22/22 21:14, Rik Kabel via ntg-context wrote: With the latest (2022-12-21) LMTX I see a regression in xtables. The following code: […] The problem appears to be LMTX-specific. (I did not save 2022-12-15 for testing, but did not

Re: [NTG-context] Help for using fonts Nupuram

2022-12-23 Thread Hans Hagen via ntg-context
On 12/23/2022 12:00 PM, Alain Delmotte via ntg-context wrote: Hi! I am trying to run the example Hans published on the 1st of December with a new upload. It is about using the variable font Nupuram. I downloaded the font in a big .zip file. It contains: two explaining files and  folder with 

Re: [NTG-context] Help for using fonts Nupuram

2022-12-23 Thread Hans Hagen via ntg-context
sorry, it's mtxrun --generate - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Hans Hagen via ntg-context
On 12/27/2022 2:30 AM, 黄复雄 via ntg-context wrote: Dear Zdeněk Svoboda. I tried your platform, it's great and it will definitely help to promote ConTeXt. Thanks for your work. I am from China and I would like to know, does this platform support CJK fonts (e.g. https://github.com/googlefonts/noto

[NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
Hi, I uploaded lmtx. There have been some additions to tabulate. \starttext % \showboxes % \showstruts \starttabulate[|w(top,3cm)|w(top,3cm)|] \NC test \NC test \par test \NC \NR \NC test \NC test \par test \NC \NR \stoptabulate \starttabulate[|w(top,packed,3cm)|w(top,packed,3cm)|] \NC test \

Re: [NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
On 12/27/2022 6:44 PM, Pablo Rodriguez via ntg-context wrote: On 12/27/22 18:04, Hans Hagen via ntg-context wrote: Hi, I uploaded lmtx. There have been some additions to tabulate. Hi Hans, many thanks for the new upload, but I’m afraid I get this error in LMTX (MkIV works fine

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