Graphics, Figures & Tables ⇒ EPS File is not included
-
- Posts: 4
- Joined: Thu Oct 13, 2011 6:30 pm
EPS File is not included
I use MikTeX to create a PS file but I am not able to include the EPS file "fig-test.eps".
The resulting PS does not contain the figure. What can I do?
Example is attached.
- Attachments
-
- fig-test.zip
- (20.51 KiB) Downloaded 147 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
EPS File is not included
Code: Select all
latex fig-incl.tex
latex fig-incl.tex
dvips fig-incl.dvi
-
- Posts: 4
- Joined: Thu Oct 13, 2011 6:30 pm
Re: EPS File is not included
The PS file is attached.
btw: I have Windows XP, SP3, MikTex 2.9, Ghostscript 9.02 and GSview 4.9.
- Attachments
-
- fig-incl.zip
- (59.72 KiB) Downloaded 153 times
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: EPS File is not included
If you run eps2eps on it, you get a blank image. If you run epstopdf on it, you get a blank image. I also get error messages about the resulting PDF or EPS file, so it's definitely not converting properly.
Perhaps this is "garbage in, garbage out"?
-
- Posts: 4
- Joined: Thu Oct 13, 2011 6:30 pm
Re: EPS File is not included
I created the EPS file in the following way:
- run gnuplot with epslatex terminal
- run the resulting latex file to get a PS
- convert this PS with GSview to EPS
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
EPS File is not included
Why don't you just use the »postscript« terminal of Gnuplot with its option(s) »eps enhanced«? A better way would be to use gnuplottex if you insist on doing your plots with Gnuplot. This package lets you control the Gnuplot scripts from inside your document.latexuser1310 wrote:OK, thanks for your answer.
I created the EPS file in the following way:
- run gnuplot with epslatex terminal
- run the resulting latex file to get a PS
- convert this PS with GSview to EPS
If you are looking for consistency regarding the fonts in your diagrams, then a much smarter way would be to let packages like pgfplots (based on pgf/tikZ) or pst-plot (based on PSTricks) do the job.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 4
- Joined: Thu Oct 13, 2011 6:30 pm
Re: EPS File is not included
I have finally found a solution:
Open the EPS file with gsview, click on "Edit -> Convert to vector format" (needs pstoedit), select PDF with the option "Draw text as polygons" and save the file as a PDF. Start Inkscape and import the PDF file. Save it as EPS again.
EPS File is not included
That's not the way you're supposed to use files created for the epslatex terminal in gnuplot.latexuser1310 wrote:I created the EPS file in the following way:
- run gnuplot with epslatex terminal
- run the resulting latex file to get a PS
- convert this PS with GSview to EPS
When you use the epslatex terminal, two files get created: a latex file and an eps file. For example, myfile.tex and myfile.eps. You then include that latex file in your document using \input:
Code: Select all
\input{myfile}