LaTeXで二つ以上のピリオド(ドット)を含むファイル名の画像ファイルを扱うには grffile を使う

LaTeXでファイル名に二つ以上のピリオド(ドット)を含むpdfファイルなどを取り込もうとすると怒られます。 そんな時はgrffile を使います。

\documentclass[a4j,10pt]{jsarticle}

\usepackage[dvipdfmx]{graphicx}
\usepackage{grffile}

\begin{document}
\begin{figure}
 \includegraphics[width=0.7\textwidth]{golfer.2.pdf}
\end{figure}

\end{document}

参考: LuaLaTeXで画像ファイル名にピリオドが入っていると、コンパイルできない (TeX 一般フォーラム)

Adsense広告