EnglishFrenchSpanish

Ad


OnWorks favicon

purifyeps - Online in the Cloud

Run purifyeps in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command purifyeps that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


purifyeps - make an Encapsulated PostScript file work with both dvips and pdflatex

SYNOPSIS


purifyeps --help

purifyeps --version

purifyeps [--fontmap=.fmp file] [.eps input file [.eps output file]]

purifyeps --make-man[=filename] [--section=section]

purifyeps --make-ps-man[=filename] [--section=section]

DESCRIPTION


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. pdflatex can read only the following
types of graphics files:

PDF Most people who use pdflatex convert their documents to PDF using a utility such as
epstopdf. This works well and preserves the vector nature of the original EPS.
Unfortunately, dvips does not read PDF, so two versions of the graphic must be
maintained if the document is to be processed with both latex+dvips and pdflatex.

PNG PNG is a bitmap format and therefore scales poorly. Also, dvips does not read PNG, so
two versions of the graphic must be maintained if the document is to be processed with
both latex+dvips and pdflatex.

JPEG
JPEG is a bitmap format and therefore scales poorly. Also, dvips does not read JPEG,
so two versions of the graphic must be maintained if the document is to be processed
with both latex+dvips and pdflatex.

MPS This is probably the least-used pdflatex-compatible graphics format. MPS is actually
a stylized version of EPS that MetaPost outputs. Like PDF, MPS is a vector format and
remains as such when imported into a pdflatex document. Also like PDF, dvips does not
read MPS, so two versions of the graphic must be maintained if the document is to be
processed with both latex+dvips and pdflatex.

The insight behind purifyeps is that there are only a few, small differences between MPS
and EPS and that a file can be converted into a format that matches both the MPS and EPS
specifications simultaneously. purifyeps inputs an EPS file, uses pstoedit's "mpost"
filter to convert the file to MetaPost (.mp), runs mpost on the file to convert it to MPS,
and finally performs some touchups on the result to convert the file back to EPS, while
preserving its ability to be parsed by pdflatex.

OPTIONS


--help
Display "Usage" and "Options" from the purifyeps documentation.

-V, --version
Display the purifyeps version number, copyright, and license.

--fontmap=.fmp file
Specify the name of a file that tells purifyeps how to map from TeX font names to
PostScript font names. [Default: mpost.fmp]

--make-man [=filename]] [--section=section]
Automatically create a Unix man page for purifyeps. section specifies the section
[default: 1 (User Commands)]. filename defaults to purifyeps.1 or an analogous
filename if section is specified.

--make-ps-man [=filename]] [--section=section]
Automatically create a PostScript version of the purifyeps documentation. The
documentation is formatted like a Unix man page. section specifies the section
[default: 1 (User Commands)]. filename defaults to purifyeps.ps.

In normal operation (i.e., when not run with "--help", "--make-man", or "--make-ps-man"),
purifyeps takes the name of an input file and output file. The same filename can safely
be used for both files. If the output filename is omitted, output will go to the standard
output device. If the input filename is omitted, purifyeps will read from the standard
input device.

EXAMPLES


Create a PostScript version of the purifyeps documentation, but call it happydoc.ps
instead of the default, purifyeps.ps:

purifyeps --make-ps-man=happydoc.ps

Create a Unix man page for purifyeps (in the usual roff format), but indicate that it
belongs in section "LOCAL" instead of the default of section 1:

purifyeps --make-man --section=LOCAL

Purify sample.eps (mpost.fmp is in the current directory):

purifyeps sample.eps sample.eps

Purify sample.eps (mpost.fmp is in a different location):

purifyeps --fontmap=/usr/share/pstoedit/mpost.fmp sample.eps sample.eps

Rename the purified version while purifying:

purifyeps sample.eps sample-pure.eps

Do the same, but in a Unix pipeline:

cat sample.eps | purifyeps > sample-pure.eps

When you run purifyeps, you should see the output from both pstoedit and mpost, followed
by a success message from purifyeps:

% cat sample.eps | purifyeps > sample-pure.eps
pstoedit: version 3.30 / DLL interface 107 (build Mar 14 2002) :
Copyright (C) 1993 - 2001 Wolfgang Glunz
Interpreter finished. Return status 0
This is MetaPost, Version 0.641 (Web2C 7.3.1)
(/tmp/purifyeps-jdeGPkh9.mp [1] )
1 output file written: purifyeps-jdeGPkh9.1
Transcript written on purifyeps-jdeGPkh9.log.

File seems to have been purified successfully.

Use purifyeps online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 2
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 3
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 4
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 5
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 6
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • More »

Linux commands

Ad