Re: [NTG-context] lmtx update

2020-08-01 Thread Aditya Mahajan
On Fri, 31 Jul 2020, Hans Hagen wrote: Thanks for the update. Other work in progress is: better columns in itemize, esp proper footnote support (not that I ever need that but I know users do so ...), experiments work ok, but I need to check spacing. In general, footnotes (will) behave a bit

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban, Thanks for the hint… indeed I did see that \ColWidth command but didn't think about its definition… Sorry! Now with \ColWidth defined, your code works fine and it has the advantage that the text of the sidenote begins in the margin at the level where the \footnote command appears.

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 22:36 schrieb Otared Kavian : > > Hi Hraban, > > Thank you for taking the time to send your code for sidenotes. > Unfortunately when I add > > \starttext > test\footnote{A footnote in the margin.} > \stoptext > > to your code, I get an error and unfortunately with recent

Re: [NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 22:44 schrieb Wolfgang Schuster > : >>> \define[1]\Ort{\expanded{\index{...}}} >> Ah, I never know where to expand (tried \expanded\ctxlua). > > \expanded needs a argument, i.e. \expanded{...} I recognized it doesn’t work otherwise. But I thought TeX would always use the

Re: [NTG-context] consistent index entries

2020-08-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.08.2020 um 22:16: Am 01.08.2020 um 21:30 schrieb Wolfgang Schuster : \def\Ort#1{\index{\ctxlua{user.Lookup("#1")}}} You have to expand the \index argument: \define[1]\Ort{\expanded{\index{...}}} Ah, I never know where to expand (tried \expanded\ctxlua).

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban, Thank you for taking the time to send your code for sidenotes. Unfortunately when I add \starttext test\footnote{A footnote in the margin.} \stoptext to your code, I get an error and unfortunately with recent versions of LMTX the error message ! Undefined control sequence is not

Re: [NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 21:30 schrieb Wolfgang Schuster > : >> \def\Ort#1{\index{\ctxlua{user.Lookup("#1")}}} > > You have to expand the \index argument: > > \define[1]\Ort{\expanded{\index{...}}} Ah, I never know where to expand (tried \expanded\ctxlua). Now,

Re: [NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 21:01 schrieb Jairo A. del Rio : > > Hi, Henning. According to the garden, something like: > > \def\Ort#1{\index[#1]{\ctxlua{user.Lookup("#1")}}} > > as long as #1 is capable of being sorted in the normal way, should work. Thank you, but that doesn’t work if my lookup

Re: [NTG-context] consistent index entries

2020-08-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.08.2020 um 20:49: Am 01.08.2020 um 13:22 schrieb Henning Hraban Ramm : Hi, besides the CG journal I’m working on a scientific biography with huge person and locality indexes (named Person and Locality for the examples). In many cases, the author wants

Re: [NTG-context] consistent index entries

2020-08-01 Thread Jairo A. del Rio
Wrt formatting (e.g. \index{\emph{something}}), the garden also mentions processors for MkIV (https://wiki.contextgarden.net/Registers#Processors), so you can wrap them with custom commands, in case it helps. Cordially, Jairo. El sáb., 1 de ago. de 2020 a la(s) 14:01, Jairo A. del Rio (

Re: [NTG-context] consistent index entries

2020-08-01 Thread Jairo A. del Rio
Hi, Henning. According to the garden, something like: \def\Ort#1{\index[#1]{\ctxlua{user.Lookup("#1")}}} as long as #1 is capable of being sorted in the normal way, should work. Regards, Jairo El sáb., 1 de ago. de 2020 a la(s) 13:49, Henning Hraban Ramm ( te...@fiee.net) escribió: > > > >

Re: [NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 13:22 schrieb Henning Hraban Ramm : > > Hi, > > besides the CG journal I’m working on a scientific biography with huge person > and locality indexes (named Person and Locality for the examples). > > In many cases, the author wants additional information in the index, e.g.

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 18:57 schrieb Otared Kavian : > > Hi Hraban, > > Thank you for reminding me of the solution cooked up by Wolfgang for you a > few years ago. That solution works fine when the notes are short enough, but > in some cases the notes in the margin bump into each other (indeed

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
Hi Hraban, Thank you for reminding me of the solution cooked up by Wolfgang for you a few years ago. That solution works fine when the notes are short enough, but in some cases the notes in the margin bump into each other (indeed it is not a good habit to have long notes, but in some cases one

Re: [NTG-context] lmtx update

2020-08-01 Thread Henning Hraban Ramm
> Am 01.08.2020 um 15:20 schrieb Otared Kavian : > > Regarding footnotes, would it be possible to have a built-in support for > writing the footnotes in the margin? (For instance, assuming that the layout > is such that for instance the right margin takes 1/3 of the page width, then > the

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
> On 1 Aug 2020, at 16:17, Hans Hagen wrote: > > On 8/1/2020 3:20 PM, Otared Kavian wrote: >>> On 31 Jul 2020, at 10:32, Hans Hagen wrote: >>> >>> […] >>> >>> Other work in progress is: better columns in itemize, esp proper footnote >>> support (not that I ever need that but I know users do

Re: [NTG-context] lmtx update

2020-08-01 Thread Hans Hagen
On 8/1/2020 3:20 PM, Otared Kavian wrote: On 31 Jul 2020, at 10:32, Hans Hagen wrote: […] Other work in progress is: better columns in itemize, esp proper footnote support (not that I ever need that but I know users do so ...), experiments work ok, but I need to check spacing. In general,

Re: [NTG-context] handle_error_hook in LuaMetaTeX

2020-08-01 Thread Hans Hagen
On 7/31/2020 6:17 PM, Marcel Fabian Krüger wrote: Hi, thanks for handling f file consition in LuaMetaTeX. While playing with that, I encountered a potential bug in the latest LuaMetaTeX version: If handle_error_hook is executed and returns any number, LuaMetaTeX segfaults. (I'm pretty sure that

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
> On 31 Jul 2020, at 10:32, Hans Hagen wrote: > > […] > > Other work in progress is: better columns in itemize, esp proper footnote > support (not that I ever need that but I know users do so ...), experiments > work ok, but I need to check spacing. In general, footnotes (will) behave a >

Re: [NTG-context] limit of index entries?

2020-08-01 Thread Hans Hagen
On 8/1/2020 1:54 PM, Henning Hraban Ramm wrote: Hi, my aforementioned person index has more than 600 entries. If I get over ~500, ConTeXt (MkIV, several versions) breaks with ! error (push_node): stack overflow mtx-context | fatal error: return code: 256 Is there a hard limit? Can I

[NTG-context] limit of index entries?

2020-08-01 Thread Henning Hraban Ramm
Hi, my aforementioned person index has more than 600 entries. If I get over ~500, ConTeXt (MkIV, several versions) breaks with ! error (push_node): stack overflow mtx-context | fatal error: return code: 256 Is there a hard limit? Can I change it? Hraban

[NTG-context] consistent index entries

2020-08-01 Thread Henning Hraban Ramm
Hi, besides the CG journal I’m working on a scientific biography with huge person and locality indexes (named Person and Locality for the examples). In many cases, the author wants additional information in the index, e.g. \Locality{Altona (Hamburg)} \Locallity{Breslau (pol. Wrocław)} or

Re: [NTG-context] Alphabet & color

2020-08-01 Thread Hans Hagen
On 7/31/2020 10:10 PM, Marcus Vinicius Mesquita wrote: Ok, after changing the glyph names in colorfont.lfg things run smoothly but for six glyphs: uacute, ucircumflex, udieresis, Uacute, Ucircumflex, Udieresis Have I hit a bug? Some font oddness ... use "uhungarumlaut", "Uhungarumlaut",