[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
Gerion Entrup schrieb am 25.01.2024 um 09:18: Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
Hi, You can try: > \unexpanded\def\do_my_command[#1]#2{% But there is probably a cleaner way to implement optional arguments with lua? Best wishes, Taco > On 25 Jan 2024, at 09:18, Gerion Entrup wrote: > > Hi, > > I want to make a proper definition of a new command to be able to > process