I want to include an eps figure whose filename contains more than a dot. As discussed here one should insert { } in the filename without the extension. However, pdflatex still complains that it does not recognize the file type.
Source of a minimal example:
\documentclass [a4paper, 12pt]{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{{test.0}.eps}
\end{document}
Using pdflatex I get
! LaTeX Error: Unknown graphics extension: .0.eps.
Using the suggestions of this answer
\documentclass [a4paper, 12pt]{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[type=eps,ext=.0.eps,read=.0.eps]{test}
\end{document}
remove the error. However, pdflatex produces a pdf with an empty box.
pdflatex --version gives
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux)
kpathsea version 6.3.1
My grffile.sty has
Version: 2017/06/30 v1.18
{}(the pdftex version isn't important, the ltex and graphics versions would b. on older releases use the grffile package (which does nothing in current releases so it soesn't hurt to load that anyway) – David Carlisle Feb 01 '20 at 08:37\includegraphics{test.0.eps}gives the same errorUnknown graphics extension: .0.eps– cesco Feb 01 '20 at 08:39\ProvidesPackage{grffile}% [2019/11/11 v2.1 Extended file name support for graphics (legacy)]– David Carlisle Feb 01 '20 at 08:56epstopdf test0.epsand then use the pdf file with\includegraphics– David Carlisle Feb 01 '20 at 08:58