Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
Yup, this works gloriously for reversing titles. And more complex transformations (in my case mostly weird stuff like generating morse code for titles to be shown in TOC) can be done by specifying "list" for all chapters as Hans suggested. Thank you! Jason ‐‐‐ Original Message ‐‐‐

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
The "list" seems capable of handling even complex lua macros. It does not require much work to add this to all chapters manually in my case so this solution works for me (and there's always awk and such for larger things). Thank you! Jason ‐‐‐ Original Message ‐‐‐ On Friday, February

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Wolfgang Schuster
On Fri, 21 Feb 2020 13:34:20 + alephzorro wrote: > Hello, > > I would like to display titles differently in TOC than they appear in text. > For example, MyChapter1 -> 1retpahCyM. Basically any highly non-trivial > transformation that really needs Lua. > > I've written simple Lua macros

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Hans Hagen
On 2/21/2020 2:34 PM, alephzorro wrote: Hello, I would like to display titles differently in TOC than they appear in text. For example, MyChapter1 -> 1retpahCyM. Basically any highly non-trivial transformation that really needs Lua. \starttext \completecontent

[NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
Hello, I would like to display titles differently in TOC than they appear in text. For example, MyChapter1 -> 1retpahCyM. Basically any highly non-trivial transformation that really needs Lua. I've written simple Lua macros before, but the following approach trying to define textcommand does