0

Now the problem from File names with spaces stopped working in \includepdf and \includegraphics in TeX Live 2016 if compiled with LuaLaTeX has arrived to XeLaTeX.

After upgrading my system (to NixOS 20.03) and TeX Live distribution (to TeX Live 2019), I can no longer use file names with spaces in \includegraphics or \includepdf (from pdfpages) using grffile package if I compile with XeLaTeX.

Here is a minimal broken example:

\documentclass{article}
\usepackage{grffile}  % Extended file name support for graphics
\usepackage{graphics}

\begin{document}
\includegraphics{a b.pdf}
\end{document}

Error:

LaTeX Warning: File `a b.pdf' not found on input line 6.

! Unable to load picture or PDF file 'a'.
<to be read again> 
               b
l.6 \includegraphics{a b.pdf}

Why does it not work anymore?

Note: it still works with pdflatex.

Alexey
  • 2,099
  • 1
    Exactly what did you install? I've just updated to Upstream TeXLive 2019 frozen this morning. I have no issues with your example under pdflatex or xelatex (granted I used a png instead). – daleif Mar 02 '20 at 16:13
  • I want to know whether you're using upstream TeXLive (directly from the developers) or you're getting it via your OS, in which case they should make sure to make the proper updates. – daleif Mar 02 '20 at 16:14
  • 4
    Don't use grffile anymore. File names with spaces should work without it. Beside this: show the complete log-file so that we can see the versions of your packages. – Ulrike Fischer Mar 02 '20 at 16:19
  • Thanks @UlrikeFischer, could you please post this as an answer? Everything works, including LuaLaTeX, if i just remove \usepackage{grffile}. – Alexey Mar 02 '20 at 16:30
  • 2
    Well normally grffile shouldn't harm (the current version does nothing). Do you have an older version in your search path? My version is 2019/11/11 v2.1 . – Ulrike Fischer Mar 02 '20 at 16:32
  • @UlrikeFischer, indeed, i have Version: 2017/06/30 v1.18 of grffile. My TeX Live installation is managed by Nix package manager. Maybe i should submit an issue report. – Alexey Mar 02 '20 at 16:59
  • And which latex version do you have? – Ulrike Fischer Mar 02 '20 at 19:04
  • @UlrikeFischer, pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/NixOS.org). – Alexey Mar 02 '20 at 19:17
  • not the binary, the latex version. There should be a line like LaTeX2e <2020-02-02> patch level 5 in the log. – Ulrike Fischer Mar 02 '20 at 19:19
  • @UlrikeFischer, LaTeX2e <2019-10-01> patch level 1. – Alexey Mar 02 '20 at 19:25

0 Answers0