Graphics, Figures & Tables ⇒ Inclusion of EPS Figures produced with PS Printer Driver
Inclusion of EPS Figures produced with PS Printer Driver
Under Windows XP, I used to be able to create eps figures for inclusion in LaTeX documents by printing to a postscript printer and capturing the output in an EPS file, configuring the printer to produce an EPS rather than PS file. This no longer works under Windows 7. To be specific, I can create an eps figure that I can view fine in a postscript viewer like GSview, but when I include this figure into a LaTeX document (using graphicx), I see a blank space where the figure is supposed to be. I usually go LaTeX -> DVI -> PS and the problem shows up already in the DVI file. I seems that somehow the Windows 7 printer drivers include/omit some information in the EPS file that is misinterpreted by the latex interpreter, but can be handled fine by GSview.
If somebody has a solution to this problem, I'd be most grateful.
Thanks -- hh
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Inclusion of EPS Figures produced with PS Printer Driver
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Inclusion of EPS Figures produced with PS Printer Driver
Thanks for the quick answer. Attached please find an example. This was created with the driver for the HP Color LaserJet 2500 PS printer, but the problem is not printer-specific. So far, I have not found any printer that works.localghost wrote:Attach one of the problematic files to your next post for examination by upload to the forum server.
Best regards and welcome to the board
Thorsten
Thanks,
--hh
- Attachments
-
- test1.eps
- (12.73 KiB) Downloaded 406 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Inclusion of EPS Figures produced with PS Printer Driver
I was able to repair the file by "eps2eps", which is part of Ghostscript. And the repaired EPS can be converted to PDF. Both files are attached.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Inclusion of EPS Figures produced with PS Printer Driver
I have used the latest drivers for the printers I tried this on, so an outdated drivers doesn't seem to be a likely source of the problem. It must be some Win7-specific thing that produces the buggy(?) eps file. Anyway, I'm happy that you've found a workaround, whatever the source of the problem is, and I will not need to waste any more time on this.
Thanks again.
--hh