File Not Found
! LaTeX Error: File 'XXX' not found.
What this error means
LaTeX tried to read a file (via \input{}, \include{}, \includegraphics{}, or similar) but couldn't locate it. LaTeX searches the current directory and its TeX installation paths.
Common causes
- The file path is wrong or contains a typo
- The file is in a different directory and the path isn't specified
- The file extension is wrong or missing
- For \includegraphics: the graphics package isn't loaded, or the image format isn't supported
How to fix it
Use the full relative path from the .tex file location. For images, ensure the file extension matches exactly. When using \includegraphics, place images in the same folder as the .tex file or specify the path explicitly.
Code examples
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{logo} % File 'logo' not found
\input{chapters/intro} % Wrong path
\end{document}\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{images/logo.png} % Correct path + extension
\input{chapters/intro.tex} % Correct path
\end{document}Related errors
Unknown Graphics Extension
! LaTeX Error: Unknown graphics extension: .XXX.
Unicode Character Not Supported (pdfLaTeX)
! Package inputenc Error: Unicode char U+XXXX not set up for use with LaTeX.
Cannot Determine Size of Graphic (No BoundingBox)
! LaTeX Error: Cannot determine size of graphic (no BoundingBox).
Citation Undefined
LaTeX Warning: Citation 'XXX' on page N undefined.
Test the fix live
Paste your LaTeX into the playground and compile instantly.

