开发者

Allowing includegraphics in LaTeX to include files with arbitrary filenames

I have some graphic files with some rather long filenames which includes several periods. includegraphics interprets the first of these as the beginning of the file extension, which makes it impossible for it to guess the proper graphics extension. A typical error message is

LaTeX Error: Unknown graphics extension: .9332.1dwc_kpl_h.log.png

One solution is to rename all files, but they are generated by another program, and I would rather use the naming scheme from there. Is there a way to tell graphics what the ima开发者_如何学JAVAge format is, such that the extension will be ignored?


You can also hide the dots from LaTeX by putting extra curly braces in:

\includegraphics{{my.file.with.dots.in.it}.png}

(from https://tex.stackexchange.com/questions/10574/includegraphics-dots-in-filename)


Use the grffile package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