[Dev-luatex] \jobname with spaces

Hans Hagen pragma at wxs.nl
Tue Apr 28 08:31:04 CEST 2009


Manuel Pégourié-Gonnard wrote:
> Hi,
> 
> Consider the following source file
> 
> \edef\x{\jobname}
> \show\x
> 
> Run it with pdftex, you get:
> 
>> \x=macro:
> ->"foo bar".
> 
> With luatex (0.40):
> 
>> \x=macro:
> ->foo bar.
> 
> This is a problem eg when using LaTeX when it tries to \input\jobname.aux.
> 
> Regardless of any particular format, there is a consistency problem with pdftex,
> which should be fixed, imo by making luatex behave the same as pdftex, namely
> quote the file name in \jobname.

more sounds like a bug in pdftex to me, luatex also supports {some name} 
and you don't want {} back then

sorry, but luatex is *not* in all aspecets the same as pdftex

of course you can just overload jobname if it suits you

\let\oldjobname\jobname \def\jobname{"\oldjobname"}

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list