Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using psfrag labeled eps files with beamer

256 views
Skip to first unread message

Mark Riggs

unread,
Sep 7, 2004, 11:20:22 AM9/7/04
to
I worked with a group of students in a Research Experiences for
Undergraduates program at my university. I gave them a one-week
introduction to LaTeX and a one-week introduction to Mathematica.
The students were given a problem and by the end of the summer
produced a talk and a paper. Mathematica has an export to EPS
command, but finding the fonts is a problem. Therefore we used
psfrag to label the Mathematica graphs. For the presentation
I suggested beamer. In order to get the eps graphs into the
beamer presentation we settled on the following process:

Copy the psfrag commands and the includegraphics commands to
a LaTeX file. The file had only the psfrag and includegraphics
commands between the \begin{document} and \end{document}.
Leave the extension off the eps file.

Run LaTeX, the DVIPS with the -E* option.

Open the ps file in Ghostview and run PS to EPS.

From the command prompt run epstopdf on the new eps file.

Rename the new pdf file to the eps filename.

We then had a .pdf file corresponding to each of the eps files,
and the pdf has the psfrag labels.

Is there a better way to use psfrag labeled graphs in a pdf
document?

KP

unread,
Sep 7, 2004, 2:31:09 PM9/7/04
to
Le Tue, 07 Sep 2004 08:20:22 -0700, Mark Riggs a écrit :

[...]


> Copy the psfrag commands and the includegraphics commands to
> a LaTeX file. The file had only the psfrag and includegraphics
> commands between the \begin{document} and \end{document}.
> Leave the extension off the eps file.

[...]


> Is there a better way to use psfrag labeled graphs in a pdf
> document?

You could use psfragX and copy the psfrag commands into the EPS file
itself. This way, you do not need to maintain and copy two files for each
graphic file.

You could also write a \for loop that processes all the fig**.eps files
into a given directory. This way, you would launch LaTeX only once. Of
course, you should ask dvips to split its output in one page files.

HTH,
Pascal

Herbert Voss

unread,
Sep 7, 2004, 12:44:47 PM9/7/04
to
0 new messages