5

The following used to work in TeX Live 2015 compiled with LuaLaTeX, but does not work in TeX Live 2016:

\documentclass{minimal}
\usepackage{grffile}  % Extended file name support for graphics
\usepackage[final]{pdfpages}

\begin{document}
\includepdf[landscape,nup=1x2,trim=2.25cm 2.5cm 2.25cm 2cm,pages=-]{cours algèbre.pdf}
\end{document}

The error message is:

Package luatex.def Error: File `cours algèbre.pdf' not found.

However, it works with PDFLaTeX and XeLaTeX! (For PDFLaTeX this is quite surprising as I have not specified anywhere that my source encoding is UTF-8.)

The reason I used LuaLaTeX initially was that it produced a slightly smaller PDF than XeLaTeX and twice smaller PDF than PDFLaTeX.

Here is a minimal example, with \includegraphics instead of \includepdf, which also compiles with PDFLaTeX and XeLaTeX, but not with LuaLaTeX:

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

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

I am using TeX Live on Mac OS.

  • 1
    See this question, perhaps: tex.stackexchange.com/questions/120526/… – Steven B. Segletes Aug 30 '16 at 11:52
  • 1
    If i use just algèbre.pdf, it compiles ok. – Alexey Aug 30 '16 at 11:57
  • 1
    Please don't use minimal for examples. – cfr Aug 30 '16 at 12:12
  • 2
    The char with accent is one problem: For me on windows it doesn't work (neither with pdflatex nor lualatex). The space is another: In luatex.def the definition of \GPT@IfFileExists has changed, it no longer checks for \pdf@filesize and so breaks grffile. @DavidCarlisle. – Ulrike Fischer Aug 30 '16 at 12:16
  • 2
    Because minimal is not designed for minimal examples and can cause spurious errors. Even if you know that it is OK in this particular case because you've read the code and know that what it doesn't do doesn't matter here, using it in examples is a bad idea as less experienced users will, naturally enough, assume it is a class designed for typesetting minimal examples, which it certainly is not. There is a Q&A specifically about this if you search. I am not claiming it is causing the problem you are asking about, but that there are independent reasons not to use it. – cfr Aug 30 '16 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.