[NTG-context] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context
Hello, here's the error I get: lua error : function call: ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad argument #2 to 'lpegmatch' (string expected, got nil) BTW I was trying to compile lowlevel-expansion.tex in

Re: [NTG-context] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context
Il 25/08/21 13:06, Hans Hagen ha scritto: On 8/25/2021 11:18 AM, mf via ntg-context wrote: Hello, here's the error I get: lua error : function call: ...si/context/lmtx-latest/tex/texmf-linux-64/bin/mtxrun.lua:4548: bad argument #2 to 'lpegmatch' (string expected, got nil) BTW I was trying

Re: [NTG-context] error in mtxrun.lua line 4548 in August 24th update

2021-08-25 Thread mf via ntg-context
Il 25/08/21 14:06, Hans Hagen ha scritto: On 8/25/2021 1:20 PM, mf via ntg-context wrote: Il 25/08/21 13:06, Hans Hagen ha scritto: On 8/25/2021 11:18 AM, mf via ntg-context wrote: Hello, here's the error I get: lua error : function call: ...si/context/lmtx-latest/tex/texmf-linux-64/bin

Re: [NTG-context] new upload

2021-08-31 Thread mf via ntg-context
The problem on lowlevel-alignments.pdf is solved too. Now the update process is OK again. Thanks. Massi Il 30/08/21 20:01, Hans Hagen via ntg-context ha scritto: On 8/30/2021 7:27 PM, Rik Kabel via ntg-context wrote: The corrected upload (2021.08.30 16:23) still has an issue. The --autopdf

