On Thu, 25 Jun 2026 at 00:05, Max Chernoff <[email protected]> wrote: > > Hi Eduardo, > > On Wed, 2026-06-24 at 23:34 -0300, Eduardo Ochs wrote: > > How do I replace the "???" in > > > > \def\FooBarPlic{Ploc} > > \directlua{ > > % ??? > > } > > > > by some Lua code that lists all the macros that have "Bar" > > in their names? > > "tex.hashtokens()" returns an array-like table containing all defined > csnames, so you can iterate over that with a for-loop to only select the > "Bar" macros. The code here > > https://tex.stackexchange.com/a/756029/270600 > > could potentially be useful if you need to do some deeper introspection.
PERFECT!!! Thanks! =) Cheers, Eduardo... =)
