[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Max Chernoff via ntg-context
Hi Andrei, Hans, Hraban, On Sun, 2025-07-27 at 17:59 +0300, and...@borisov.dev wrote: > We’ve been working on adding LuaMetaTeX and ConTeXt standalone support > for the Markdown package (https://github.com/Witiko/markdown/pull/557) > and encountered an interesting issue. > > The package loads quit

[NTG-context] Re: Patch to use ls-R files with TeX Live

2025-07-25 Thread Max Chernoff via ntg-context
Hi Hans, On Fri, 2025-07-25 at 08:54 +0200, Hans Hagen via ntg-context wrote: > I've actually been thinking of > filtering: only add files to the database that matter for context which > leaves out complete subtrees. That seems like a good idea to me, and should also speed up the filename databas

[NTG-context] Patch to use ls-R files with TeX Live

2025-07-24 Thread Max Chernoff via ntg-context
Hi Hans, TeX Live contains ~31 times as many files as the ConTeXt distribution, so running "mtxrun --generate" is relatively slow. However, TeX Live already generates a filename index for all its files, so if we use that instead of traversing the filesystem, "mtxrun --generate" runs quite a bit qu

[NTG-context] Re: SPR: was Re: Re: language in tagging and export

2025-07-15 Thread Max Chernoff via ntg-context
Hi Jim, On Tue, 2025-07-15 at 10:06 -0300, Jim wrote: > Might I ask you > (a) To confirm that your PDF reader does, indeed, do SPR? > (I.e., not just everything else on your system.) > and Ah, good point, I should have checked first. Using the following test file: \loadtypescriptfile

[NTG-context] Re: language in tagging and export

2025-07-15 Thread Max Chernoff via ntg-context
Hi Jim, On Mon, 2025-07-14 at 12:47 -0300, Jim wrote: > It does (far) better > font rendering than any of the other Linux programs (excluding web > browsers) that I know about. The day someone figures out how to add > sub-pixel rendering to any of the other Linux PDF readers might be the day > th

[NTG-context] Re: Docker images

2025-07-12 Thread Max Chernoff via ntg-context
Hi Hraban, Hans, On Sat, 2025-07-12 at 18:56 +0200, Henning Hraban Ramm wrote: > I don’t even need modules in this case – I don’t > think all of them are included in TeX live, need to check… Most of them should be included in TeX Live, but if there are any important ones that aren't, let me or Ta

[NTG-context] Re: Docker images

2025-07-12 Thread Max Chernoff via ntg-context
Hi Hraban, On Fri, 2025-07-11 at 09:39 +0200, Henning Hraban Ramm wrote: > the ConTeXt dockerfiles from “Island of TeX” > (https://github.com/islandoftex/context) … > – still distinguish MkIV beta/current > – install modules via rsync also for LMTX which pulls in some outdated ones > – use Debian

[NTG-context] Re: testing tagging for UA-2

2025-07-12 Thread Max Chernoff via ntg-context
Hi Hans, On Thu, 2025-07-10 at 10:54 +0200, Hans Hagen via ntg-context wrote: > On 7/10/2025 9:08 AM, Max Chernoff via ntg-context wrote: > > - I had to manually tag every paragraph with > >\startparagraph/\stopparagraph, which was annoying. > > well, that also depe

[NTG-context] Re: testing tagging for UA-2

2025-07-10 Thread Max Chernoff via ntg-context
Hi Pablo, (resending since my attachments were too large for the mailing list the first time) I did some experiments yesterday, and I was able to produce a file (PDF and source attached) that validates as PDF/UA-2 with veraPDF and that Ulrike Fischer and David Carlisle (who work on the LaTeX acce

[NTG-context] \show treated as a fatal error with MkIV

2025-07-01 Thread Max Chernoff via ntg-context
Hi Hans, If you use "\show" anywhere in a document with MkIV, ConTeXt treats it as a fatal error and immediately exits. The following document produces the expected output with MkXL, but exits with "mtx-context | fatal error" with MkIV: \show\show \showtokens{\showtokens} \starttext

[NTG-context] Re: upload

2025-06-14 Thread Max Chernoff via ntg-context
Hi Hans, On Sat, 2025-06-14 at 11:45 +0200, Hans Hagen wrote: > > in this past week. Even the perpetually-stable pdfTeX had a few bugs > > earlier this year. > > oh ... i thought that pdftex was very stable and admit that i never > check mkii with that (i just assume that when we can make a mkii f

[NTG-context] Re: upload

2025-06-14 Thread Max Chernoff via ntg-context
Hi Hans, On Sat, 2025-06-14 at 09:41 +0200, Hans Hagen wrote: > On 6/14/2025 8:47 AM, Max Chernoff via ntg-context wrote: > i wonder if a too frequent texlive sync is good, as it sounds pretty beta My thinking was that if it's stable enough for the users of the Standalone Distributi

[NTG-context] Re: upload

2025-06-14 Thread Max Chernoff via ntg-context
Hi Hans, On Thu, 2025-06-12 at 13:56 +0200, Hans Hagen wrote: > I uploaded a new version, Looks like my autoupdating scripts worked well, the new version should be available in TeX Live as of a few hours ago. In case anyone ever encounters any critical bugs in the version packaged by TeX Live, i

[NTG-context] Re: Color Profile ISO Coated v2 300% (ECI) not found anymore

2025-06-11 Thread Max Chernoff via ntg-context
Hi juh, On Tue, 2025-06-03 at 11:41 +0200, juh+ntg-context--- via ntg-context wrote: > in ConTeXt ver: 2025.04.28 14:29 LMTX fmt: 2025.6.3 > the color profile ISO Coated v2 300% (ECI) is not found anymore The file currently in the Standalone Distribution appears to be corrupted: $ exiftoo

[NTG-context] Re: ConTeXt in TeX Live

2025-06-11 Thread Max Chernoff via ntg-context
Hi Hans, On Mon, 2025-06-09 at 13:29 +0200, Hans Hagen via ntg-context wrote: > juist stick with the major platforms (i knwo that soem context users on > e.g. moving targets like openbsd just compile themselves as it relates > to specific version of the OS we used to generate a few) Ok, Karl said

[NTG-context] Re: ConTeXt in TeX Live

2025-06-09 Thread Max Chernoff via ntg-context
Hi Hans, On Mon, 2025-06-09 at 08:27 +0200, Hans Hagen wrote: > one can just get > > wget http://lmtx.pragma-ade.nl/install-lmtx/context-freebsd-amd64.zip > wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux.zip > wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip > wget http:

[NTG-context] Re: ConTeXt in TeX Live

2025-06-08 Thread Max Chernoff via ntg-context
Hi Mojca, On Mon, 2025-06-09 at 07:56 +0200, Mojca Miklavec wrote: > On Mon, 9 Jun 2025, 00:27 Max Chernoff wrote: > > For macOS, the Standalone Distribution uses separate aarch64 and x86_64 > > binaries, but TeX Live uses a single universal binary. For those, I'm > > installing the binaries from

[NTG-context] Re: ConTeXt in TeX Live

2025-06-08 Thread Max Chernoff via ntg-context
Hi Mojca On Sun, 2025-06-08 at 17:44 +0200, Mojca Miklavec wrote: > On Sun, 8 Jun 2025 at 02:10, Max Chernoff via tex-live wrote: > > I've taken over packaging ConTeXt for CTAN and TeX Live. > > Thanks a lot for this, but I have one question: what's the plan with > luametatex binaries? Would the b

[NTG-context] ConTeXt in TeX Live

2025-06-07 Thread Max Chernoff via ntg-context
Hi all, Previously, ConTeXt was imported into TeX Live once per year, via a TDS archive from CTAN. There were a few problems with this: 1. To handle this import, the TeX Live maintainers had to create lots of custom scripts, and even then, the import still needed lots of manual effort.

[NTG-context] Re: Thesis in ConTeXt

2025-04-10 Thread Max Chernoff via ntg-context
Hi Gerion, On Fri, 2025-04-11 at 00:36 +0200, Gerion Entrup wrote: > I just published my PhD thesis in ConTeXt (with graphics in LaTeX/TikZ) > I published the source code here [2] to maybe give something back. Wow, that looks great, thanks for sharing! > In general, I find ConTeXt way more cons

[NTG-context] Re: Draw cutting line

2025-04-08 Thread Max Chernoff via ntg-context
Hi Alan, On Tue, 2025-04-08 at 03:19 -0500, Alan Caruanambo wrote: > Hello, I want to draw the cutting line on an A4 sheet. > > cutting line (to draw) > | > > >| | > >| | > >| | > You can use \showframe for this: \setuppapersize[A5][A4,l

[NTG-context] Re: update

2025-04-03 Thread Max Chernoff via ntg-context
Hi all, On Tue, 2025-04-01 at 13:47 +0200, Hans Hagen wrote: > A recent post on the list indicated that some > installations default to letter size paper format, which one canconsider > a bad idea but let's put that aside. Yeah, I added that code back in April 2023. I argued that the layout of a

[NTG-context] Re: nested context/lua calls

2025-03-29 Thread Max Chernoff via ntg-context
Hi Mohammad, On Sat, 2025-03-29 at 11:06 -0400, Mohammad Hossein Bateni wrote: > Is there a more elegant solution? > Ideally I want a way to start a TeX process under Lua, and > process the macros there before I get to the next line of Lua code. One option is to use "publications.prerollcmdstring

[NTG-context] Re: Problem with: 0.222 222 222_3

2025-03-25 Thread Max Chernoff via ntg-context
Hi Pablo, On Tue, 2025-03-25 at 18:03 +0100, Pablo Rodriguez via ntg-context wrote: > On 3/25/25 14:50, Ursula Hermann wrote: > > \setuppapersize[A4] > > Portrait A4 is the default in ConTeXt (unless I have been missing > something for decades). If you're using the ConTeXt from TeX Live, the defa

[NTG-context] Re: Can context automatically italicize foreign words?

2025-03-20 Thread Max Chernoff via ntg-context
Hi Joel, On Thu, 2025-03-20 at 16:28 +, Joel via ntg-context wrote: > Is there any way in ConTeXt to just give it a list of words, and it > will italicize them wherever they are found in the text, no matter they > are in the body, some index, etc.? You should be able to use either \translatei

[NTG-context] Re: Negative font slant broken with compact fonts

2025-03-19 Thread Max Chernoff via ntg-context
Hi Pablo, On Wed, 2025-03-19 at 18:00 +0100, Pablo Rodriguez via ntg-context wrote: > Weird, I use LuaMetaTeX 2.11.07 20250226 Ah, my binaries must have not updated properly since I still had 2.11.06. I deleted the binaries and reran the updater, so I now have 2.11.07. I also deleted the system a

[NTG-context] Negative font slant broken with compact fonts

2025-03-19 Thread Max Chernoff via ntg-context
Hi, Using the latest ConTeXt (2025.02.19), negative slants are broken with compact fonts. Example document: \definefontfeature[default][default][Slant=-1] \startTEXpage Hello, world! \stopTEXpage When compiled with "context", I get the error message tex error > te

[NTG-context] Fwd: Re: [tlbuild] TL25 rebuild please

2025-03-06 Thread Max Chernoff via ntg-context
Hi Hans, Someone posted on the tlbuild mailing list that LuaMetaTeX segfaults whenever making the ConTeXt format on OpenBSD. I'm all out of ideas for how to fix this, so hopefully you have some suggestions? The original thread started at https://tug.org/pipermail/tlbuild/2025q1/005651.html T

[NTG-context] Re: automatic character comparison

2025-03-04 Thread Max Chernoff via ntg-context
Hi Pablo, On Tue, 2025-03-04 at 19:26 +0100, Pablo Rodriguez via ntg-context wrote: > What I want to achieve is automatic text comparison between versions of > the same text (in different subcolumnsets). > > The first line shows different versions text. I wonder whether there > would be an automat

[NTG-context] \pi not defined in latest MkIV

2025-02-20 Thread Max Chernoff via ntg-context
Hi Hans, \pi doesn't seem to be defined in MkIV anymore. I'm using the latest from the standalone distribution, although the issue is also present in the TL25 pretest. Minimal example: % engine=luatex \startTEXpage \m{\pi} \stopTEXpage This was originally reported on the TeX

[NTG-context] Re: New Mac Mini Font Issue

2025-02-05 Thread Max Chernoff via ntg-context
Hi Mike On Wed, 2025-02-05 at 13:18 -0800, Mike Urban wrote: > I have re-installed texlive 2024 and context on my Mac Mini. Things > are generally working OK; but I am seeing these error messages: > > mathematics > initializing > font 'LatinModernMath-Companion.otf' doesn't > exist > mathemat

[NTG-context] Arranging sometimes adds a zero

2024-11-24 Thread Max Chernoff via ntg-context
Hi Hans, The recent discussion of imposition reminded me of an arranging bug that I found a little while ago. MWE: \setuppapersize[A5,landscape][A4] \setuparranging[2TOPSIDE] %% Uncomment to "fix" the bug % \protected\expandafter\def\expandafter\fixedspace\expandafter{% %

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread Max Chernoff via ntg-context
Hi Dave, > How would you instruct ConTeXt to "protect" the lettrine such that > regardless of whether the first paragraph spans multiple lines, a short > first paragraph will still prevent the second paragraph from overlapping > the lettrine? > Here's the output I'm looking to achieve: > > https

Re: [NTG-context] Super slow installation

2023-05-30 Thread Max Chernoff via ntg-context
Hi all, I think that this is all resolved now, but if not, maybe this extra info will help? I'm using this script to test: #!/bin/sh for x in \ "https://speed.cloudflare.com/__down?bytes=$(echo '50*1024^2' | bc)" \ "https://speedtest1.mnd.bulk.iss.as9143.net:8080/random50

[NTG-context] Can ConTeXt write its pdf to a different directory?

2023-05-26 Thread Max Chernoff via ntg-context
Hi Peter, > My .tex file is in a directory within my working directory. I would like > ConTeXt to write its output in the same directory as my .tex file. But it > writes to the working directory. > > This was asked 10 years ago: > `tex.stackexchange.com/questions/67928/how-to-set-output-directo

[NTG-context] Noto Emoji COLRv1

2023-05-23 Thread Max Chernoff via ntg-context
Hi Hans, I tried using the code from [1] for Noto Emoji in COLRv1 format [2]: \startTEXpage \definefontfeature[colored][default][colr=9] \definedfont[Noto-COLRv1.ttf*colored] 🦆 % U+1F986 \stopTEXpage but ConTeXt gives the following error: fonts > otf loading > l

Re: [NTG-context] SVG ViewBox figure battle

2023-05-20 Thread Max Chernoff via ntg-context
Hi, > Any ideas on how to force that setting without modifying grph-con.lua? This seems to work: \startluacode function figures.converters.svg.pdf(oldname, newname) figures.programs.inkscape.runner { format = "filename", resolution = "600", crop

Re: [NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread Max Chernoff via ntg-context
Hi Lynx, > Today, I created a separate "user command" within TeXstudio, and it > points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" > This command generates the same log output as the example at > https://gitlab.com/islandoftex/images/texlive/-/issues/30. This is probably no

[NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-27 Thread Max Chernoff via ntg-context
Hi Hans, With the LuaMetaTeX-based ConTeXt wrapper, it's not generally possible to run ConTeXt from a symlinked binary in another directory. This shows up if someone makes symlinks in "/usr/bin" so that they can avoid adding anything to their $PATH. If you make run a symlink to the LuaMetaTeX-bas

Re: [NTG-context] update

2023-04-27 Thread Max Chernoff via ntg-context
Hi Lynx, > * How can I be sure that the standalone version is the one being > implemented? It depends on what your $PATH is set to. On Linux/macOS, you can run $ type -ap context to list all the ConTeXts in your $PTAH. The first one in that list is the one that will be ran by default

Re: [NTG-context] update

2023-04-27 Thread Max Chernoff via ntg-context
Hi Hans, > I actually dont' know the rules for updating texlive but there are > definitely updates. The rules are: - Packages and formats are updated about 24 hours after a new version is uploaded to CTAN. - Binaries are only updated once-per-year. But there are also some special case

Re: [NTG-context] update

2023-04-26 Thread Max Chernoff via ntg-context
Hi Lynx, Aditya, > > New to conTeXt, have not performed a specific update prior to this. > > > > My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will > > the updates to ConTeXt be handled by tlmgr ? > > No. Usually, texlive updates context once a year. This is correct in g

Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex

2023-04-10 Thread Max Chernoff via ntg-context
Hi Carlos, I think that you may be installing the old ConTeXt MkIV distribution instead of the new ConTeXt LMTX. ConTeXt LMTX doesn't distribute "texlua" at all, and running  "./install --modules=all" doesn't make sense with LMTX (since the installer can't install modules). From what link did you

[NTG-context] attempt to index nil value with bidi math in hbox

2023-04-02 Thread Max Chernoff via ntg-context
Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to index a nil value (local 'before') s

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-04-02 Thread Max Chernoff via ntg-context
Hi Xavier, On Sun, 2023-04-02 at 11:00 +, Xavier B. wrote: > Max, when I use context minimals, I get: > > modules > 'pgfrcs' is not found > modules > 'pgfmat' is not found > modules > 'tikz' is loaded > open source > level 3, order 4, name > '/home/xan/bin/context

Re: [NTG-context] characters.tex.toutf bug

2023-03-30 Thread Max Chernoff via ntg-context
Hi Hans, > it is more side effect of removing the (declared obsolete some years > ago) `` '' input which catched it later > > i tend to remove > > for k, v in next, ligaturemapping do > hash[k] = v > end > > in favor of an explicit 'tquo' feature that one can enab

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Max Chernoff via ntg-context
Hi Xavier, > During the texlive package, I get this error: > I simply run context to this file: > > \usemodule[tikz] > > \starttext > {\bf a} \tikz (0,0) -- (1,0); > \stoptext > So, the problem is not the package or the distro, it's something more > basic which causes the error. Someone else r

[NTG-context] characters.tex.toutf bug

2023-03-29 Thread Max Chernoff via ntg-context
Hi Hans, "characters.tex.toutf" only works if there is a backslash somewhere in its input string. This leads to some really surprising behaviour in the following example: \definefontfeature[default][tlig=no, trep=no] \startbuffer[test-bib] @article{one, author = {``Author---\v

Re: [NTG-context] Float control

2023-03-01 Thread Max Chernoff via ntg-context
Hi Denis, > The floats where jumping around, appearing in a different order than > in the source file Tables and figures can appear in different orders than each other, and a top float could appear at the top of the page that it is mentioned, but if you ever see Figure 2 before Figure 1 or a flo

Re: [NTG-context] [m-database] How to properly add module arguments?

2023-02-26 Thread Max Chernoff via ntg-context
Hi Paul, > I added a stanza to the appropriate interface file: > > --- begin stanza added to i-database.xml --- > > I modeled that after the stanza for the argument `strip`. I think > that's the only thing I need to do in the interface file. I'd recommend completely ignoring the interface i-*.x

[NTG-context] Unwanted space with \startframedtext

2022-12-21 Thread Max Chernoff via ntg-context
Hi Hans, There's an uncommented linebreak in the definition of \pack_framed_text_start that's introducing an unwanted space just before \startframedtext. Minimal example: \showmakeup[space] \starttext \hbox{.\startframedtext.\stopframedtext} \stoptext Patch: --- texmf-contex

Re: [NTG-context] Achieving different \cite styles

2022-12-09 Thread Max Chernoff via ntg-context
Hi Jethro, > I am interested in being able to cite in different ways. By analogy, I > refer to the \texcite{}, \parencite{} and other options available with > biblatex in LaTeX. How do I achieve something like \textcite{} in > ConTeXt? Page 34 of the publications manual lists the various styles:

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

2022-11-21 Thread Max Chernoff via ntg-context
Hi Hans, > what you observe is likely a side effect of an increase in accuracy > which gives a bit less drift in the pdf; expansion is turned off (it > would increase runtime if turned on) It's not just in the PDF though, I can also see the change from Lua. Using this document: \showframe

Re: [NTG-context] thousand separator space

2022-11-21 Thread Max Chernoff via ntg-context
Hi Jan, > Why is there an additional space after the thousand separator in math mode? Because something like ${\mathbb N} = \{1,2,3,4,\dots\}$ would look quite bad without any space between the numbers. (The technical reason is that commas have the math class \mathpunct, meaning that T

Re: [NTG-context] Horizontal spacing

2022-11-21 Thread Max Chernoff via ntg-context
Hi Steffen, > But how can I adjust in general the horizontal distance between glyphs > (I don't mean \kern, I am looking for a general setup)? You probably want \definecharacterkerning. See https://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf#page=171 for details on how to use it. -- M

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

2022-11-21 Thread Max Chernoff via ntg-context
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] % \usetypescript[modern-base] % \setupbodyfont[reset,moder

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

2022-11-11 Thread Max Chernoff via ntg-context
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 compile as is. I think that this is the same thing though:

[NTG-context] node.setglue broken in LuaMetaTeX

2022-11-07 Thread Max Chernoff via ntg-context
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_engine == "luametatex" then stretch_order = "stretchorder"

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

2022-10-27 Thread Max Chernoff via ntg-context
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 the footnote rule. It's trivial to fix that specific case, but

[NTG-context] "true" units in LuaMetaTeX

2022-10-26 Thread Max Chernoff via ntg-context
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 \stoptext I get this output: tex error > tex error on li

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

2022-10-26 Thread Max Chernoff via ntg-context
Hi Hans, > i'll bypass that warnign when the mode is zero I saw that you made that change in the latest upload, thanks. Unfortunately, I'm still getting the same output: luatex warning > linebreak: list seems already prepared luatex warning > linebreak: [ leftinit | rightinit | leftfill

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

2022-10-18 Thread Max Chernoff via ntg-context
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.callbacks.permitoverloads] \normalizelinemode=0

Re: [NTG-context] issues with current latest

2022-10-14 Thread Max Chernoff via ntg-context
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 have to give the full script path here to

Re: [NTG-context] issues with current latest

2022-10-14 Thread Max Chernoff via ntg-context
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 --luaonly > "/opt/c

Re: [NTG-context] issues with current latest

2022-10-14 Thread Max Chernoff via ntg-context
Hi Pablo, > I’m afraid that I cannot make latest from 2022.10.14 10:16 with LuaTeX. > > I’m on Linux64. I've got the same configuration and I'm getting the same results: $ context --luatex test.tex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context/tex/texmf

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

2022-10-13 Thread Max Chernoff via ntg-context
Hi Joel, > When I use the code given, it compiles and displays fine. But when I > try replacing \everypar with \EveryPar, it halts during compiling It looks like \EveryPar is a macro and not a token list. > These both work great, but do that for the whole document? Is there a > way to restrict it

Re: [NTG-context] atan2 function

2022-10-13 Thread Max Chernoff via ntg-context
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: \startMPpage vardef atantwo( expr dy, dx ) = sa

Re: [NTG-context] atan2 function

2022-10-12 Thread Max Chernoff via ntg-context
Hi, > How is atan2 called? I rolled my own as follows: > Is atan with two parameters supposed to behave like atan2? At mp-math.mpxl:167 there is: vardef atan primary x = angle(1,x) enddef ; The MetaPost manual says: The angle operator takes a pair and computes the two-arg

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

2022-10-12 Thread Max Chernoff via ntg-context
On Wed, 2022-10-12 at 13:14 +0200, Leah Neukirchen wrote: > > Seeing that you're modifying the font encoding, could you perhaps > > reconsider supporting hinting in LMTX?  > > > >https://mailman.ntg.nl/pipermail/ntg-context/2022/106311.html > > > > Even with a high resolution screen, I can st

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

2022-10-12 Thread Max Chernoff via ntg-context
Hi Gavin, On Wed, 2022-10-12 at 15:54 -0600, Gavin wrote: > Hi Max, Alan, Bruce, Hans, et.al > > I solved my four issues with \unit spacing. In the process, I > prevented unwanted line breaks and removed an overzealous backspace > before division symbols. Below is a MWE that shows all of these >

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

2022-10-11 Thread Max Chernoff via ntg-context
Hi Leah, > > Leah and I are zooming in on the issue. It might relate to wrong font > > matrix default behavior in the pdf printer driver, and GS got a fix > > for that long ago, so maybe old printers with not-updated drivers can > > be affected. > > > > Once we're confident that we can catch it L

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

2022-10-10 Thread Max Chernoff via ntg-context
Hi Joel, On Mon, 2022-10-10 at 12:46 +, Joel wrote: > Hello Max, > It is preferred if the solution is just three lines per paragraph, > rather than some content parallel to the text A Lua callback solution: \startluacode -- Constants RULE_OFFSET= tex.sp "1em" RUL

Re: [NTG-context] ConTeXt Standalone does not works on macOS Monterey with Apple M2 chip

2022-10-09 Thread Max Chernoff via ntg-context
Hi Tommaso, > I'm trying to install ConTeXt Standalone on my Mac (macOS 12.6 Monterey and > Apple M2 chip) but at the end of the installation the ConTeXt-MkIV folder > (where I install Standalone) on the disk weighs only 7MB (the tex tree is > created, but its folders are empty). > I've never had

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

2022-10-09 Thread Max Chernoff via ntg-context
Hi Joel, > 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. Is it okay if there are rules continuously down the right column? If so, this is fairly simple to do with layers/backgrounds + MetaFun. If

Re: [NTG-context] Spacing in \unit

2022-10-09 Thread Max Chernoff via ntg-context
Hi Alan, > I would very strongly argue that the space between the number and the > following units be UNBREAKABLE. Perhaps a thin space (preference), but > most certainly non-breakable. > > Similarly around the times in scientific notation. > > I further cannot imagine that a line break be accep

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

2022-10-08 Thread Max Chernoff via ntg-context
Hi all, > I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11. > > Here's a tiny test document, I disabled PDF compression but it also > doesn't work with the default settings. > > \setupbackend[level=0,compresslevel=0] > \starttext > Just a line of text. > \stoptext > > When I print this

Re: [NTG-context] \setuparranging values for perfect bound A5 on A3?

2022-10-08 Thread Max Chernoff via ntg-context
Hi Bruce, > I have a book to be perfect bound[1] and I'm trying to work out what > imposition to use. > > The printer would like 4 A5 pages laid out on A3 e.g. > > +---+---+ > | | | > | a | b | > | | | > +---+---+ > | | | > | c | d | > | | | > +---+---+ > > so that he can cut t

Re: [NTG-context] Apostrophe entity using \xmltexentity is ignored

2022-10-08 Thread Max Chernoff via ntg-context
Hi, > Has the handling for the apostrophe character entity changed recently? > > In the following example, the \xmltexentity for apostrophe is ignored, > resulting in a straight apostrophe instead of a curled one: > Any ideas on how to fix it? (see also https://tex.stackexchange.com/a/661002/27

Re: [NTG-context] floats disturb grid setting

2022-10-03 Thread Max Chernoff via ntg-context
Hi Hraban, > > As soon as I use floats, text isn’t typeset on the grid any more: > > > > > > \setuppaper[A5] > > \setuplayout[grid=yes] > > \showframe\showgrid > > Oops, my bad: It must be "grid=on". > But didn’t work "yes" in earlier versions? I just tested: MkIV MkXL [gri

Re: [NTG-context] remote images

2022-10-03 Thread Max Chernoff via ntg-context
Hi Hraban, > fetching images per URI was supported (and is also documented in the > wiki), but with LMTX 2022.09.11 and one of > > \externalfigure[http://tug.org/images/logobw.jpg] > or > \externalfigure[https://picsum.photos/300/200] > > I only get the usual grey box. No error message. Neithe

Re: [NTG-context] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Max Chernoff via ntg-context
Hi Taco, Michal, > > > > > /home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136 > > > return (translations ?? []) > > > ^ That's the "Nullish coalescing operator", which MDN says is only available in

Re: [NTG-context] Suboptimal German hyphenation

2022-09-28 Thread Max Chernoff via ntg-context
Hi Leah, > I was typesetting some German text on a narrow page when I discovered > the justification wasn't as good as expected. I think I tracked this > down to differences in hyphenation points, namely, ConTeXt has fewer: > > \starttext > \language[de] > \showhyphens{Zusammenhang} > \showhyphe

Re: [NTG-context] new hash for buffer (as file)

2022-09-26 Thread Max Chernoff via ntg-context
Hi Hans, Pablo, > > But I do agree that the line ending handling seems a little odd. I find it > > surprising that the buffers internally use CR line endings since no systems > > in the past 20 years use that. > > how about tex ... > > \number\endlinechar > \number\numexpr`M-`A+1\relax % plain

Re: [NTG-context] new hash for buffer (as file)

2022-09-25 Thread Max Chernoff via ntg-context
Hi Pablo, > But now I don’t understand is the following issue: if the saved file > contains "\r\n", why does basic Notepad the new lines? > > "\r\n" are the chars to get new lines in Windows. Or what am I missing here? I'm not too sure what you're asking here, but Notepad was somewhat- recently

Re: [NTG-context] PDF viewer

2022-09-23 Thread Max Chernoff via ntg-context
Hi Hraban, > Unfortunately, Firefox doesn’t register itself as a PDF viewer (at least > on MacOS), that means I can’t use it easily to open a PDF from the > command line (e.g. in scripts). That's odd. You can set it as the default PDF viewer on Windows and Linux at least. > >> for forms: > >>

Re: [NTG-context] new hash for buffer (as file)

2022-09-22 Thread Max Chernoff via ntg-context
Hi Pablo, > I mean, to get hash of the file attached to the document, I need to save > the buffer for "context(utilities.sha2.hash256(io.loaddata(buffer)))". > > But I don’t need to save the buffer to attach it to the PDF document. > > My question is how to define \shabufferfile to avoid \savebu

Re: [NTG-context] PDF viewer

2022-09-22 Thread Max Chernoff via ntg-context
Hi Hraban, > I compiled a kind of wishlist what we need or look for in a new or > enhanced open source PDF viewer, as discussed e.g. at the 2021 meeting. > > https://wiki.contextgarden.net/PDF_viewer > > Feel free to enhance the wiki page or discuss here. I think that pdf.js (the Firefox PDF

Re: [NTG-context] hash for buffer contents

2022-09-21 Thread Max Chernoff via ntg-context
Hi Pablo, > Is there any way to get "utilities.sha2.hash512" with the contents of > the "abc" buffer? You can use "buffers.getcontent" or "buffers.raw": \startbuffer[test] One Two Three \stopbuffer[test] \starttext \startluacode require("util-sha")

Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-20 Thread Max Chernoff via ntg-context
Hi Pablo, Otared, > On 9/19/22 18:23, Otared Kavian via ntg-context wrote: > > Hi Pablo, > > > > I had the same issue and, as this was discussed a few years or months > > ago, after removing the three files with extension « .tma » the > > update goes through normally.> On my machine, running MacO

[NTG-context] LuaMetaTeX insert nodes patch

2022-09-16 Thread Max Chernoff via ntg-context
Hi Hans, I see that you've released the LuaMetaTeX source code, yay! I'm really impressed with how easy it is to build, and with how quickly it builds. Can you please apply this patch to the LuaMetaTeX source code: diff --g

Re: [NTG-context] Latest ConTeXt won't "--make"

2022-09-14 Thread Max Chernoff via ntg-context
Hi Mikael, > I don't see this problem with the latest. Moreover, I think the > version of luametatex was pushed to 2.10, so there might be a > mis-match in your case. I hope it helps. I just tried updating again, and it says that I'm up to date, but: $ luametatex --version This is LuaMeta

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

2022-09-13 Thread Max Chernoff via ntg-context
Hi Steffen, > … \replaceword should be the correct way for proper hyphenation?? Well I'm not sure if it's "correct", but it seems to work. Based on my testing, having three subsequent sets of groups ({A}{B}{C}) is converted to a discretionary. The discretionary hyphen "\-" is equivalent to the Pl

[NTG-context] Latest ConTeXt won't "--make"

2022-09-13 Thread Max Chernoff via ntg-context
Hi all, I've just updated to the latest ConTeXt, but I'm unable to make the format: $ context --make resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' [...] resol

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

2022-09-13 Thread Max Chernoff via ntg-context
Hi Steffen, > The idea is to set the hyphenation for certain words regardless of the > language that is used in the surrounding paragraphs. > > In this example it should stay: «steff-en» > > How do i set this to all non-english paragraphs (without using > \hyphenation on each language-switch)?

Re: [NTG-context] searching in the source browser

2022-09-05 Thread Max Chernoff via ntg-context
Hi Hraban, > Am 05.09.22 um 21:07 schrieb Pablo Rodriguez via ntg-context: > > has it to be the source browser? > > > > I mean, I use grep in Linux (MSYS2 in Windows [and brew.sh is available > > for macOS]) and it works perfectly fine with ConTeXt. > > > >$ grep -irl fi[eë][eë] context > >

Re: [NTG-context] No error when loading a non-existent module

2022-08-25 Thread Max Chernoff via ntg-context
On Fri, 2022-08-26 at 07:40 +0200, Hans Hagen wrote: > On 8/26/2022 3:00 AM, Max Chernoff wrote: > > Is there a way to make this produce a nice little "error" PDF as soon as > > the error occurs just like using "\undefined" does? > > Only If I add it as option (directive driven, must find some goo

Re: [NTG-context] No error when loading a non-existent module

2022-08-25 Thread Max Chernoff via ntg-context
Hi Hans, On Thu, 2022-08-25 at 08:57 +0200, Hans Hagen wrote: > On 8/25/2022 2:19 AM, Max Chernoff via ntg-context wrote: > But ... you can already do > > \enabledirectives[logs.errors=*] > > or > > \enabledirectives[logs.errors=missing modules] Didn't know about

[NTG-context] No error when loading a non-existent module

2022-08-24 Thread Max Chernoff via ntg-context
Hi all, If you load a non-existent module, ConTeXt issues a minor warning, but otherwise proceeds as normal: MWE: \usemodule[doesnt-exist] \starttext Hello world! \stoptext I think that this behaviour should be changed so that a fatal error is issued when a loaded module cann

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread Max Chernoff via ntg-context
Hi Amano, > Wuh. That's a bit complex. Not really. From a user perspective, all that you need to run is make install From a developer perspective, this is essentially just the base ConTeXt files, a modified texmfcnf.lua, and a fairly basic makefile. > For distribution packages that depe

Re: [NTG-context] Color property of \setupurl

2022-08-19 Thread Max Chernoff via ntg-context
Hi, > Could someone clarify me in what kind of context the color of a > hyperlink is controlled by the "color" property of \setupurl? This code: \show\setupurl \showthe\everysetupurl produces: > \setupurl=frozen protected macro: [#1]->\ifarguments \or \mult_interfaces_get_paramet

  1   2   >