[Dev-luatex] commands with a non-letter in token.set_macro

luigi scarso luigi.scarso at gmail.com
Wed Dec 11 00:07:00 CET 2019


On Tue, Dec 10, 2019 at 10:36 PM Ulrike Fischer <news3 at nililand.de> wrote:

>
> Commands that should be use in token.set_macro must already exist.
> But while it is easy to predefine a command like \blub it seems not
> to be possible to do it with commands consisting of a \ with a
> non-letter.
>

perhaps

--[==[ luatest.lua ]==]
token.set_macro("foo",[==[\blub\csname !\endcsname]==])


%%test.tex
\tracingall
\def\!{[hallo!]}
\def\blub{[hallo]}
\directlua{require"luatest"}
\show\foo
\foo
\bye

(untested)

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20191211/d4638efa/attachment.html>


More information about the dev-luatex mailing list