When I type the following:
\begin{figure}[h]
\begin{center}
\resizebox{3in}{!}{\includegraphics{My Image.png}}
\end{center}
\end{figure}
Then WinEdt with LateX outputs the figure "My Image.png" with its filename in the bottom left corner as a caption.
I want to get rid of this caption.
How do I do so?
Graphics, Figures & Tables ⇒ Removing Filenames from figures
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Removing Filenames from figures
No blank spaces or any other special characters in both the path and the name of the file.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Removing Filenames from figures
Hi,
don't use blanks/spaces in file names, rename the file for instance to MyImage.png and include it then.
Btw. I would use \centering instead of \begin{center} ... \end{center}, perhaps have a look at center vs. \centering.
Stefan
don't use blanks/spaces in file names, rename the file for instance to MyImage.png and include it then.
Btw. I would use \centering instead of \begin{center} ... \end{center}, perhaps have a look at center vs. \centering.
Stefan
LaTeX.org admin
Re: Removing Filenames from figures
have you checked that you are not using the draft option to either the document class or to graohicx?
And files with spaces can be used using the grffile package (AFAIR)
And files with spaces can be used using the grffile package (AFAIR)
Re: Removing Filenames from figures
Works well thanks 
