When using graphicx
's \includegraphics
you can specify the file extension or not. For generic use and perhaps portability, extensions are commonly dropped. The types of "approved" inclusions and their order of precedence depends on the driver/compiler being used. What are these driver-defaults?
Related: Which graphics formats can be included in documents processed by latex
or pdflatex
?
Best Answer
pdftex.def
Version 2011/05/28 v0.06e
The list depends on
pdftex.def
,For the current versions (2012) and PDF ≥ 1.4, the list is:
The order of the list is not optimal, it is a victim of compatibility.
The list can be extended by package
epstopdf
that adds.eps
to the list and provide means to support further image formats.dvips.def
Version: 1999/02/16 v3.01i
Other supported extensions:
dvipdfm.def
Version: 1999/9/6 vx.x (Bug: should be 1999/09/06)
Also supported are EPS files.
dvipdfmx.def
Version: 1999/02/16 v3.0i
xetex.def
Version: 2009/11/22 v0.94
vtex.def
Version 2001/10/02 v7.45
Other drivers in the graphics bundle
Version: 1999/02/16 v3.0i
List manipulation
I recommend package
grfext
for manipulating the list of graphics extensions.\AppendGraphicsExtensions
,\PrependGraphicsExtensions
.\RemoveGraphicsExtensions
.For example, prefer vector graphics over bitmap graphics, indenpendent of the driver:
Package
grfext
prints the list in the.log
file (example for pdflatex/TL2011):The star form of
\PrependGraphicsExtensions
only adds the extensions that are supported by the graphics driver.