Graphics, Figures & TablesRemoving Filenames from figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
betbetbet
Posts: 14
Joined: Thu Jan 22, 2009 10:15 am

Removing Filenames from figures

Post by betbetbet »

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?

Recommended reading 2024:

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

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

Post by localghost »

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¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Removing Filenames from figures

Post by Stefan Kottwitz »

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
LaTeX.org admin
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Removing Filenames from figures

Post by daleif »

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)
betbetbet
Posts: 14
Joined: Thu Jan 22, 2009 10:15 am

Re: Removing Filenames from figures

Post by betbetbet »

Works well thanks :)
Post Reply