Make Inkscape PostScript files compatible with psfrag in LaTeX

eps files exported with Inkscape cannot be used with psfrag.
849 Downloads
Updated 8 Dec 2010

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 http://tavmjong.free.fr/INKSCAPE/MANUAL/html/File-Export.html

Cite As

Ulrich Sachs (2024). Make Inkscape PostScript files compatible with psfrag in LaTeX (https://www.mathworks.com/matlabcentral/fileexchange/29649-make-inkscape-postscript-files-compatible-with-psfrag-in-latex), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Replace strings in text file

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0