3

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.

tmaric
  • 911
  • 1
    Can you try inkscape2tikz, export everything as tikz code and \input it? –  Feb 17 '13 at 13:49
  • Well, I'm restricted to using PNG, BMP, or JPEG for my images, so at the end, I need a bitmap conversion of the image and the processed LaTex symbols. – tmaric Feb 17 '13 at 13:53
  • 1
    You may try to print the diagram in to pdf, the use imagemagick to convert it into png. –  Feb 17 '13 at 13:55
  • @HarishKumar Thanks, I'll try this. As another option, I just opened the pdf_tex file, and noticed the "put" command with the latex text. Would it be possible also to export the SVG without the text into a PNG and re-use the put commands to place the symbols on the image? – tmaric Feb 17 '13 at 14:06
  • Another, different approach could be GIMP. It can read SVG files and can save them in (e.g.) PNG format. (I do not know ImageMagick well enough, but perhaps this is also possible with convert.) – Speravir Feb 17 '13 at 18:41
  • @Speravir how do I get the LaTex symbols into an SVG, I mean, processed? When Inkscape saves SVG into a pdf, it stores only graphics, and separates the text/symbols to a pdf_tex file. – tmaric Feb 17 '13 at 20:31
  • I do not see the relationship to the SVG conversion with GIMP or ImageMagick, or you must give a link to an example SVG file. 2. In Inkscape appears while saving to PDF a dialogue window, where you can de-/activate the separation of text into an own TEX file.
  • – Speravir Feb 17 '13 at 22:40
  • @Speravir if I deactivate the separation of text, the mathematical symbols like $\mathbf{U}$ don't get processed, they are stored as they are written in inkscape. – tmaric Feb 18 '13 at 10:47