[pdftex] handling epsf and pdf graphics

Donavan Hall hall at magnet.fsu.edu
Thu Feb 22 11:59:55 CET 2001


>Donavan Hall wrote:
>  >
>  > I often run into this problem.  I create a LaTeX document with epsf
>  > figures using the epsfig package.  Then later I want to make the same
>  > LaTeX file into a PDF document with pdftex.  What is a good approach
>  > to use when including graphics that allows for both LaTeXing and
>  > pdftexing a document and have the figures survive without modifying
>  > the original LaTeX file?
>
>\ifx\pdfoutput\undefined 
>
>
>\usepackage[dvips]{graphics} 
>
>\else 
>
>
>\usepackage[pdftex]{graphics} 
>
>
>\usepackage{type1cm} 
>
>\fi
>
>...
>
>\includegraphics{filename_without_extension}

Frank-

Thanks for the quick response.  While this works fine for the 
pdftexing.  I get the following when I run LaTeX:

! LaTeX Error: File `rawdata' not found.

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

l.212 ^^I\includegraphics{rawdata}

? H
I could not locate the file with any of these extensions:
.eps,.ps,.eps.gz,.ps.gz,.eps.Z
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
? epsf
You want to edit file ceco115dHvA.tex at line 212
Output written on ceco115dHvA.dvi (4 pages, 9764 bytes).
Transcript written on ceco115dHvA.log.

Memory allocated: 2770778 bytes.
Time elapsed: 7.8 seconds.


Of course \includegraphics{rawdata.epsf} works with LaTeXing, but 
defeats the pdftexing.

Anything obvious that I am still missing?

-Donavan




More information about the pdftex mailing list