[luatex] Using Lua to filter a macro argument

Javier Bezos listas at tex-tipografia.com
Fri Oct 6 19:08:26 CEST 2017


El 06/10/2017 17:30, Craig Parker-Feldmann escribió:

> What I want to know is: am I going about this in a sensible way? Is
> using the “string.gsub” function a good idea?

I think there's no reason not to use it.

> I am aware of the LPEG library, but, to be honest, learning it is pretty
> daunting.

You can have a look at the re library:

http://www.inf.puc-rio.br/~roberto/lpeg/re.html

Javier



More information about the luatex mailing list