hide figure file name

2,600 views
Skip to first unread message

Dr Proteome

unread,
Jun 29, 2010, 6:33:35 AM6/29/10
to LaTeX Users Group
dear people,
I tried to google this but couldn't find any help.

I'm creating pdfs from R using sweave
When I want to display .png image in my document I use

\begin{figure}[h!]
\includegraphics[width=10.8in, height=7.5in]{myfigure.png}
\caption{write caption}
\end{figure}

however, in the resulting pdf the filename is shown along with the
image itself...
how can I hide it?

THanks
Rene

Peter Flynn

unread,
Jun 29, 2010, 5:01:19 PM6/29/10
to latexus...@googlegroups.com

Can you post a minimal example that shows this?

In draft mode (ie using [draft] in the document class or for the graphicx package), the image shape and filename are printed, but I have not seen it ever print the image itself and the filename.

Maybe you are using some package that does this...

///Peter


Dr Proteome

unread,
Jul 1, 2010, 7:11:09 AM7/1/10
to LaTeX Users Group
I found out what caused the problem!
The filename is printed (partially) then it contains a space!
Removing the spaces from the filename of the (png) images solved it...

is there a way to solve this other then removing all spaces from the
image filenames?

hope this helps others

On 29 jun, 23:01, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Tue, Jun 29, 2010 at 11:33 AM, Dr Proteome <renehout...@gmail.com> wrote:
> > dear people,
> > I tried to google this but couldn't find any help.
>
> > I'm creating pdfs from R using sweave
> > When I want to display .png  image in my document I use
>
> > \begin{figure}[h!]
> > \includegraphics[width=10.8in, height=7.5in]{myfigure.png}
> > \caption{write caption}
> > \end{figure}
>
> > however, in the resulting pdf the filename is shown along with the
> > image itself...
> > how can I hide it?
>
> Can you post a minimal example that shows this?
>
> In draft mode (ie using [draft] in the document class or for the graphicx
> package), the image shape and filename are printed, but I have not seen it
> ever print the image itself *and* the filename.

Peter Flynn

unread,
Jul 1, 2010, 8:29:51 AM7/1/10
to latexus...@googlegroups.com

Spaces in filenames are evil. They make your hair fall out, your teeth rot, and start nuclear wars. Stick to A-Z a-z 0-9 period and dash.

///Peter

On Jul 1, 2010 1:11 p.m., "Dr Proteome" <reneh...@gmail.com> wrote:

I found out what caused the problem!
The filename is printed (partially) then it contains a space!
Removing the spaces from the filename of the (png) images solved it...

is there a way to solve this other then removing all spaces from the
image filenames?

hope this helps others

On 29 jun, 23:01, Peter Flynn <anglebrac...@gmail.com> wrote:

> On Tue, Jun 29, 2010 at 11:33 AM, Dr Proteome <renehout...@gmail.com> wrote: > > dear people, > > ...

-- You received this message because you are subscribed to the Google Groups "LaTeX Users Group" gr...

Rene Houtman

unread,
Jul 1, 2010, 2:21:11 PM7/1/10
to latexus...@googlegroups.com
eheh :)

thanks! I will!

You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Reply all
Reply to author
Forward
0 new messages