I'm using Inkscape to draw images, together with the ability to produce the separate LaTeX file with all the text, as described here. So far, this has been working great, but now I am restricted to use .png
, .jpeg
, or .bmp
for my figures.
Is there a way for me to keep using Inkscape with SVG + LaTeX and then convert to other formats from the SVG + LaTeX image (e.g. to .png
) in such a way that the LaTeX fonts and their scaling are unchanged when compared to the included SVG in the document?
Additional info:
If I just draw SVG in Inkscape, add the LaTex stuff to the picture and export it to a bitmap, the LaTex text will of course not be processed.
If I use TexTex, the scaling of the fonts is lost, which is usually there for an included SVG.
Best Answer
Install inkscape2tikz. The following example is taken from inkscape2tikz home page.
Using inkscape2tikz we export this in to tikz code:
Call this file as
image.tex
(say). Following is yourmain.tex
file. Putimage.tex
andmain.tex
in the same folder. For this example, I have addedimage.tex
byfilecontents
.This assumes that you have imagemagick installed.