GeneralImage file not found

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
tchau83
Posts: 2
Joined: Wed Jan 26, 2011 8:07 am

Image file not found

Post by tchau83 »

Hi, I have a problem where the image file cannot be found if I build a pdf using output profile Latex->pdf. Latex->dvi and Latex->ps->pdf works fine.

I'm using Miktex 2.9, Texniccenter 1.0 stable RC1 and foxit pdf viewer. All settings are left at default. My pc is running windowsXP.

The code is

Code: Select all

\documentclass{amsart}
\usepackage{graphicx}

\begin{document}

\begin{figure}[hbt]
\includegraphics{products}
\end{figure}

\end{document}
The output shows ! Latex error: file 'products' not found. A blank pdf file is built.

Does anyone have an idea what is wrong? Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Image file not found

Post by josephwright »

Direct PDF creation needs graphics in .pdf, .png or .jpeg format, whereas going via DVI needs .eps graphics. Do you have both versions available?
Joseph Wright
tchau83
Posts: 2
Joined: Wed Jan 26, 2011 8:07 am

Re: Image file not found

Post by tchau83 »

I see, thanks! My image is in .eps format, so that's why latex->pdf does not work.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Image file not found

Post by localghost »

Current versions of common LaTeX distributions (MiKTeX 2.9, TeX Live 2010) are able to convert EPS files to PDF "on the fly". If you have an older distribution installed, you may need the epstopdf command line tool or the epstopdf package. Note the instructions in the package manual.


Best regards and welcome to the board
Thorsten
Post Reply