[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Henri Menke via ntg-context
On Fri, 2024-01-19 at 13:56 +0530, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good > coding practice. These potions of code which have goto should be > refactored. https://xkcd.com/292/ > I am a C programmer, but I know very

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-09 Thread Henri Menke via ntg-context
On 8/8/23 20:57, Hans Hagen wrote: > On 8/8/2023 7:43 PM, Hans Hagen wrote: >> On 8/8/2023 6:13 PM, Xavier B. wrote: >>> After some time, I could write a minimal example with tikz with >>> strange error: Cannot parse this coordinate. >>> >>> Can someone help me to find the bug? >>> >>> I attach

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

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 11:01 +0100, Hans Hagen via ntg-context wrote: > 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

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

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 10:30 +0100, Hans Hagen via ntg-context wrote: > 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 w

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

2023-01-27 Thread Henri Menke via ntg-context
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\\numexpr 17\string\\relax

[NTG-context] protected macro vs protected luacall

2023-01-26 Thread Henri Menke via ntg-context
Dear list, I have noticed a somewhat strange difference between protected macros and protected luacalls, namely that the latter cannot be expanded by \the. In the example below I define a Lua function that prints \numexpr 17\relax to the token stream and I call it once from a protected TeX macro

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

2023-01-16 Thread Henri Menke via ntg-context
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 are there > > > > \usemodule[tikz] > > \usemodule[pgfplots] > > > > \starttext > > Hello > > \stoptext > > > > seems

Re: [NTG-context] Containerized ConTeXt

2022-12-14 Thread Henri Menke via ntg-context
The Island of TeX builds Docker images for ConTeXt weekly. https://gitlab.com/islandoftex/images/context registry.gitlab.com/islandoftex/images/context:lmtx Cheers, Henri On Tue, 2022-12-13 at 20:56 -0800, Thangalin via ntg-context wrote: > Hi again, > > I've added the start of a podman

Re: [NTG-context] Microtipography

2022-05-25 Thread Henri Menke via ntg-context
On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context wrote: > Hello list, > > here and there on the Net there are slightly different ways to > activate the > microtypography functionality in a ConTeXt document. > >  My question is: what is the most correct and clean way to do it?

Re: [NTG-context] Syntax highlighting using LMTX

2021-12-02 Thread Henri Menke via ntg-context
On Thu, 2021-12-02 at 12:07 -0500, Aditya Mahajan via ntg-context wrote: > On Thu, 2 Dec 2021, Thangalin via ntg-context wrote: > > > Hi all, > > > > There are a few technical hurdles with using the t-vim module in > > LMTX. > > First, users need to install the module using externally defined >

Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Henri Menke via ntg-context
On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote: > On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote: > > Hello Community, > > > > If my memory serves me correctly, I might have noticed (in one of the > > presentations during the recent ConTeXt meeting) that the distro >

Re: [NTG-context] running tikz

2021-10-01 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 14:52 -0400, Aditya Mahajan via ntg-context wrote: > On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote: > > > On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context > > wrote: > > > Hi! > > > > > > I would li

Re: [NTG-context] running tikz

2021-09-30 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote: > Hi! > > I would like to use tikz to benefit of the package "pgf-soroban" I > did write for LaTeX (after adapting it and before, later, to > translate it to metapost). > > I did try the sample program from the tikz manual,

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
On Mon, 2021-08-23 at 17:24 +0200, Hans van der Meer via ntg-context wrote: > I guess the underlying library calls are from Lua5.4? Then it is > perhaps useful to know that between 5.3 and 5.4 there is mentioned a > new implementation for math.random. Perhaps it changes the sequence of > random

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
On Mon, 2021-08-23 at 16:46 +0200, Thierry Horsin via ntg-context wrote: > Hi everybody. > > I wonder how does math.random() work in context. I found that this > subject was discussed more than ten years ago by Otared and Taco and > Thomas. It is clear to me how to obtain new results upon

Re: [NTG-context] Unnecessary loading of lm-mono

2021-05-26 Thread Henri Menke
On 26/05/21, 15:14, Rik Kabel wrote: > For a few revisions now, I have seen the following as the very first line of > log files. It is not coming from my document. Is anybody else seeing it? > >fonts   > beware: no fonts are loaded yet, using 'lm mono' >in box > > Here is an

[NTG-context] Stack size for arguments too small in LMTX

2021-05-25 Thread Henri Menke
Dear list, For some reason pgfplots has a \pgfkeys invocation where the argument has more than 4000 lines. This crashes LuaMetaTeX with the message tex error > tex error on line 4045 in file pgfplots.code.tex: TeX capacity exceeded, sorry [token memory size=100] It doesn't seem to be

Re: [NTG-context] Running a couple of context statements in a linux bash shell heredocument?

2021-04-01 Thread Henri Menke
On Thu, 2021-04-01 at 16:23 +0200, Alexander Rosenstock wrote: > Hi all, > > is it possible running a couple of context statements as a > heredocument integrated in a - for example linux bash - shellscript? > Do you have any experience or idea or alternative solution? > This will work, but

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Henri Menke
On Mon, 2021-01-25 at 16:42 +0100, Henning Hraban Ramm wrote: > Hi, > > did anyone succeed in externalizing TikZ graphics with ConTeXt? The external library is LaTeX-only and that unfortunately won't change because it heavily relies on implementation detail of LaTeX's output routine. > It’s

[NTG-context] Diagnositics in LuaTeX

2020-12-28 Thread Henri Menke
Dear lists, Recently I've been working a bit on PGF/TikZ and many times I wished I had certain metrics that are available in regular programming languages. In particular I am missing: - A callback that is triggered when a macro is defined. This would allow me to trap when a cs is defined in

[NTG-context] LuaMetaTeX: \hbox dir vs. direction

2020-12-17 Thread Henri Menke
Dear Hans, In LuaMetaTeX the directional syntax for boxes \hbox dir TLT {...} is no longer supported. Currently this is necessary for PGF because certain things like shading have to always be typeset in TLT. Is there a simple workaround? Cheers, Henri See also:

Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Henri Menke
On Thu, 2020-11-05 at 11:28 +0100, Sylvain Hubert wrote: > Dear List, > > \starttext \showframe \showsetups \stoptext > > This minimal example without further configuration shows that the default > value for backspace, textwidth and paperwidth are 2.5cm, 15cm, 21cm resp., > which means that

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Henri Menke
> (PS: I would say that adding support for transliteration of the text > from one script to the other would be a really nice feature. Then you > could type your text for a book once and have it typeset in both > versions without any extra effort :) There is Philipp Gesang's transliterator

Re: [NTG-context] Join Foundation to Support ConTeXt for the next 50 Years

2020-10-18 Thread Henri Menke
On 17/10/20, 10:46, Suminda Sirinath Salpitikorala Dharmasena wrote: > Hello, > > In order to keep ConTeXt maintained for the very long term future, I am > wondering if there a possibility to join a foundation like the Apache > Software Foundation, Linux Foundation, etc.

Re: [NTG-context] color problem

2020-10-02 Thread Henri Menke
On 01/10/20, 20:55, Susanne G. Loeber wrote: > Dear Reader, > > I have a colored section, text in another color and a TikZ picture with a > differently colored node, following each other. However, either the node > gets the wrong color or the following paragraph, see example below. > > Is there

[NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-19 Thread Henri Menke
Dear list, To get properties of a figure without actually typesetting it, it is handy to use \registerexternalfigure. However, trying to use it fails. Consider the following MWE: \starttext \registerexternalfigure[cow.pdf] \stoptext Looking at the definition in grph-inc.mkiv

Re: [NTG-context] How to set pdfminorversion in LMTX?

2020-08-10 Thread Henri Menke
On 10/08/20, 01:20, Aditya Mahajan wrote: > Hi, > > How do I set pdfminorversion in LTMX. Both \pdfminorversion and \pdfvariable > minorversion fail with undefined control sequence. Does lpdf.setversion(major, minor) work in LMTX? Cheers, Henri > > Thanks, > Aditya >

Re: [NTG-context] Checking existence of a macro (control sequence) by Lua

2020-05-28 Thread Henri Menke
On 28/05/20, 00:42, cont...@vivaldi.net wrote: > Hello, > > is it possible to check whether a macro exists (or - is it a non-\undefined > control sequence) with Lua? Suppose: > > > \starttext > \def\MyMacro{Ahoj} > \def\MyMac#1#2{Something} > > \startluacode > IsDefined =

Re: [NTG-context] PGFPlots does not work with LMTX

2020-04-24 Thread Henri Menke
That has already been reported on the pgfplots bugtracker https://github.com/pgf-tikz/pgfplots/issues/350 and here on the mailing list https://mailman.ntg.nl/pipermail/ntg-context/2020/097514.html Here I quote Aditya's workaround: I have no clue what pgfplotsbinary.data.code.tex does, but

Re: [NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
On 16/04/20, 12:35, Hans Hagen wrote: > On 4/16/2020 10:51 AM, Henri Menke wrote: > > Dear list, > > > > I'm trying to build the plain format but it fails with > > > > $ mtxrun --script plain --make > > [...] > > ! I can't find file `lu

[NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
Dear list, I'm trying to build the plain format but it fails with $ mtxrun --script plain --make [...] ! I can't find file `luatex-plain.tex'. but mtxrun can find the file. $ mtxrun --find-file "luatex-plain.tex"

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Henri Menke
It would be really great if you'd stop wasting people's time by not crossposting. Cheers, Henri On 09/04/20, 09:04, Gerben Wierda wrote: > Nobody? > > > On 8 Apr 2020, at 12:20, Gerben Wierda wrote: > > > > I would like to use the result of transparent() straight in my macros, so I > > can

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
e end of the top line of your error message was > never > \def'ed. You can just continue as I'll forget about whatever was undefined. > > > mtx-context | fatal error: return code: 256 > > TeX Output exited abnormally with code 1 at Wed Apr 8 11:49:56 > > > Le mer. 8 av

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
ndefined. > > > mtx-context | fatal error: return code: 256 > > TeX Output exited abnormally with code 1 at Tue Apr 7 14:15:58 > > Le mar. 7 avr. 2020 à 04:21, Henri Menke a écrit : > > > The problem is that pgfplots uses the ^^ syntax to access characters bu

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-06 Thread Henri Menke
The problem is that pgfplots uses the ^^ syntax to access characters but this relies on ^ having catcode 7 which is not the case by default in ConTeXt. I had a similar issue in PGF before and that was fixed by just replacing the ^^ syntax with the ascii code constants from syst-ini.mkxl. Cheers,

Re: [NTG-context] Puzzle (for me)

2020-03-31 Thread Henri Menke
On 01/04/20, 01:20, Gerben Wierda wrote: > I have a string with double quotes that needs to become a text in a box in > METAPOST. METAPOST is used to create an image consisting of boxes and > connections. > > Basically, the approach is now something like this: > > TeX: calls Lua code with

Re: [NTG-context] Ignored spacings are ignored

2020-03-18 Thread Henri Menke
Dear Hans, Thank you for the examples. Usually glue is only set at the end of a list and the last active glue will be used, so the \frozen mechanism is a bit confusing maybe. Anyway, is there an ETA for the release of the luametatex source? I'd really like to see how \frozen is implemented.

[NTG-context] Ignored spacings are ignored

2020-03-17 Thread Henri Menke
Dear list, Sorry for the stupid title, I couldn't resist. :-) LuaTeX has the option to adjust spacing between different classes of math atoms. However, looking in the TeXbook, page 170, in the table for spacings between adjacent atoms, we find that some of those spacing are undefined (* in the

Re: [NTG-context] Only-black emojis in LMTX

2020-03-10 Thread Henri Menke
On 3/11/20 11:35 AM, Alejo Barrio Blaya wrote: > I'm trying to get emojis working. The examples that do, are only printing > plain black emojis. Not colors, nor greyscales. > I'm using the latest beta of LMTX. See section 5.2.13 Color in the fonts manual.

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Henri Menke
On 10/03/20, 10:01, Hans Hagen wrote: > On 3/9/2020 10:59 PM, Jorge Manuel wrote: > > > \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 > > Error: #2} > > l.11   \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{} > >                                                

Re: [NTG-context] Second derivative ''

2020-03-04 Thread Henri Menke
Looks like the ligature is broken. \starttext \startformula \left(f\right)'' = f'' \stopformula \startformula \left(f\right)″ = f″ \stopformula \stoptext On 3/5/20 11:44 AM, Weber, Matthias wrote: > Dear List, > > \starttext > \startformula > \left(f\right)'' = f'' > \stopformula > \stoptext

Re: [NTG-context] Third party modules in LMTX

2020-02-13 Thread Henri Menke
On 2/12/20 5:10 PM, jdh wrote: > > > I would like to use Wolfgang's t-letter module, but need some help. > > I found the following instructions: > > "The ConTeXt suite only comes with Taco's t-bib module. If you want to > install a new module, say Wolfgang's t-letter module, you can use > >

Re: [NTG-context] Global \setup has no effect while ad-hoc setting does

2020-02-13 Thread Henri Menke
On 2/14/20 6:30 PM, Wolfgang Schuster wrote: > On Fri, 14 Feb 2020 02:21:03 +0100 > Exp wrote: > >> Dear list, >> >> I want to prevent an overfull hbox caused by an inline typing by making the >> alignment very tolerant, but it didn't work: >> >> ``` >> \setupframedtext[ >> width=broad, >>

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangle (1,1);

Re: [NTG-context] beta vs current

2020-01-30 Thread Henri Menke
On 1/31/20 8:37 AM, Aditya Mahajan wrote: > On Thu, 30 Jan 2020, Hans Hagen wrote: > >> Hi, >> >> Already for quite some years the 'current' context release is the one >> that ends up on texlive. The rest of the year we talk about betas and >> very rarely an alpha release. This distinction no

Re: [NTG-context] removing extra margins

2020-01-28 Thread Henri Menke
On 1/29/20 10:09 AM, Pablo Rodriguez wrote: > Dear list, > > I need to add a PDF page, but removing extra margins that it contains. > > A sample would be: > > \setupexternalfigures[location=default] > \starttext > \externalfigure[cow.pdf] > \stoptext > > How could I crop 2ex

Re: [NTG-context] Historic ligatures with lucidaot

2020-01-16 Thread Henri Menke
On 1/17/20 10:52 AM, Otared Kavian wrote: > Hi all, > > How can I add the so-called « historic ligatures », such as in st, ct, to a > font (assuming it has that feature)? > > For instance > > \setupbodyfont[lucidaot] > > \starttext > > construction > > \stoptext > > does not show the

Re: [NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
= name -commands.uselibrary { +resolvers.uselibrary { name = name, patterns = patterns[environment], action = action, On 1/13/20 2:19 PM, Henri Menke wrote: > Dear Hans, > > Recent updates to ConTeXt broke my CV. This MWE > > \u

[NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
Dear Hans, Recent updates to ConTeXt broke my CV. This MWE \usemodule[letter] \starttext \stoptext fails with ...texmf-modules/tex/context/third/letter/base/s-cor-00.lua:88: attempt to call a nil value (field 'uselibrary') Here are the steps by which I can reproduce on my machine: rm -rf

Re: [NTG-context] LMTX for alpine linux (musl)

2020-01-02 Thread Henri Menke
On 1/3/20 8:23 PM, Mojca Miklavec wrote: > On Thu, 2 Jan 2020 at 14:42, Martin Hasoň wrote: >> >> Hi all, >> >> I would like use the LMTX in alpine linux (musl). Is this version planned to >> be prepared? > > What's the oldest version of Alpine that we would want to support? Regular LuaTeX can

Re: [NTG-context] Entity to receive donations?

2019-12-26 Thread Henri Menke
On 12/27/19 4:49 PM, Jon Wong wrote: Is there a formal entity for ConTeXt to receive donations? What about receiving earnings? https://group.contextgarden.net/payment.shtml ___ If your question is of interest to

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 3:33 PM, Henri Menke wrote: On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to the preceding characters and I would rather

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 10:19 AM, Rik Kabel wrote: List, Is there a way in ConTeXt to adjust the left-side kern for one character? No, kerns always come in pairs. The cap J in the font I am using is being set too close to the preceding characters and I would rather not insert a thinspace before each.

Re: [NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
On 12/11/19 12:23 PM, luigi scarso wrote: On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen wrote: On 12/11/2019 12:03 AM, luigi scarso wrote: On Tue, Dec 10, 2019 at 9:27 PM Henri Menke mailto:henrime...@gmail.com>> wrote: Dear devs, The example below crashes

[NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
Dear devs, The example below crashes LuaTeX with a segmentation fault. It is reproducible with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226. To this end I built 7226 from source with --debugopt to get a backtrace, which can be found below as well. Cheers, Henri ---

Re: [NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Henri Menke
On 12/9/19 10:02 AM, Fabrice Couvreur wrote: Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. No, eofill is basically just a frontend for the PDF primitive eofill, which works on a single connected path that intersects itself. If that wasn't

Re: [NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Henri Menke
On 12/5/19 2:10 PM, Jairo A. del Rio wrote: I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV), mainly for what can be done with them (the "mode=harf" feature and Lua language features). Although this is pretty easy with LaTeX: \usepackage{harfload}

Re: [NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
routines have broken the paragraph into lines. In this case, line breaks are identical to standard TeX behavior. So maybe just copy this paragraph to the LuaTeX manual. On 12/5/19 1:34 PM, Henri Menke wrote: Possible patch (can be directly used with `git apply') diff --git a/source/texk

Re: [NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
_ratio, paragraph_dir); } else { just_box = hpack(q, cur_width, exactly, paragraph_dir); On 12/5/19 10:04 AM, Henri Menke wrote: Dear devs, The \adjustspacing register is described in the LuaTeX manual as follows: When \adjustspacing has value 2, hz optimi

[NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
Dear devs, The \adjustspacing register is described in the LuaTeX manual as follows: When \adjustspacing has value 2, hz optimization will be applied to glyphs and kerns. When the value is 3, only glyphs will be treated. A value smaller than 2 disables this feature. However, setting

Re: [NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
uot;execute"); return 1; } int main(void) { lua_State *L = luaL_newstate(); luaL_openlibs(L); luaopen_oslibext(L); if (luaL_dostring(L, "os.execute([[date]])") != 0) { fprintf(stderr, "%s", lua_tostring(L, -1)); lua_pop(L, 1); }

[NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
Dear list, The following Lua script behaves differently when executed in Lua vs. LuaTeX. print(os.execute("date")) It seems that the definition of os_execute in loslibext.c was copied over from Lua 5.1 and not adapted to newer versions. $ lua5.1 test.lua 0 $ lua5.2 test.lua

Re: [NTG-context] layers and \llap

2019-11-19 Thread Henri Menke
On 11/20/19 3:16 AM, Pablo Rodriguez wrote: > Hi Hans, > > this comes from a previous message about an issue with \llap and layers. > > Here is the sample: > > \defineviewerlayer[print][state=stop,printable=yes] > \defineviewerlayer[view][state=start,printable=no] > > \starttext >

Re: [NTG-context] developer not verified error

2019-11-18 Thread Henri Menke
On 11/17/19 5:09 AM, Mojca Miklavec wrote> First I thought that we would have troubles with the binaries as soon > as GateKeeper was introduced (not sure which macOS version started > causing troubles), but somehow there were none, which at least came as > a pleasant surprise to me. Maybe this

Re: [NTG-context] maths simplifying fractions

2019-11-13 Thread Henri Menke
On 11/14/19 12:28 AM, Martin Althoff wrote: > Hi all, I am writing some maths exercises that include simplifying fractions. > For that > reason I would like to cross out some numbers. Unfortunately overstrike > doesn't do the > trick, eg with a 4 the overstrike is practically invisible. > > Is

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
On 11/9/19 10:38 PM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals ? > Thank you. > Fabrice > > \starttext > \startluacode > local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > local letters_2 = { "1", "Année", "1998",

[NTG-context] Where is tex/texmf-context?

2019-10-16 Thread Henri Menke
Dear list, Today I wanted to use ConTeXt MkIV instead of LMTX but when I ran context, I obtained the error mtxrun | unknown script 'context.lua' or 'mtx-context.lua' so I went to the installation directory /opt/context to check and noticed that tex/textmf-context was missing. I

Re: [NTG-context] Column(set)s & overlapping lines

2019-10-01 Thread Henri Menke
This has been asked many times. Columnsets need grid. \setuplayout[grid=yes] Cheers, Henri On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote: > Hello, > > I have the following code: > > > \definecolumnset[example][n=3,balancing=no] > \definecolumnsetspan[wide][n=2] > >

Re: [NTG-context] circuitikz meters

2019-09-30 Thread Henri Menke
Circuitikz uses \textbf inside, which is a LaTeX macro. Unfortunately, this is hardcoded within the ammeter and voltmeter nodes, so you can't easily change it. Instead you can simply provide a macro that does the correct thing. \usemodule[circuitikz] \let\textbf\bold % <--- \starttext

[NTG-context] SSL certificate expired

2019-09-30 Thread Henri Menke
Dear list, $ curl https://mailman.ntg.nl/ curl: (60) SSL certificate problem: certificate has expired Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] This mailing list is not DKIM (DMARC) compatible

2019-09-16 Thread Henri Menke
I think this is better reported to Mailman. I'm not sure to what extent list administrators have control over DKIM settings. https://gitlab.com/groups/mailman/-/issues On 9/17/19 1:34 AM, Gerben Wierda wrote: > In addition: Lists should keep the From address, the Subject, and the Message  >

[NTG-context] Sidefloats inside framed

2019-09-14 Thread Henri Menke
Dear list, Is there a way to get sidefloats working inside a frame? I'm currently designing a conference poster and I'm manually placing blocks using \setlayerframed where inside those blocks I'd like to have sidefloats. MWE is below. Cheers, Henri --- \starttext

Re: [NTG-context] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Henri Menke
On 9/11/19 3:50 AM, Aditya Mahajan wrote: > On Tue, 10 Sep 2019, Hans Hagen wrote: > >> On 9/10/2019 4:11 PM, Vladimir Lomov wrote: >>> Hello, >>> today I updated lmtx and on simple >>> >>>$ context --version >>> >>> I get segfault (in the same time luametatex --version works fine). >>>

Re: [NTG-context] Pb with tikz, \pdfsavepos and friends

2019-09-10 Thread Henri Menke
On 9/11/19 7:45 AM, Hans Hagen wrote: > On 9/10/2019 9:28 PM, Ulrike Fischer wrote: >> Am Tue, 10 Sep 2019 20:04:58 +0200 schrieb Hans Hagen: >> I checked the pgf versions in my ConTeXt installations from 20180913 and 20190909, they are the same : 3.0.1. So I suppose that the change

Re: [NTG-context] Cross references to column numbers

2019-09-09 Thread Henri Menke
Bump On 9/3/19 4:46 AM, Oliver von Criegern wrote: > Dear list members, > > is there any way to get a cross reference to a column in a two column layout? > > At least, I would need to get some value that tells me whether the target is > in the left or in the right column. How to achieve this?

Re: [NTG-context] coloring the logfile

2019-08-29 Thread Henri Menke
On 29/08/19 5:35 PM, Henning Hraban Ramm wrote: > >> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : >> >> Is it possible to force lines written in the log with \writestatus to have >> a specific color? The log can be very substantial and it would be nice to >> have some lines brought to

Re: [NTG-context] The odd semantics of \begincsname

2019-08-17 Thread Henri Menke
On 17/08/19 8:48 PM, Hans Hagen wrote: > On 8/17/2019 9:19 AM, Henri Menke wrote: >> Dear list, >> >> According to the LuaTeX documentation: >> >> “The \begincsname primitive is like \csname but doesn’t create a >> relaxed equivalent when there is

[NTG-context] The odd semantics of \begincsname

2019-08-17 Thread Henri Menke
Dear list, According to the LuaTeX documentation: “The \begincsname primitive is like \csname but doesn’t create a relaxed equivalent when there is no such name.” I thought it would be possible to use this fact to skip the \relax-ed definition when \def-ining a new control sequence, but

Re: [NTG-context] metafun 2

2019-08-14 Thread Henri Menke
Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? Cheers, Henri On 14/08/19 9:54 PM, Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface to > some of

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
On 8/11/19 10:51 AM, Hans Hagen wrote: > I'll do this (lmtx): > > metapost> use 'textext(.)' instead of 'btex . etex' > metapost> rewrapping btex ... etex at the outer level [[dummy]] > metapost> rewrapping btex ... etex at the outer level [["foo"]] > metapost

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported on

[NTG-context] Bug in LMTX: Color is lost after linebreak

2019-08-07 Thread Henri Menke
Dear devs, there seems to be a bug in LMTX. In the MWE below, the letter right after the linebreak is black instead of gray. I'm using the latest beta. mtx-context | main context file: /opt/context-lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current

Re: [NTG-context] font switching commands

2019-07-18 Thread Henri Menke
On 19/07/19 11:45 AM, Atsuhito Kohda wrote: > Hi all > "Manuals-ConTeXt wiki" provides us very important and useful > information and we find cont-eni.pdf in "overview". In the manual, > font switching commands \vi, \vii, \viii, \ix, \x, \xi, \xii are > explained in p.113 but it seems they don't

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Henri Menke
On 19/07/19 9:36 AM, Duncan Hothersall wrote: > On Thu, 18 Jul 2019 at 22:30, Henri Menke wrote: > >> >> Your formatting obscures the problem because compiling this example >> works fine. I think you are starting a new paragraph before {\bf ...}. >>

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Henri Menke
On 19/07/19 3:18 AM, Duncan Hothersall wrote: > I think I have identified a bug in the side figure mechanism which is > demonstrated by the minimal example below. The {\bf …} construct causes the > para in which it appears to stop behaving properly with the side figure, and > the text

Re: [NTG-context] Strange error updatng LMTX

2019-07-10 Thread Henri Menke
\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after* strc-flt.mkvi (where it is used) in context.mkiv. This has to be fixed by Hans. Cheers, Henri On 11/07/19 2:45 PM, Andres Conrado wrote: > When updating my LMTX installation today, I got this: > > tex error > tex

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
ly convert Beamer documents into ConTeXt's > simpleslide documents recently and it is very convenient > if I can use \pmatrix{a\cr c\cr} style because it is similar > to LaTeX documents. > > 2019年7月3日(水) 15:42 Henri Menke : > >> >> >> On 3/07/19 6:00 PM, Atsuhito

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is

Re: [NTG-context] [OT] rasperry 4

2019-06-25 Thread Henri Menke
On 25/06/2019, 09:15:43, luigi scarso wrote: > On Tue, Jun 25, 2019 at 12:15 AM Henri Menke wrote: > > > On 25/06/19 12:30 AM, luigi scarso wrote: > > > just seen > > > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ > > > > > > I

Re: [NTG-context] [OT] rasperry 4

2019-06-24 Thread Henri Menke
On 25/06/19 12:30 AM, luigi scarso wrote: > just seen > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ > > I would like to know your impressions Does it still need proprietary binary blobs in the kernel? Probably yes, so it is as useless as all the models before because it can

Re: [NTG-context] Old version of luatex for alpine linux (musl)

2019-06-08 Thread Henri Menke
On 6/8/19 7:02 PM, Martin Hasoň wrote: > Dear Mojca, > > musl LuaTeX binary is out of date again: > > This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev) (INITEX) > system commands enabled. > (/usr/share/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv >

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Henri Menke
You asked the same question on TeX.SX but also without MWE, so I have no idea what is going on. The MWE below works. Cheers, Henri --- \usebtxdefinitions[apa] \usebtxdataset[default][samples.bib] \definebtxrendering[default][apa] \setupbtx [apa:list:title:book] [style=] \starttext

Re: [NTG-context] Styles

2019-05-16 Thread Henri Menke
On 5/16/19 9:16 PM, Dmitry Starostin wrote: > 1. If I need square brackets in apa instead of parentheses, is there an > easy switch? For example \setupbtx [apa:cite:authornum] [left=,right=] > > 2. There was a suggestion to write one's own style. But where can one look > in the standalone

Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Henri Menke
On 16/05/19 7:46 AM, Eric Scmidt wrote: > Thank for your efforts to help me. This time I used the exact code snippet > you > wrote, but the results for inline math is still not what I would like to have > since I do see a clear difference in the limits placement. Please see this > image >

Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-12 Thread Henri Menke
To me the following two MWEs look pretty much the same: \setupbodyfont[10pt] % same font size as LaTeX \starttext $\sum_{k=1}^{n} a_k$ \startformula \sum\nolimits_{k=1}^{n} a_k \stopformula \stoptext \documentclass{article} \begin{document} $\sum_{k=1}^{n} a_k$ \[ \sum\nolimits_{k=1}^{n} a_k \]

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Henri Menke
On 26/04/19 1:29 AM, Mojca Miklavec wrote: > On Wed, 24 Apr 2019 at 12:51, Gour wrote: >> >> Hello, >> >> I believe that using GeoGebra for drawing, exporting to TikZ is the most >> approachable method for me to be able to create mathematic-related >> material like exams for the children in the

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below reproduces the problem in the latest beta and

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
On 4/18/19 10:22 PM, Fabrice Couvreur wrote: > Hi Henry, > This has no effect, the problem is the same. ConTeXt ver: 2019.04.16 08:54 MKIV beta PDF is attached. > Fabrice > > Le jeu. 18 avr. 2019 à 12:17, Henri Menke a écrit : > >> In ConTeXt the ampersand is no

  1   2   3   4   5   >