Skip to content

laprint and auto-pst-pdf: A winning combination!

June 7, 2010

WOW.  I just finished installing/figuring out how to use the laprint function for matlab, to simply export research-quality figures into my latex documents.  I won’t spend a whole lot of time rehashing the directions, because installation and usage were pretty straightforward:

  • Put laprint in the matlab path.
  • Use it to generate a picture, with some text strings that will eventually be parsed by TeX.  I had to include the command: set(0,’defaulttextinterpreter’,'none’) in order to prevent matlab from messing everything up.
  • Install psfrag and auto-pst-pdf into your TeX distribution path (I use MacTeX and TeXShop with a default install, so this is just /usr/texbin for the .sty files and /usr/local/bin for the .pro file from psfrag).
  • Copy the .tex and .eps files that laprint generates into the working directory of your tex file.
  • Typeset a-la the example given in the directions.

So simple, even a child with sudo privileges could do it.  Granting a child sudo is generally a questionable thing to do, however…

-n

Advertisement

From → Uncategorized

Leave a Comment

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.