Running MacTex 2019, all packages updated, and suddenly every \includegraphics instance returns the following error:

Package luatex.def Error: File 'path/to/file' not found: using draft setting.

I haven't any clue about what's going on except this other post about a similar issue with MiKTeX: MiKTeX graphics version 1.3b bug on Windows 10 (\set@curr@file undefined)

Every file I tried was compiling fine a month ago or so.

  • 3
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – DG' Nov 4 '19 at 16:57
  • 2
    Is this the exact error message? In this case, you may have forgotten to replace the string path/to/file with the actual path to your file. – Jonas Schwarz Nov 4 '19 at 16:58

Sorry, path/to/file was just a placeholder.

But I found the exact problem and possible workarounds while it is fixed.

My exact problem is described here: grffile & lualatex does not work together anymore (Oct 2019)

And here is the discussion on Github: https://github.com/ho-tex/oberdiek/issues/73

A temporary workaround is explained here: https://github.com/ho-tex/oberdiek/issues/73#issuecomment-543101052

| improve this answer | |
  • 3
    note that no one other than you could have answered your question as you hadn't even mention grffile in the question. – David Carlisle Nov 4 '19 at 18:17
  • I am very sorry about that. But, by the time I wrote my first message I didn't have any clue about what was going on. Further research pointed me to that direction, the interaction between grffile and lualatex. I mark the post as answered in case it is useful to anyone. My apologies. – fdiog Nov 6 '19 at 17:51
  • sure: no harm done really but just to explain why questions should almost always include a complete small document that shows the error. Then you don't need to guess what the issue is, people can see it and debug. – David Carlisle Nov 6 '19 at 18:27

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.