Re: [NTG-context] Typing within doifmode leads to error

2021-03-18 Thread Aditya Mahajan
On Fri, 19 Mar 2021, Christoph Reller wrote: > Hi, > > Consider the following MWE: > > \definetyping[T] > \definemode[mode][yes] > \starttext > \doifmode{mode}{% > \startT > Bla > \stopT} > \stoptext > > Compilation with the currently latest ConTeXt LMTX (ver: 2021.03.17 17:46 > LMTX

[NTG-context] Typing within doifmode leads to error

2021-03-18 Thread Christoph Reller
Hi, Consider the following MWE: \definetyping[T] \definemode[mode][yes] \starttext \doifmode{mode}{% \startT Bla \stopT} \stoptext Compilation with the currently latest ConTeXt LMTX (ver: 2021.03.17 17:46 LMTX fmt: 2021.3.18) fails with: tex error > runaway error: end of file

Re: [NTG-context] lmt_followtext and cycle

2021-03-18 Thread Hans Hagen
On 3/18/2021 10:26 PM, Pablo Rodriguez wrote: Hans, I’m afraid that lmt_followtext has problems with cycle again. \starttext \startMPcode{doublefun} path p ; p := (0,0)..(3,3.5)..(9,-3.5).. (12,0)..(9,3.5)..(3,-3.5)..cycle; draw p xsized TextWidth ; draw lmt_followtext [

Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Thanks, that solved it. Denis -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Donnerstag, 18. März 2021 17:44 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Ligatures missing with Times New Roman Hans Hagen schrieb am 18.03.2021 um

[NTG-context] lmt_followtext and cycle

2021-03-18 Thread Pablo Rodriguez
Hans, I’m afraid that lmt_followtext has problems with cycle again. \starttext \startMPcode{doublefun} path p ; p := (0,0)..(3,3.5)..(9,-3.5).. (12,0)..(9,3.5)..(3,-3.5)..cycle; draw p xsized TextWidth ; draw lmt_followtext [ text = "\dorecurse{9}{Just random text · } ", path =

Re: [NTG-context] working on page refs with MP

2021-03-18 Thread Hans Hagen
On 3/18/2021 6:14 PM, Werner Hennrich wrote: metafun > log > metafun > log > error: Improper subscript has been replaced by zero metapost    > log > <*> ... numeric numFirst; numFirst := \ref [page] watch closely to the previous log line ... you're missing quotes so mp sees

Re: [NTG-context] Math: Nested Cases?

2021-03-18 Thread Aditya Mahajan
On Thu, 18 Mar 2021, Weber, Matthias wrote: > Hello, > > Is it possible to nest cases in math, like so: In principle, it should be. But we never tested this and I suspect that there is some macro which doesn't get initialized correctly in nested cases. > \starttext > \startformula > x= >

[NTG-context] Math: Nested Cases?

2021-03-18 Thread Weber, Matthias
Hello, Is it possible to nest cases in math, like so: \starttext \startformula x= \startcases[align={right,left},distance=3pt] \NC a \NC = \startcases[align={right,left},distance=3pt] \NC 1 \NC \text{case a1} \NR

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
Hello everyone, I'm having page references and want to calc / draw 'Page x of y' for some subsections in MP. How can I pass 'em down so I end up with numbers to do calculations with? \setuplayout[header=15mm] \def\myHeader[#1]#2{ \ignorespaces \getdummyparameters[ref=,next=,#1]

Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread Wolfgang Schuster
Hans Hagen schrieb am 18.03.2021 um 17:00: On 3/18/2021 4:12 PM, denis.ma...@ub.unibe.ch wrote: Ok. But where are they coming from in Word? I'm on Windows. i don't see them in word when i enter 'effe' and select times, but i admit that my knowledge of word is zero so \definefontfeature

Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread Hans Hagen
On 3/18/2021 4:12 PM, denis.ma...@ub.unibe.ch wrote: Ok. But where are they coming from in Word? I'm on Windows. i don't see them in word when i enter 'effe' and select times, but i admit that my knowledge of word is zero so Hans

Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Ok. But where are they coming from in Word? I'm on Windows. Von: Hans Hagen Gesendet: Donnerstag, 18. März 2021 15:43:45 An: mailing list for ConTeXt users; Maier, Denis Christian (UB) Betreff: Re: [NTG-context] Ligatures missing with Times New Roman On

Re: [NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread Hans Hagen
On 3/18/2021 2:02 PM, denis.ma...@ub.unibe.ch wrote: Hi I’m have to use Times New Roman for a text, and I’m finding that ligatures don’t seem to work properly. \starttext \definedfont[name:timesnewromanpsmt*default at 12 pt] ff fl \definedfont[name:linlibertineo*default at 12 pt] ff fl

[NTG-context] Ligatures missing with Times New Roman

2021-03-18 Thread denis.maier
Hi I'm have to use Times New Roman for a text, and I'm finding that ligatures don't seem to work properly. \starttext \definedfont[name:timesnewromanpsmt*default at 12 pt] ff fl \definedfont[name:linlibertineo*default at 12 pt] ff fl \switchtobodyfont[pagella] ff fl \stoptext The ff and fl

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-18 Thread denis.maier
That's neat Hans. Thanks. Especially didn't know about \writedatatolist. What I want is basically to manually construct a toc entry, but in compliance with the overall styling of the contents list. So, I was hoping for something like this?