Graphics, Figures & TablesImage File not found

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Noursette
Posts: 1
Joined: Mon Jun 24, 2013 11:06 am

Image File not found

Post by Noursette »

Hello everybody,

I have a recurrent problem with figures and I don't understand the problem. I tried many solutions but always the same error.

I begin to write my PhDThesis with TexMaker with mac with the script of my colleague, which worked with Linux. Problem between linux and mac?

And the command is : "/usr/texbin/pdflatex" -synctex=1 -interaction=nonstopmode --shell-escape --enable-write18 %.tex
(I tried without --enable-write18 and without --enable-write18 and the problem is recurrent)
Can you help me ?


This is the ECM :

The first corresponds to the style document with all packages.
styleUPMC.sty
(4.01 KiB) Downloaded 428 times
The second ECM corresponds to my principle script (in red the chapter where there is my image ):

Code: Select all

% MANUSCRIPT / THESE DE DOCTORAT
\documentclass[styleUPMC,french]{classeUPMC} 
\begin{document}
%% entetes et pieds de page
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\small{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\small{#1}}{}}
\fancyhf{}
\fancyhead[LE]{\bf \thepage \hskip22pt \sl \nouppercase{\leftmark}}
\fancyhead[RO]{\sl \nouppercase{\leftmark} \hskip22pt \bf \thepage}
\fancypagestyle{plain}{\fancyhf{}}
[color=#FF0000]%Chapter 2
\include{part2/2_chap2} \clearemptydoublepage[/color]
\end{document}
And the last ECM which corresponds to my chapter:

Code: Select all

\fancyhead[RO]{\sl \rightmark \hskip22pt \rm \bf \thepage}
\graphicspath{{fig_chap2:}}
\chapter{Expérience lentilles}
\section{Procédure expérimentale}
\begin{figure}[hbtp]
\caption{turbulence}
\centering
\includegraphics[scale=1]{turbulence.png}
\end{figure}
The error.

Code: Select all

! Package pdftex.def Error: File `turbulence.png' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...
l.34 \includegraphics[scale=1]{turbulence.png}
Using draft setting for this image.
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
[1
{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Warning: Reference `turbulence' on page 2 undefined on input line 50.
Last edited by localghost on Mon Jun 24, 2013 12:02 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Image File not found

Post by localghost »

The error is for several reasons not comprehensible because there is no adequate problem description in the absence of a self-contained and minimal example.
  • The required document class used by the code example is missing.
  • The required bibliography style file used by "styleUPMC.sty" is missing.
  • The required external graphics file "turbulence.png" is missing.
Noursette wrote:[…] This is the ECM […]
What is an "ECM" in this context?

The error message is very clear. The graphics file is not found. One probable cause is that the file "turbulence.png" is neither in the same directory as the source of the document (*.tex) nor in the path specified by the \graphicspath command. Another probable cause is that the path in \graphicspath is not specified correctly as described in Section 4.5 of graphicx manual.

If that doesn't help, prepare a proper and self-contained example and provide all necessary files to makes the error comprehensible on every other machine.


Best regards and welcome to the board
Thorsten
Post Reply