laprint and auto-pst-pdf: A winning combination!
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
Leave a Comment