On 9/5/2021 10:14 AM, Hans van der Meer via ntg-context wrote:
There is something I do not understand in the passing of parameters from
TeX to LuaTex.
This is my TeX definition:
\def\ListSort[#1]#2{\directlua{hvdm.listsort([===[#2]===],[===[#1]===])}}
tex haalt de {} rond #2 weg
Calling \List
And \ListSort[[abc]]{value} turns out to be worse: doesn't makes it into LuaTeX
at all.
dr. Hans van der Meer
> On 5 Sep 2021, at 10:14, Hans van der Meer via ntg-context
> wrote:
>
> There is something I do not understand in the passing of parameters from TeX
> to LuaTex.
> This is my TeX d
There is something I do not understand in the passing of parameters from TeX to
LuaTex.
This is my TeX definition:
\def\ListSort[#1]#2{\directlua{hvdm.listsort([===[#2]===],[===[#1]===])}}
Calling \ListSort[sep={ + }]{} delivers the string 'sep={ + }' into LuaTeX as
the printout in the logfile