Graphics, Figures & TablesEPS file not found issue

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
data
Posts: 1
Joined: Tue Apr 27, 2010 7:19 am

EPS file not found issue

Post by data »

I have the following TeX code below. I am using MikTEX 2.7 to complie it on a Windows 2000 machine.

the image D2222F1.eps and the TeX file are in the folder Tempqp/555_01_01_10_AN/

On using TeXnic Center, using the option LATEX=>PS=>PDF, I am able to complie and view the pdf file where the image displays correctly.

However, when I convert from TeX to DVI using the command prompt latex.exe command, the error saying that the 'eps file is not found appears'. If i give the full image path in the TeX file and then invoke latex.exe, there are no warnings or errors and everything displays correctly.

What may be the problem here?

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage[dvips]{graphicx}
\begin{document}
\begin{center}
\includegraphics[width=0.5\textwidth] {D2222F1.eps}
Fig. 1.(b)
\end{center}
\end{document}

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(C:/Tempqp/555_01_01_10_AN/D2222.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation,
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX\tex\latex\base\size12.clo"))
("C:\Program Files\MiKTeX\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX\tex\latex\00miktex\graphics.cfg")
("C:\Program Files\MiKTeX\tex\latex\graphics\dvips.def")))
No file D2222.aux.

LaTeX Warning: File `D2222F1.eps' not found on input line 9.


! LaTeX Error: File `D2222F1.eps' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply