Peter Frane | 6 May 2012 21:01
Picon
Favicon

EPS

Hello,

I am writing a lightweight PostScript (PS) interpreter for use with my LaTeX DVI converter. I'm not familiar with MetaPost (MP) but from what I know it can output EPS. What I want to know is where can I get a documentation on the EPS output of MP? What are the PS operators used by MP?

Once I've learned that, what I want to do is to rasterize the EPS outputted by MP or convert it to other formats such as PNG, JPEG, or even PDF. Currently, this can only be done with Ghostscript.

Looking forward to hearing from you.

Sincerely,

Peter Frane
--
http://tug.org/metapost/
Taco Hoekwater | 7 May 2012 15:34
Gravatar

Re: EPS

On 05/06/2012 09:01 PM, Peter Frane wrote:
> Hello,
>
> I am writing a lightweight PostScript (PS) interpreter for use with my
> LaTeX DVI converter. I'm not familiar with MetaPost (MP) but from what I
> know it can output EPS. What I want to know is where can I get a
> documentation on the EPS output of MP? What are the PS operators used by MP?

Quickest solution is to run a file with:   procset := 1;

This will create an EPS with a small ps procset at the top that it
should be easy to extract the used operators from (excluding any
operators that could appear in font encodings). Metapost does not
use a lot of PS operators.

There is no formal documentation, but the CWeb source file that takes
care of EPS output:

http://foundry.supelec.fr/gf/project/metapost/scmsvn/?action=browse&path=%2Ftags%2Fbeta-1.504%2Fsource%2Ftexk%2Fweb2c%2Fmplibdir%2Fpsout.w&view=markup

is not exceptionally large (much of the file is used for font
subsetting).

Best wishes,
Taco
--
http://tug.org/metapost/


Gmane