[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

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

2019-04-18 Thread Henri Menke
In ConTeXt the ampersand is not an alignment character but has catcode 12 by default. Use the "ampersand replacement" option. \usemodule[tikz] \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit] \starttext \starttikzpicture[>=stealth,thick,baseline, every right

Re: [NTG-context] Adjust kerning with superscript

2019-04-15 Thread Henri Menke
On 15/04/19 9:06 PM, Hans Hagen wrote: > On 4/15/2019 9:50 AM, Henri Menke wrote: >> Dear list, >> >> I am unhappy with how some fonts kern particular subscripts. For example in >> the default Latin Modern, subscripts to the Greek capital gamma could use >> som

[NTG-context] Adjust kerning with superscript

2019-04-15 Thread Henri Menke
Dear list, I am unhappy with how some fonts kern particular subscripts. For example in the default Latin Modern, subscripts to the Greek capital gamma could use some negative kerning. Because I can't (and don't want to) fix the font, I thought that I could patch the font on-the-fly in ConTeXt.

Re: [NTG-context] Undefined symbol lua_gettop

2019-04-06 Thread Henri Menke
On 4/7/19 6:02 AM, Aditya Mahajan wrote: > Hi, > > I am experimenting with using lua libraries with lmtx. I tried the > following: > > 1. Download the lcomplex library (from > http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/lcomplex-100.tar.gz) > > 2. Untar and modify the Makefile so that

Re: [NTG-context] How to update LMTX?

2019-04-04 Thread Henri Menke
Apr 2019 09:27:15 +1300 > Henri Menke wrote: > >> Dear list, >> >> With ConTeXt standalone there was an easy way to update the install script >> and >> the distrivution using >> >> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setu

[NTG-context] How to update LMTX?

2019-04-04 Thread Henri Menke
Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I

