Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
\includegraphics: Dots in filename

Many of my graphics files have periods in their names. This causes a problem with pdflatex. For example, if I want to include the graphics file this.or.that.pdf I get this error:

! LaTeX Error: Unknown graphics extension: .or.that.pdf.

Is there a way around this other than renaming all my files?

share|improve this question

marked as duplicate by egreg, Harish Kumar, Gonzalo Medina, Mike Renfro, Joseph Wright May 6 '12 at 15:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers 3

up vote 6 down vote accepted

Use \includegraphics[width=\textwidth]{{{this.or.that}.pdf}} i.e., the file name should be {this.or.that}.pdf.

share|improve this answer

If you use graphicx the filetype is defaulted from the extension but for cases like this there is a type key so you can go type=eps or type=bmp or whatever is needed.

share|improve this answer

Alternatively, using grffile:

\documentclass{article}
\usepackage{graphicx}
\usepackage{grffile}
\begin{document}
\includegraphics[width=\textwidth]{clipboard.01}
% \includegraphics[width=\textwidth]{clipboard.01.png}
\end{document}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.