[TxMt] Re: LaTeX package epsfig forces the use of latex instead of pdflatex?
Juergen Arndt
arndt02 at googlemail.com
Fri Nov 16 13:19:29 UTC 2007
> I was under the impression, as Ruben points out, that epsfig would be
> used to include eps graphics, which won't compile properly under
> pdflatex, to the best of my knowledge. How do you use the epsfig
> package? Can you send the list or me a minimal example file of your
> use that:
>
> 1) Includes the epsfig package
> 2) Compiles fine with pdflatex from the command line
> 3) Will not compile fine if we replace the epsfig package with the
> graphicx package
Here is the minimal example:
\documentclass[]{article}
\usepackage{epsfig}
\begin{document}
\section{Introduction}
\begin{figure}[htbp]
\centering
\includegraphics[height=3in]{Photo3.jpg}
\caption{caption}
\label{fig:Photo3}
\end{figure}
\end{document}
It compiles fine with pdflatex (and the result is as expected):
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./untitled.tex
LaTeX2e <2003/12/01>
...
(/sw/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/sw/share/texmf-dist/tex/latex/base/size10.clo))
(/sw/share/texmf-dist/tex/latex/graphics/epsfig.sty
(/sw/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/sw/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/sw/share/texmf-dist/tex/latex/graphics/graphics.sty
...
loading : Context Support Macros / PDF (2004.03.26)
) <Photo3.jpg, id=1, 642.4pt x 481.8pt> <use Photo3.jpg> [1{/sw/var/lib/texmf/f
onts/map/pdftex/updmap/pdftex.map} <./Photo3.jpg>] (./untitled.aux)
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
)</sw/share/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb></sw/share/texmf-dist/
fonts/type1/bluesky/cm/cmbx12.pfb>
Output written on untitled.pdf (1 page, 86048 bytes).
Transcript written on untitled.log.
While pasting the output to this mail I noticed, that the package
graphicx is also loaded. And don't know why it's like that, but this
could be the reason, why pdflatex compiles, even if only epsfig is
included in the tex file.
This example of course also compiles fine, if only graphicx is
included in the tex file. Unfortunately I cannot change epsfig to
graphicx in my case, because several people work on this article and
it's not up to me to change the configuration.
Juergen
--
Juergen Arndt
More information about the textmate
mailing list