Graphics, Figures & TablesFigure is not compiled

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Figure is not compiled

Post by Jongomez »

After having compiled several figures using the same command configuration, now I've got:
Package pdftex.def Error: File `figuras.tex/Fig_Capítulo1.tex/Fig. 1.8 Coordenadas cartesianas tridimensionales.png' not found: using draft setting.

The configuration is:

Code: Select all

\begin{figure}[ht]
    \begin{center}
    \includegraphics[width=8cm]{figuras.tex/Fig_Capítulo1.tex/Fig. 1.8  Coordenadas cartesianas tridimensionales.png}
     
        \caption{\small  Coordenadas cartesianas tridimensionales.}
\label{fig 1.8 Coordenadas cartesianas tridimensionales.}
    \end{center}
\end{figure} 
I've repeated figure uploading several times but I haven´t succeded.

This one has failed also:

Code: Select all

\begin{figure}[ht]
    \begin{center} 
     \includegraphics[width=6cm]  
    {figuras.tex/Fig_Capítulo1.tex/Fig. 1.19 Trayectoria de la bola sobre el acantilado.png}
    \caption{\small Trayectoria de la bola sobre el acantilado.}
    \label{fig. 1.19 Trayectoria de la bola sobre el acantilado.}
    \end{center}
\end{figure}
Note.- Nevertheless, after that I've succede compiling this one:

Code: Select all

\begin{figure}[ht]
    \begin{center} 
     \includegraphics[width=8cm]  
    {figuras.tex/Fig_Capítulo1.tex/Fig. 1.20 Multiplicación de matrices.jpg }
    \caption{\small Multiplicación de matrices.}
    \label{fig. 1.20 Multiplicación de matrices.}
    \end{center}
\end{figure}
Can anyone help me?
Thanks a lot.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Figure is not compiled

Post by Stefan Kottwitz »

Hi,

depending on the LaTeX version and the operating system, it can be a problem if file names or paths contain white spaces (blanks) or special characters, such as the accented characters.

I suggest you try without spaces in the name and with ASCII characters (no accents) if it works.

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Figure is not compiled

Post by Jongomez »

Hi,
I've tried your approach, but withput success. Anyway, don't understand why it works in the other cases (almost all).

I' ll try to capture the image in another way, to see if the problem comes from de source.

Thanks a lot Stefan, will continue in contact.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Figure is not compiled

Post by Stefan Kottwitz »

The first figure has 2 consecutive spaces (after 1.8) in the file name, the error message has only one. Perhaps try without 2 spaces but 1?

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Figure is not compiled

Post by Jongomez »

Hi Stefan,
This is crazy! I've done a lot of test: withot spaces, with 1, with 2, ..etc. But thi stiem it has worked!
Perhaps, as your proposal suggest, it is important to verify carefully the names and spaces in the 3 places:
* the computer files
* the list of figures in overleaf
* the configuration in Latex.

Anyway, now I have all th figures antil now fixed (some I've changed from jpeg to png).

Happy for your assistance.
Best regards,
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Figure is not compiled

Post by Jongomez »

... Anyway, now I have all the figures until now fixed (some I've changed from jpeg to png).
Post Reply