LaTeX tells you it cannot find a file — most often a package (.sty) or an image. The message always names the file it was looking for.
! LaTeX Error: File `paralist.sty' not found.
! Package pdftex.def Error: File `figure1.png' not found.Case 1: a missing package (.sty)
A \usepackage{…} points to a package the distribution does not know. First check the spelling. If the package is truly deprecated, look for its modern equivalent rather than installing it (see Old packages).
Case 2: a missing image
With \includegraphics{figure1}, the image file must be uploaded and the name must be exact (case included). On sarmate.net, upload the image into the same folder as your .tex file.
\usepackage / \includegraphics.Try it yourself
This example compiles. Add a line \usepackage{packagexyz} and recompile to see "File `packagexyz.sty' not found".
The method
- Read the file name between the backticks in the message.
- Does it end in
.sty? Check the\usepackagespelling or find the modern equivalent. - Is it an image? Upload the file and write the exact name (case included).
- Avoid spaces and accents in file names — a common cause.
An AI can help — directly in your code
AI assistants (Claude, Gemini, ChatGPT…) know LaTeX very well: show them the message and they find the typo or the package's modern equivalent. The usual drawback is the back-and-forth — copy, paste, repeat.
sarmate.net removes this round-trip with its MCP server: you connect the AI directly to your online editor. It reads your files, compiles them, analyzes the error log and fixes the code in place, with no copy-paste. You stay in control: nothing is changed without your approval.
Write and compile LaTeX online
Full editor, instant compilation (pdfLaTeX/XeLaTeX/LuaLaTeX), nothing to install.
Open the online editor