Re: [NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Henri Menke
xmf-linux-64/bin:... Cheers, Henri > > Best wishes, > Taco > >>> Op 2 apr. 2019 om 23:02 heeft Hans Hagen het volgende >>> geschreven: >>> >>> On 4/2/2019 10:46 PM, Henri Menke wrote: >>> >>&

[NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Henri Menke
Dear list, I have installed LMTX into /opt/context-lmtx/ and placed my favourite fonts into /opt/context-lmtx/tex/texmf-local/ as I also did in ConTeXt standalone. I would expect LMTX to find the newly installed otf files after regenerating the file tree but that is not the case, see my terminal

Re: [NTG-context] lmtx

2019-04-02 Thread Henri Menke
On 3/04/19 9:19 AM, Hans Hagen wrote: > On 4/2/2019 10:11 PM, Henri Menke wrote: >> >> >> On 2/04/19 10:05 PM, Hans Hagen wrote: >>> Hi, >>> >>> So, for those who hesitate to check out lmtx, here is some information. >>> >>>

Re: [NTG-context] lmtx

2019-04-02 Thread Henri Menke
On 2/04/19 10:05 PM, Hans Hagen wrote: > Hi, > > So, for those who hesitate to check out lmtx, here is some information. > > - In order to achieve long term stability context will use a lean and > mean variant of luatex (although for now context will keep running on > luatex too; i might

Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
On 1/04/19 9:22 AM, Hans Hagen wrote: > On 3/31/2019 10:13 PM, Henri Menke wrote: >> I see that the patch has been applied in current, but could you please also >> apply it in beta (which is what I and probably most others use daily)? > some time next week we continue with betas

Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
I see that the patch has been applied in current, but could you please also apply it in beta (which is what I and probably most others use daily)? Cheers, Henri On 6/03/19 12:12 PM, Henri Menke wrote: > Patch for the core file is attached. > > Chee

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Henri Menke
On 3/14/19 8:49 PM, Hans Hagen wrote: > On 3/14/2019 5:56 AM, Henri Menke wrote: >> >> Dear list, >> >> Something has changed in MetaFun and it can no longer be used in plain >> LuaTeX, >> with neither of >> >> luatex test.tex >>   

[NTG-context] Can't use MetaFun with mplib anymore

2019-03-13 Thread Henri Menke
Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LUATEXFUNCTIONALITY)" ! Equation cannot be performed

[NTG-context] Empty \margintext causes Lua error

2019-03-06 Thread Henri Menke
Dear list, MWE: \starttext \margintext{} \stoptext Error: ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:736: table index is nil Please fix. Cheers, Henri ___ If your question is of interest to

[NTG-context] Spurious space in \startnarrower

2019-03-05 Thread Henri Menke
Patch for the core file is attached. Cheers, Henri diff --git a/tex/context/base/mkiv/spac-hor.mkiv b/tex/context/base/mkiv/spac-hor.mkiv index 32b7f06fb..24c7c7893 100644 --- a/tex/context/base/mkiv/spac-hor.mkiv +++ b/tex/context/base/mkiv/spac-hor.mkiv @@ -717,7 +717,7 @@

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Hm, it looks like the macro code hasn't been updated from 2018 yet, because after fixing isfile it crashes when trying to load the old pdfe library. Cheers, Henri On 1/03/19 12:14 PM, Henri Menke wrote: > Dear list, > > I just installed TeX Live 2019 pretest and running context --m

[NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Dear list, I just installed TeX Live 2019 pretest and running context --make fails with error in callback: ...xlive/2019/texmf-dist/tex/context/base/mkiv/luat-cod.lua:194: attempt to call a nil value (upvalue 'isfile') This can easily be fixed by replacing in luat-cod.lua local

[NTG-context] horizontal headalternatives ignore indentnext

2019-02-27 Thread Henri Menke
Dear list, If I choose the headalternative to be of horizontal type, e.g. “text”, the head placement will ignore the indentnext option. This can be traced back to the \strc_rendering_stop_placement macro where there is a check \ifconditional\headisdisplay

Re: [NTG-context] \mathematics might be missing \everymathematics

2019-02-25 Thread Henri Menke
Bump On 19/02/19 10:02 PM, Henri Menke wrote: > Dear Hans, > > In the following example I want to locally set lcgreek=normal but it is > not picked up because the attribute is not propagated. When I enter > \everymathematics manually it works fine. Is this by design or is thi

Re: [NTG-context] em-dash ligature is converted to en-dash in the generic fontloader

2019-02-25 Thread Henri Menke
On 26/02/19 3:55 AM, Ulrike Fischer wrote: > Am Sat, 23 Feb 2019 17:11:12 +0100 schrieb Hans Hagen: > >> because followed by -- is pretty obscure ... a replace could be >> seen as --- and when hyphenated as - -- and such ... it's about time >> that texies start using the proper unicode

Re: [NTG-context] em-dash ligature is converted to en-dash in the generic fontloader

2019-02-25 Thread Henri Menke
On 26/02/19 3:55 AM, Ulrike Fischer wrote: > Am Sat, 23 Feb 2019 17:11:12 +0100 schrieb Hans Hagen: > >> because followed by -- is pretty obscure ... a replace could be >> seen as --- and when hyphenated as - -- and such ... it's about time >> that texies start using the proper unicode symbols

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-24 Thread Henri Menke
On 2/24/19 10:23 PM, Mikael P. Sundqvist wrote: > On Sat, Feb 23, 2019 at 8:17 AM Mikael P. Sundqvist wrote: >> >> On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen wrote: >> > >> > On 2/22/2019 9:24 AM, Henri Menke wrote: >> > > I can confirm. My w

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-22 Thread Henri Menke
I can confirm. My workaround which predates the stylealternative mechanism also stopped working, so there must be an issue on the level of font feature selection. \definefontfeature [math-text] [math-text] [ss04=yes] \definefontfeature [math-script] [math-script]

[NTG-context] \mathematics might be missing \everymathematics

2019-02-19 Thread Henri Menke
Dear Hans, In the following example I want to locally set lcgreek=normal but it is not picked up because the attribute is not propagated. When I enter \everymathematics manually it works fine. Is this by design or is this a bug? MWE below. Cheers, Henri --- \starttext The greek letter

  1   2   3   4   5   >