Rules / Output

LaTeX Error: File `…' not found — Figure file not found

An \includegraphics file does not exist, so the PDF has an empty box.

Fix

Fix the path and file name (case-sensitive).

Example

Reproduced on TeX Live 2026 by CI · lualatex · corpus/missing-figure

Figure file does not exist

Fails: main.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
  \centering
  \includegraphics[width=0.6\linewidth]{figures/loss-curve}
  \caption{Training loss.}
\end{figure}
\end{document}
Fixed
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
  \centering
  \includegraphics[width=0.6\linewidth]{example-image}
  \caption{Training loss.}
\end{figure}
\end{document}
What TeX prints in main.log
! LaTeX Error: File `figures/loss-curve' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.6 ...cs[width=0.6\linewidth]{figures/loss-curve}
                                                  
I could not locate the file with any of these extensions:
.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2,.eps
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.