[luatex] % character in \directlua

Reinhard Kotucha reinhard.kotucha at web.de
Sat Feb 19 02:14:03 CET 2011

On 2011-02-19 at 09:10:31 +0900, Yannis Haralambous wrote:

 > Hi everybody, and sorry for my mailer: it gives me only two
 > choices, either "text" (my current choice, believe it or not) or
 > "rtf".

Hi Yannis,
you don't have to apologize if you can't send HTML. "text" is fine,
and we don't need anything else. :)
 > I'm writing to ask whether there is a more elegant way to use a %
 > in a \directlua argument (I need the Lua modulo operator) besides
 > changing the catcode of % to 12 around the \directlua command:

If you are using LaTeX, I recommend the great luacode package.

If you are using plain TeX, maybe you can steal code from the


Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.

More information about the luatex mailing list