[NTG-context] \setregisterentry levels with colon (keys:1, entries:1) in lua

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sat Oct 10 21:32:32 CEST 2020


Jano Kula schrieb am 10.10.2020 um 20:52:
> Greetings!
> 
> One can can set register levels with keys and entries
> \setregisterentry[MyIndex]
>      [keys:1=Sorting Key Level 1,
>       entries:1=Entry Level 1,
>       keys:2=Sorting Key Level 2,
>       entries:2=Entry Level 2]
> 
> Rewriting the code in lua works until colon (:) is used.
> \startluacode
> context.setregisterentry({ "MyIndex" },
>     { keys:1="C Level 1", entries:1="C Level 2"})

context.setregisterentry (
     { "MyIndex" },
     { ["keys:1"] = "...", ["entries:1"] = "..." }
)

Wolfgang


More information about the ntg-context mailing list