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

2020-02-21 Thread alephzorro
al Message ‐‐‐ On Friday, February 21, 2020 8:41 PM, Wolfgang Schuster wrote: > On Fri, 21 Feb 2020 13:34:20 + > alephzorro alephzo...@protonmail.com wrote: > > > Hello, > > I would like to display titles differently in TOC than they appear in text. > > For example, My

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

2020-02-21 Thread alephzorro
, February 21, 2020 4:04 PM, Hans Hagen wrote: > 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-t

[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