Comprehensive TeX Archive Network

Direc­tory support/purifyeps

           |                  PURIFYEPS                  |
           |                                             |
           | Convert an ordinary Encapsulated PostScript |
           | file (.eps) into one that works with both   |
           | LaTeX+dvips and pdfLaTeX.                   |
           |                                             |
           |     By Scott Pakin, scott+peps@pakin.org    |


While pdfLaTeX has a number of nice features, its primary shortcoming
relative to standard LaTeX+dvips is that it is unable to read ordinary
Encapsulated PostScript (EPS) files, the most common graphics format
in the LaTeX world.  purifyeps converts EPS files into a "purified"
form that can be read by *both* LaTeX+dvips and pdfLaTeX.  The trick
is that the standard LaTeX2e graphics packages can parse
MetaPost-produced EPS directly.  Hence, purifyeps need only convert an
arbitrary EPS file into the same stylized format that MetaPost

Documentation is provided in Unix man-page format and in PDF
(U.S. letter-sized).  In addition, executing "purifyeps --help" gives
basic command-line usage.


To run purifyeps, you will need the following:

   * Perl     (http://www.cpan.org)

   * pstoedit (http://www.pstoedit.net/pstoedit)

   * a LaTeX distribution that includes MetaPost (mpost)

purifyeps itself is a Perl script.  On certain operating systems, you
may need to rename purifyeps (e.g., to purifyeps.pl) to notify the
system that purifyeps is, in fact, a Perl script.

Copyright and license

Copyright (C) 2010 by Scott Pakin

This file may be distributed and/or modified under the conditions of
the LaTeX Project Public License, either version 1.3c of this license
or (at your option) any later version.  The latest version of this
license is in:


and version 1.3c or later is part of all distributions of LaTeX
version 2006/05/20 or later.

Down­load the con­tents of this pack­age in one zip archive (32.4k).

pu­ri­fyeps – Make EPS work with both /dvips and pdf

While pdf has a num­ber of nice fea­tures, its pri­mary short­com­ing rel­a­tive to stan­dard +dvips is that it is un­able to read or­di­nary En­cap­su­lated PostScript (EPS) files, the most com­mon graph­ics for­mat in the world. Pu­ri­fyeps con­verts EPS files into a ‘pu­ri­fied’ form that can be read by both +dvips and pdf. The trick is that the stan­dard graph­ics pack­ages can parse -pro­duced EPS di­rectly. Hence, pu­ri­fyeps need only con­vert an ar­bi­trary EPS file into the same styl­ized for­mat that out­puts.

Li­cense The Project Public Li­cense
Copy­right2009 Scott Pakin
Main­tainerScott Pakin
Con­tained inTeX Live as pu­ri­fyeps
Topics pro­cess fonts for use with (in­cludes in­stal­la­tion)
Guest Book Sitemap Contact Contact Author