I'm using the graphicx package with
\begin{center}
\makebox[0pt][c]{\includegraphics[scale=0.5]{example2.2}}
\end{center}
to insert images into my LaTeX file.
However, I get an error because of the "." in the image file name "example2.2". If I change it to "example2", then it works fine. Is there any way to use file names with periods in them without getting an error?

.latex search for file name extension (aspdf,png,jpeg...). – Zarko Jun 01 '18 at 13:14example2\string.2work? – Seamus Jun 01 '18 at 13:19