[texhax] includegraphics warning vs error

Giovanni Funchal gafunchal at gmail.com
Mon Jan 18 11:20:03 CET 2010


Hi,

I've just noticed some weird behavior in \includegraphics (or more
precisely \Ginclude at graphics in graphics.sty). Suppose that file
foobar.pdf does not exist, then :

\includegraphics{foobar} will output an error 'File not found',
because the argument had no extension and it could not guess it.
However, \includegraphics{foobar.pdf} will output a *warning* 'File
not found', because the argument had an extension.

I think that this behavior is not very consistent.

-- Giovanni


More information about the texhax mailing list