2 Attachment(s)
Problem Inserting EPS Figure into File
I'm having trouble inserting .eps files into my LaTeX document.
I have Windows XP Pro, MiKTeX, and TextPad. The .eps files are generated directly by Mathematica v. 4.
Here's the full LaTeX test file:
Code:
\documentclass[12pt,dvips]{report}
\usepackage{graphicx}
\usepackage{epsf}
\begin{document}
\begin{figure}[ht]
\epsffile{BabyAardvarkElegantMultiple.eps}
\caption{Only true eigenvalue curves}\label{Fi:BabyAardvarkElegantMultiple}
\end{figure}
\end{document}
Apparently, the MHF does not allow the uploading of .eps files (a bug? If so, that should be fixed!). So I've uploaded the Mathematica file that generated the eps (it's the very last figure in the file - obtained with the Show command). You'll need to delete the .txt extension, of course.
Here's the Mathematica file:
Attachment 18672
What I've usually done to generate the .eps file from within Mathematica is select the graph, and then choose Edit -> Save Selection As... -> EPS...
You'll need to name the file BabyAardvarkElegantMultiple.eps to match the calling command in the LaTeX code.
The error I get is not in the compiling, but in viewing the dvi file in Yap. Here is the error message I get:
Code:
MiKTeX Problem Report
Message: The page could not be rendered.
Data: Error: /undefinedresult in --div--
Operand stack:
0.0 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1893 1 3 %oparray_pop 1892 1 3 %oparray_pop 1876 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1155/1684(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:101/300(L)-- --dict:39/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1
Source: C:\work3\miktex-2.8\Libraries\MiKTeX\Dvi\DviPage.cpp
Line: 1045
MiKTeX: 2.8
OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
SystemAdmin: yes
PowerUser: no
Root0: C:\Documents and Settings\akeister\Application Data\MiKTeX\2.8
Root1: C:\Documents and Settings\akeister\Local Settings\Application Data\MiKTeX\2.8
Root2: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8
Root3: C:\Program Files\MiKTeX 2.8
UserInstall: C:\Documents and Settings\akeister\Application Data\MiKTeX\2.8
UserConfig: C:\Documents and Settings\akeister\Application Data\MiKTeX\2.8
UserData: C:\Documents and Settings\akeister\Local Settings\Application Data\MiKTeX\2.8
CommonInstall: C:\Program Files\MiKTeX 2.8
CommonConfig: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8
CommonData: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.8
It appears to be a Ghostscript problem.
Now here's the weird part: on an older version of MiKTeX, I've gotten all of these figures correctly included before (they were part of my dissertation, which you can download here if you want. The figure I'm discussing here is on pdf page 23, dissertation page 16.) For some reason, upgrading to a later version renders these commands problematic.
I don't want to use pdf files, because the type-compile-view cycle is much longer (you have to close the stupid pdf file before re-compiling). I want to see dvi files that work correctly in Yap so that I can merely click on Yap and have it reload the file.
I've already taken a close look here, and tried a number of things. Perhaps my eps files aren't very clean. I've tried eps2eps to clean them up, and that didn't work. I wasn't able to get the jpeg2ps command to work. Perhaps someone else has used that? I'm thinking I'm missing something simple here.
Any ideas?