[pdftex] using includegraphics with pdflatex ...[pdflatex (file describeSL1.pdf): cannot open image file]

Patrick Riley pfr+pdftex at cs.cmu.edu
Wed Jun 6 10:06:29 CEST 2001


For some reason which I don't fully understand, \includegraphics with
pdftex uses the TEXPSHEADERS environment variable for the additional
paths to search. Try setting this appropriately. For example, I use:
setenv TEXPSHEADERS :${HOME}/tex//

HTH

-- 
Pat Riley
Third Year Ph.D. Student                                 
Computer Science Department, Carnegie Mellon University     



Yann Gautier writes:
 > Hello,
 > 
 > I have a problem with graphics in pdflatex. pdflatex doesn't seem to
 > locate correctly the  pdf files.
 > 
 > I use the simple tex file :
 > 
 > \documentclass{report}%[12pt,a4paper]{article}
 > \newif\ifpdf
 > \ifx\pdfoutput\undefined
 > \pdffalse % we are not running PDFLaTeX
 > \else
 > \pdfoutput=1 % we are running PDFLaTeX
 > \pdftrue
 > \fi
 > %
 > \ifpdf
 > \usepackage[pdftex]{graphicx}
 > \DeclareGraphicsExtensions{.pdf,.mps,.png,.jpg}
 > \usepackage[pdftex]{hyperref}
 > \else
 > \usepackage{graphicx}
 > \DeclareGraphicsExtensions{.eps}
 > \fi
 > \begin{document}
 > \begin{figure}[hbtp]
 >   \centering
 >    \includegraphics{describeSL1}
 > \end{figure}    
 > \end{document}
 > 
 > 
 > the file describeSL1.pdf is located in another directory. When I run
 > pdlatex, I get the following message : 
 > Error: pdflatex (file describeSL1.pdf): cannot open image file
 > 
 > When I move describeSL1.pdf into the current directory it works well.
 > Another weird thing is that kpsewhich describeSL1.pdf gives the correct
 > location and that if I compile the latex file with latex, all the eps
 > files are found.
 > 
 > Is there a file to configure so that latex tries to locate the pfd file
 > in the  $TEXINPUTS directory list.
 > 
 > I am running tetex 1.0x on an UltraSparc10
 > 
 > Thanks in advance for your answer.
 > 
 > Yann Gautier (yann.gautier at ifp.fr)
 > _______________________________________________
 > pdftex mailing list
 > pdftex at tug.org
 > http://tug.org/mailman/listinfo/pdftex



More information about the pdftex mailing list