Open main menu

Changes

<texcode>
\def\surroundwd#1%
{\ctxlua{userdata.surroundwithdashes([==[#1]==])}} % NB: quoting with [==[#1]==] is just like "#1", but in addition % it is robust against #1 containing the quotation mark `"`,% which would in the "#1" case prematurely end the quoted string.
</texcode>
 
== Making \startenv...\stopenv hook into Lua ==