Graphics, Figures & Tablesbeamer, graphicx | Problematic Image File Name

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

beamer, graphicx | Problematic Image File Name

Post by hbaromega »

If I use figure names such as Y_vs_X_Z0.5.png in beamer, and try to compile using pdflatex, beamer shows error.

However, if I use Y_vs_X_Z0.5.eps and compile using normal latex, it gets
compiled without any error.

My problem is that I have several similar plots and the plots are distinguished only by the value of the parameters, which can have decimals
in their values (e.g. Z=0.5 in my example).

So is there any trick where I can make beamer to overlook the kind of file name which contains characters like dots (.) as in the example that I've mentioned?

Thanks.

Recommended reading 2024:

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

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

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

beamer, graphicx | Problematic Image File Name

Post by 5gon12eder »

This is not too convenient but at least it should work:

Code: Select all

\documentclass{beamer}
\usepackage{graphicx}

\begin{document}
  \begin{frame}{A Picture With a Period in the Name}
    \begin{figure}
      \includegraphics[width=8cm,type=png,read=.png,ext=.png]{Y_vs_X_Z0.5}
      \caption{This picture has the filename \texttt{Y\_vs\_X\_Z0.5.png}.}
    \end{figure}
  \end{frame}
\end{document}
Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
salehin
Posts: 34
Joined: Wed Jun 10, 2009 1:29 am

beamer, graphicx | Problematic Image File Name

Post by salehin »

You could try with "epstopdf" package.

Code: Select all

\usepackage{epstopdf}
S
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer, graphicx | Problematic Image File Name

Post by localghost »

The grffile package from the oberdiek bundle might be helpful.


Thorsten
Post Reply