I have problem to get eps pictures when I use PdfTexify in WinEdt 8.0 (MikTeX 2.9).
It works if I use dvi2pdf, but I prefer PdfTexify, because it allows me to include attachments in pdf file as well as to make hyperlinks on references.
Here is sample code
\documentclass[aps,pra,amsmath,amssymb,twocolumn,showpacs]{revtex4-1}
\usepackage{epsf}
\usepackage{graphicx}
\usepackage{attachfile}
\begin{document}
\begin{figure}[htb]
\epsfxsize=6.5cm\centering{\epsfbox{f/1.eps}}
\end{figure}
check attached here \attachfile{2013-05-17.nb}
\end{document}
Also, I would like to know which of those two ways to get PDF output is more preferred/professional? Or is there a more professional way? Thank you in advance.
Best Answer
Actually,
epsf
is a package designed to include.eps
files in plain.tex
files.Anyway, if you want to continue using it in your document and, at the same time, you want to solve your problems with attached files, you can use the package
attachfile2
with the optiondvipdfmx
instead of the packageattachfile
.Simply substitute the line
with
so to have
Now you will be able to have the
.pdf
with the correct references to attached files compiling with the sequencelatex
->dvi2pdf
in WinEdt.In regards of WinEdt, I remind you that
PDFTeXify
is a command that runspdflatex
,bibtex
andmakeindex
as many times as needed for a completely compiled.pdf
file.You can change its behavior to run
latex
and subsequentlydvipdfmx
instead ofpdflatex
to accomplish your needs.To do that, run the "Execution Modes" interface from the "Options" menu. Then select the page "TeX Options" and change the "PDFTeXify Method" from "Default" to "dvi -> pdf", as shown in the image below.
Turn things back to have its usual behavior.
Update
Anyway, I think you'd better use a more modern way to load
.eps
files in your document and usepdflatex
to compile it.I suggest to use the
epstopdf
package, which converts your1.eps
file to1-eps-converted-to.pdf
at runtime and uses it instead of the.eps
one.Remember to load the
epstopdf
package aftergraphicx
or you might get errors.Your MWE can be rewritten as
and compiled with
PDFTeXify
with no changes in WinEdt.