[luatex] % character in \directlua

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sat Feb 19 13:20:40 CET 2011


On Sat, Feb 19, 2011 at 10:16:24AM +0100, Paul Isambert wrote:

> Any solution implies either catcode change or \string. The simplest,
> perhaps, would be to define a macro:
> 
> \bgroup
> \escapechar=-1
> \xdef\pc{\string\%}
> \egroup

latex.ltx provides \@percentchar (also \@backslashchar).

Yours sincerely
  Heiko Oberdiek


More information about the luatex mailing list