From 566f5207d7e3cafb0633d31277067336ccd9cca7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 22 May 2009 23:51:44 +0000 Subject: move generic english documents out of texmf-doc git-svn-id: svn://tug.org/texlive/trunk@13396 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/generic/FAQ-en/html/FAQ-unkgrfextn.html | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-unkgrfextn.html (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-unkgrfextn.html') diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-unkgrfextn.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-unkgrfextn.html new file mode 100644 index 00000000000..e7a74af855f --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-unkgrfextn.html @@ -0,0 +1,64 @@ + +UK TeX FAQ -- question label unkgrfextn + +

“Unknown graphics extension”

+

The LaTeX graphics package deals with several different types of +DVI (or other) output drivers; each one of them has a potential +to deal with a different selection of graphics formats. The package +therefore has to be told what graphics file types its output driver +knows about; this is usually done in the <driver>.def file +corresponding to the output driver you’re using. +

The error message arises, then, if you have a graphics file whose +extension doesn’t correspond with one your driver knows about. Most +often, this is because you’re being optimistic: asking +dvips to deal with a .png file, or PDFTeX to deal with +a .eps file: the solution in this case is to transform the graphics +file to a format your driver knows about. +

If you happen to know that your device driver deals with the +format of your file, you are probably falling foul of a limitation of +the file name parsing code that the graphics package uses. Suppose +you want to include a graphics file home.bedroom.eps using the +dvips driver; the package will conclude that your file’s +extension is .bedroom.eps, and will complain. +

The grffile package deals with the last problem (and +others — see the package documentation); using the package, you may +write: +

+
+\usepackage{graphicx}
+\usepackage{grffile}
+...
+\includegraphics{home.bedroom.eps}
+
+

+or you may even write +

+
+\includegraphics{home.bedroom}
+
+

+and graphicx will find a .eps or .pdf +(or whatever) version, according to what version of (La)TeX you’re +running. +

If for some reason you can’t use grffile, you have three +unsatisfactory alternatives: +

+
+
grffile.sty
Distributed as part of the macros/latex/contrib/oberdiek (gzipped tar, browse) collection +
+

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=unkgrfextn + -- cgit v1.2.3