TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

up vote 10 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

Alternatively, using grffile:

% \includegraphics[width=\textwidth]{clipboard.01.png}
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

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