Re: [NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread mf via ntg-context
\definepapersize[a4-portrait][A4][A4] \setuppapersize[a4-portrait] \setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle] \starttext \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax] {\framed[frame=on,offset=none,align=flushleft] {%

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Here it's wrong. See attachment. Massimiliano Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib.

Re: [NTG-context] undefined command in current latest

2021-10-11 Thread mf via ntg-context
It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \starttext \dorecurse{10}{\samplefile{knuth}\marking[myheader]{\it

Re: [NTG-context] Addition of authortitle sorttype for bibliographies

2021-10-05 Thread mf via ntg-context
probably got lost when my mail address was in transition I sent you some mails during that period that were not answered. I thought it was a retaliation for not presenting anything at the meeting :) Anyway I'll prepare an article on running ConTeXt inside a container that could eventually

Re: [NTG-context] new upload

2021-08-30 Thread mf via ntg-context
There's a problem downloading lowlevel-alignments.pdf. Here's a slice of the log of install.sh: mtx-install | updating tex/texmf, 1530 files mtx-install | updating tex/texmf-context, 4130 files mtx-install | changed : 0 % :27550 :

[NTG-context] shrink inter-line space

2021-12-17 Thread mf via ntg-context
Hello list, here's a MWE to shrink the distance between two lines: \starttext \samplefile{ward}\par \blank \bgroup \baselineskip=0pt \samplefile{ward}\par \egroup \stoptext How can I get lines closer, even overlapping? Massi

Re: [NTG-context] definedfont vs switchtobodyfont (was "shrink inter-line space")

2021-12-20 Thread mf via ntg-context
Il 18/12/21 13:00, Wolfgang Schuster ha scritto: \definefontfeature [tightlines] [dimensions={*,0,0}] \starttext \samplefile{ward}\par \blank \start     \setupinterlinespace[line=5pt]     \definedfont[Normal*default,tightlines]     \samplefile{ward}\par \stop \stoptext Thanks

Re: [NTG-context] shrink inter-line space

2021-12-18 Thread mf via ntg-context
Il 17/12/21 20:17, Wolfgang Schuster ha scritto:> \starttext > > \samplefile{ward}\par > > \blank > > \start \setupinterlinespace[line=12pt] > \samplefile{ward}\par > \stop > > \stoptext Yes, but you can't say \setupinterlinespace[line=6pt] and make lines overlap. At a certain point baselines

[NTG-context] redefining xmlsetups inside a XML document

2022-03-10 Thread mf via ntg-context
Hello, I'm trying to add new templates (xmlsetups) from the XML document itself. See the attached MWE. - the XML document is a simple XHTML file - in the "head" element there's a "script" element with the "type" attribute set to "text/vnd.context", whose contents are then passed to

Re: [NTG-context] embedding tex and lua code in

2022-03-24 Thread mf via ntg-context
run by ConTeXt - redefine xmlsetups from the HTML document itself Massi Il 22/03/22 17:07, mf via ntg-context ha scritto: </pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> I've added a <scr

[NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Hello list, I need to modify the kern between two glyphs. This is a MWE where the problem is solved manually: -- \mainlanguage[it] \starttext Default: «Questo è successo nel ’48». Desired: «Questo è successo nel ’\kern-.1em 48». \stoptext

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Il 05/04/22 13:15, Thomas A. Schmitz via ntg-context ha scritto: On 5. Apr 2022, at 13:02, mf via ntg-context wrote: Is it possible to solve it globally and only for a single font? Thanks, Massi Have you looked at chapter 5.4 “Goodies” of fonts-mkiv.pdf? That should get you started

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
Il 05/04/22 13:54, Hans Hagen via ntg-context ha scritto: On 4/5/2022 1:45 PM, mf via ntg-context wrote: It's defined in typo-fkr.lua, but I can't understand what parameters to pass and whether it's the right macro. It looks like it's not. look at the extension examples in the test suite: you

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
There's a problem with oldstyle glyphs, because they have different codes inside a font. I used fontforge to find the "four.oldstyle" glyph, whose code is 0xf734. But then I discovered that the 'four.oldstyle' key works the same in the lua table. This is the updated MWE, suitable for

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
le="margin: 0em;"> \xmlsetsetup{\xmlfirst{\xmldocument}{body}}{p|i}{myHtml:*} </pre><tt>but it doesn't work, since \xmldocument seems to be the actual document </tt><tt>instead of an id pointing to its root element. </tt><pre style="margin

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
-- I prefer this one: -- \startxmlsetups myHtml:i {\it\blue\xmlflush{#1}}\relax \stopxmlsetups -- You need to end the line with a macro eating up all the trailing spaces (newlines included). Massi Il 22/03/22 15:23, mf via ntg-

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context
Is this what you mean? \starttext Hello\footnotetext{Footnote without mark}. \stoptext Kind regards, Massi Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread mf via ntg-context
See HTML-tidy, https://www.html-tidy.org/ it could help you pre-processing your HTML files. Massi Il 16/05/22 17:08, Pablo Rodriguez via ntg-context ha scritto: Dear list, I would like to feed https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/001.html as XML input for ConTeXt.

Re: [NTG-context] upload

2022-05-09 Thread mf via ntg-context
I'm downloading it and I see a lot of mkii files and even some Ruby files. It looks like some old material got into the update. Is everything right? Massi Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto: Hi, I uploaded a new version of lmtx (also because some users have to test

[NTG-context] Wiki update: create a .vsix extension package for VisualStudio Code (or VSCodium)

2022-05-05 Thread mf via ntg-context
Hello list, I just added some instructions to the WIKI to build an extension file for VSCode, starting from the code you find in the LMTX installation at tex/texmf-context/context/data/vscode/extensions/context You find them at https://wiki.contextgarden.net/VSCode Massi

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
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-math.otf, dejavusansmono.ttf, gfsneohellenic.otf, fi

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
latest ConTeXt 2022.12.15 18:12: mkiv lua stats  > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 107 found files, scanned paths: mkiv lua stats  > stored bytecode data: 507 modules (0.346 sec), 106 tables (0.023 sec), 613 chunks (0.369 sec)

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
The old version is 2020.04.26 19:53, not 2020-04-22 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread mf via ntg-context
Il 16/11/22 18:33, Thomas A. Schmitz via ntg-context ha scritto: \startbuffer[test] This is the first test 22/11/16 This is the second test 22/11/17 This will be the content of the first chapter.

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread mf via ntg-context
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 supports only 2 arguments (see lxml-tex.lua), and

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

2023-02-27 Thread mf via ntg-context
\setupitemgroup [fooditems] [each] [none,text] [textseparator={,}] Comma is used to separate options; if you don't use braces, it means that the textseparator is set to the empty string. Massi Il 27/02/23 12:33, Jan-Erik Hägglöf via ntg-context ha scritto: I tested the code

Re: [NTG-context] \setupparagraphs - can they run over two pages?

2023-02-27 Thread mf via ntg-context
I would try \setuptabulate, \starttabulate ... \stoptabulate. It has some limitations (though Hans added some features recently), but it should work. Massi Il 24/02/23 06:41, jbf via ntg-context ha scritto: I have the following setup for side-by-side paras. \defineparagraphs[Two][n=2]

Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-14 Thread mf via ntg-context
Hello, the github repo at https://github.com/contextgarden/context-mirror is not updated since March 20th. I don't know whether it's related to the server update, but maybe you know. BTW thank you Taco, Jules and Robbert for your work. Massi Il 11/04/23 22:42, Taco Hoekwater via ntg-context