# [OS X TeX] pdflatex figure with the same name as the document?

Jung-Tsung Shen jushen at gmail.com
Thu May 13 17:46:17 EDT 2010

On Thu, May 13, 2010 at 4:24 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:

> Howdy,
>
> Could you supply a minimal but compilable file and graphic that demonstrates this problem? Also, are you including the jpg extension when you use the \includgraphics command? That might be what is causing the problem since pdflatex is most likely finding the previous One_Way.pdf file and trying to include that.
>
> Good Luck,
>
> Herb Schulz

Herb,

Thanks for the reply. Here's a working (i.e., non-working) minimal:

**************
%%!TEX TS-program = pdflatex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=3in]{one_way}
\caption{Lala}
\label{fig:one_way}
\end{figure}
\end{document}
***************

The existence of a (any) figure file named one_way.jpg will work
(i.e., not work). xelatex also encountered the same problem.

Thanks.

JT