File Exchange

image thumbnail

Make Inkscape PostScript files compatible with psfrag in LaTeX

version 1.0 (2.04 KB) by

eps files exported with Inkscape cannot be used with psfrag.



View License

Open your PostScript file with "psfragcompatible"
The function searches the PostScript file for strings of the form <01020304>Tj or [<010203>-1<0405>-1<06>-1<07>1<08>129<090a06>]TJ and replaces them by strings of the form (int)Tj, where int is a number 1,2,3, ...
Finally you can use \psfrag{int}{your latex expression} in LaTeX.

This function is a modification of the function "replaceinfile" written by Pekka Kumpulainen.

The workaround is explained on

Comments and Ratings (1)


Paul (view profile)


Does exactly what it says its does, and now \psfrag works, YAY! :)

MATLAB Release
MATLAB 7.9 (R2009b)

Inspired by: Replace strings in text file

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today