[tex-live] Bug in pdflatex: doesn't compile file with 2 adjacent spaces in the name

Philip Taylor P.Taylor at Rhul.Ac.Uk
Sun May 1 09:12:38 CEST 2016

Akira Kakuto wrote:

> Heiko gives an example to handle two adjacent spaces
> in a file name in SX. In the case of cmd.exe in windows
> "foo  bar.tex" can be compiled by
> pdftex "\def\x#1{\input \"foo#1#1bar.tex\"}\x{ }"

I applaud the idea of using #1 to represent a non-elidable space, but
from the perspective of the reader the following may be simpler to
understand (i.e., more transparent) --

D:\>tex \input "a\space \space a.tex"
This is TeX, Version 3.14159265 (TeX Live 2014/W32TeX) (preloaded
(./a  a.tex )
No pages of output.
Transcript written on "a  a.log".

Philip Taylor

More information about the tex-live mailing list