Graphics, Figures & TablesFound file is reported not found

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Found file is reported not found

Post by Singularity »

The following code includes a .JPG file. The output includes the file correctly, but displays the file name next to it and the build output says "LaTeX Warning: File `Review Test 1 Limits.JPG' not found on input line 6. But the file was found, and included. How do I fix this warning?

Code: Select all

\documentclass[12pt,fleqn,reqno]{article}
\usepackage{amsfonts,amsmath,amssymb,amsthm}
\usepackage{adjustbox}			% Use \adjincludegraphics with vertical alignment in place of \includegraphics
\begin{document}
\thispagestyle{empty}
\adjincludegraphics[scale=0.2,valign=t]{Review Test 1 Limits.JPG}
\end{document}
Attachments
MWE.pdf
(20.5 KiB) Downloaded 192 times
MWE.log
(9.07 KiB) Downloaded 271 times
Review Test 1 Limits.JPG
Review Test 1 Limits.JPG (9.66 KiB) Viewed 2363 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Found file is reported not found

Post by Stefan Kottwitz »

The problems are the spaces / blanks in the file name.

Either avoid spaces there, or include the grffile package which fixes that traditional TeX restriction:

\usepackage{grffile}

Stefan
LaTeX.org admin
Post Reply