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.
Graphics, Figures & Tables ⇒ beamer, graphicx | Problematic Image File Name
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
beamer, graphicx | Problematic Image File Name
This is not too convenient but at least it should work:
Best
Code: Select all
Code, edit and compile here:
\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}
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
beamer, graphicx | Problematic Image File Name
You could try with "epstopdf" package.
S
Code: Select all
\usepackage{epstopdf}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
beamer, graphicx | Problematic Image File Name
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