diff options
4 files changed, 23 insertions, 1 deletions
diff --git a/Master/texmf-dist/ls-R b/Master/texmf-dist/ls-R index 90becdae9b3..4b8474a33cc 100644 --- a/Master/texmf-dist/ls-R +++ b/Master/texmf-dist/ls-R @@ -88283,6 +88283,7 @@ hyperref.cfg latex.ini lualatex.ini lualatexiniconfig.tex +lualatexquotejobname.tex mllatex.ini pdflatex.ini xelatex.ini diff --git a/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini b/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini index f0c47ffaeec..c213f6193b3 100644 --- a/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini +++ b/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini @@ -7,4 +7,7 @@ % % the usual format initialization. \scrollmode +\let\dump\relax \input latex.ltx +\input lualatexquotejobname.tex +\pdfprimitive\dump diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini index 225bd4ced4f..ccab0f74f52 100644 --- a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini +++ b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini @@ -4,5 +4,7 @@ \input pdftexconfig.tex % pdf output by default. \scrollmode +\let\dump\relax \input latex.ltx - +\input lualatexquotejobname.tex +\pdfprimitive\dump diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex new file mode 100644 index 00000000000..19a1f8845e1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/latexconfig/lualatexquotejobname.tex @@ -0,0 +1,16 @@ +% $Id$ +% Manuel Pegourie-Gonnard, originally written 2010. WTFPL v2. +% +% Quote \jobname if it contains spaces, similarly to what pdfTeX does. +% +\everyjob\expandafter{\the\everyjob + \begingroup + \def\testsp#1 #2\relax{% + \ifx\relax#2\relax + \let\fixjobname\empty + \else + \edef\fixjobname{\def\noexpand\jobname{"\jobname"}}% + \fi}% + \edef\dotest{\noexpand\testsp\jobname\space\relax}\dotest + \expandafter\endgroup\fixjobname} +\endinput |