TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have latex macros in eps (or some other format) images instead of using fixed text? I want to be able to change some variable names that are also used in figures.

share|improve this question
have a look at psfrag – David Carlisle Jan 3 '13 at 1:04
@DavidCarlisle, thanks for the info I guess this is almost what I need. But as it turns out, Inkscape exported images are not compatible with psfrag. Anyway, if you make the comment an answer I'll accept it. – perreal Jan 3 '13 at 4:18
Does Inkscape have the capability to export text as TeX though? – Werner Jan 3 '13 at 7:37
@Werner it can export tex, but still vectorizes the text for some reason – perreal Jan 3 '13 at 7:48
up vote 2 down vote accepted

You can use psfrag if the text of the eps file is stored in a manner, so that psfrag can work with it.

On my Ubuntu machine I use the program Dia to draw simple vector graphics. If I export the drawing using the GUI, it does not work. With the command line I can pass an option that does the trick.

dia -t eps-builtin -e file.eps file.dia

That may not answer your question exactly, but check out the export settings of inkscape. Maybe you can make it work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.