Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
4  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.