I am trying to insert an image with the graphicx package using LuaLaTeX. I receive an error that the file cannot be found. I get this whether I use the \graphicspath argument or include the complete path in \includegraphics. After reading all similar discussions I could find, I have arrived at this code:
\documentclass[12pt]{article}
\usepackage{graphicx}
\graphicspath{{Figures/}}
\usepackage{fontspec}
\setmainfont{Century Gothic}
\begin{document}
\begin{figure}
\centering
\includegraphics{ACTB Normalized.png}
\end{figure}
\end{document}
The error I receive is:
LaTeX Warning: File `ACTB Normalized.png' not found on input line 10.
! Package luatex.def Error: File `ACTB Normalized.png' not found: using draft setting.
See the luatex.def package documentation for explanation.
Type H for immediate help.
…l.10 \includegraphics{ACTB Normalized.png}
I have also tried other image file formats including .jpg, .pdf, and .eps. Any insights on this issue would be greatly appreciated. Thank you!
Best Answer
Turned out to be a very simple solution. Apparently it didn't like the space in the filename of my graphic. Removing spaces or using
grffile
package solves the problem. Thank you for your comments!