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. 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}
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}
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.