[NTG-context] Re: Playing with math font setup

2024-05-21 Thread Hans Hagen
On 5/21/2024 4:40 PM, Ali Ali wrote: Hi, hope everyone's doing well! Is it possible to setup math font so that all the basic ascii characters (i.e. a..zA..Z0..9) glyphs are substituted with current serif (or sans) font. I tried playing with fallback thing but it didn't got me anywhere! e.g. $

[NTG-context] Playing with math font setup

2024-05-21 Thread Ali Ali
Hi, hope everyone's doing well! Is it possible to setup math font so that all the basic ascii characters (i.e. a..zA..Z0..9) glyphs are substituted with current serif (or sans) font. I tried playing with fallback thing but it didn't got me anywhere! e.g. $x$ will use the 'x' glyph from current

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
Excerpts from Wolfgang Schuster's message of May 21, 2024 3:54 pm: > Luc Chabassier schrieb am 21.05.2024 um 15:35: >> Excerpts from Hans Hagen's message of May 21, 2024 11:45 am: >>> concerning notes in the margin ... did you try the built in magin text >>> mechanisms? >> I did, but as far as I kn

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
vm via ntg-context schrieb am 21.05.2024 um 16:07: On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}    {\bold{#1:} \samplefile{ward}%     \startmarginblock Note #1\stopmarginblock     \par} \stoptext when I compile this, i get per pa

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
just noticed that if the notes need more margin space then are pages available by the text, they get lost. e.g. this mwe generates 10 pages with 100 par but only 80 notes will show up. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginb

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}   {\bold{#1:} \samplefile{ward}%    \startmarginblock Note #1\stopmarginblock    \par} \stoptext when I compile this, i get per page with \par 1..10 -> the notes 1..11 \par 11..20 ->

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
Luc Chabassier schrieb am 21.05.2024 um 15:35: Excerpts from Hans Hagen's message of May 21, 2024 11:45 am: you have to provide some mwe so that we can see what is intended; in principle much info is available one way or the other I joined a minimal working example. The lua function `userdata.s

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Hans Hagen
On 5/21/2024 10:26 AM, Luc Chabassier wrote: Hi everyone, I have recently migrated my PhD dissertation from LaTeX to ConTeXt. In LaTeX I was using kaobook, a template with lots of margin notes, but I was frustrated with the automatic placement of the notes. I implemented a system using overlays

[NTG-context] LUA API for page numbers

2024-05-21 Thread Luc Chabassier
Hi everyone, I have recently migrated my PhD dissertation from LaTeX to ConTeXt. In LaTeX I was using kaobook, a template with lots of margin notes, but I was frustrated with the automatic placement of the notes. I implemented a system using overlays that automatically places the notes using lua.