Computational Economics

computational tools for economists

Generate EPS file for LaTeX/LyX and reduce the size if too big

leave a comment »


Wikibooks: LaTeX/Importing Graphics

CS professor at NCSU: Tools and Tips for Writing Papers

The only format you can include while compiling with latex is Encapsulated PostScript (EPS).

How to convert Microsoft Office Documents to EPS file?

Method 1

use the default printer in Windows 7: Metafile to EPS Converter

print –> current page/selection –> get the PRN file

use GSview (Ghostscript)

file –> PS to EPS –> get the EPS file with graph fitting to the bounding box

Method 2

use OpenOffice to open the file you have

file –> export –> get the EPS file


use Microsoft Office + Metafile to EPS Converter +  GSview

use OpenOffice directly

How to crop an image in EPS format?

use a text editor (e.g. Vim, Crimson) to open the file

The beginning of EPS usually looks like

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 555 735

(0,0) left bottom; (555 735) right top

change the four number to crop the image. You can check it in GSview.

What if EPS images make the file too big?

use GSview (Ghostscript)

file -> convert -> [personal taste. 3D EPS from Mathematica: png16+Resolution300. chart from Calc: png256+Resolution300]

cut png/JPG? ? use IrfanView+PlugIns

edit -> Auto crop borders


Written by Jingjing Wang

10/24/2011 at 9:17 pm

Posted in LyX

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: