Re: [NTG-context] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi Mikael, On Mon, May 01, 2023 at 05:48:40PM +0200, Mikael Sundqvist via ntg-context wrote: > [...] > This works here (but maybe there should be a simpler way): > > \definemathfunction > [argmax] > [mathlimits=auto] > > \setupmathlabeltext > [en] > [argmax=arg\sixperemspace max] >

[NTG-context] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi all, I wanted to define a custom math function (similar to log etc.) for argmax. However, I wanted to have a small space between "arg" and "max" and limits should work properly. I am using a up-to-date LMTX installation. Without the first constraint it's easy: > % old way: >

Re: [NTG-context] \nolimits no effect in LMTX

2022-08-16 Thread Stefan Haller via ntg-context
On Tue, Aug 16, 2022 at 05:47:06PM +0200, Hans Hagen via ntg-context wrote: > \definemathoperator[nosum][sum][method=nolimits] > > \startformula > \sum [method=nolimits]_{i=1}^{n} a_i + > \sum _{i=1}^{n} a_i + > \sum [bottom={n},top={i=1},topcolor=red] a_i + > \nosum _{i=1}^{n} a_i >

[NTG-context] \nolimits no effect in LMTX

2022-08-16 Thread Stefan Haller via ntg-context
Hello, The \nolimits macro has no effect in LMTX, but works fine in the context mkiv version of my texlive installation. Small example: \starttext \startformula \sum\nolimits_{i=1}^{n} a_i \stopformula \stoptext In LMTX the sub- and superscripts are incorrectly placed below and above the sum

[NTG-context] Bug in startalign

2022-07-21 Thread Stefan Haller via ntg-context
Hi! I (presumably) found a bug in the recent math changes of the latest upload. If a cell of the startalign environment is empty, something internally to the macro seems to be breaking. Minimal example: \starttext \startformula \startalign \NC \NC a \NR \NC b \NC c \NR \stopalign

[NTG-context] Problems with MetaFun Transparency Groups

2022-06-13 Thread Stefan Haller via ntg-context
Hi everyone! I have a question regarding transparency groups in MetaFun. As a toy example, I want to draw a grid of lines where the whole grid should have an opacity of 25%. If I draw intersecting lines individually with `withtransparency(1, .25)` the overlapping parts will have a total opacity