1. First Cup of Ubuntu
Join Date
Mar 2010
Beans
1

## Re: LaTeX and SVG

I think you'll like the new PDF+LaTeX export option in Inkscape 0.48. Read about it here: http://wiki.inkscape.org/wiki/images/SVG_in_LaTeX.pdf

When exporting to PDF, you can select the LaTeX option, so that Inkscape will create an extra .tex file containing the text. You should then include the .tex file in your latex document; it will show the image with text put on top of it.
Basically, it enables you to write LaTeX text (math and such) in your Inkscape image, which is then typeset by latex simply by including the tex file inkscape generates.

The PDF document above also describes how to automate the whole thing. Then the workflow becomes:
1. draw image and save it to SVG
2. build your latex document; this will notice the SVG has been updated and will automatically call inkscape to export the image again to pdf and latex.

Very convenient and fast!

2. A Carafe of Ubuntu
Join Date
Aug 2006
Beans
82
Distro
Ubuntu 10.04 Lucid Lynx

## Re: LaTeX and SVG

Wow, very impressive. Thanks a lot for this, I'm sure I'll find it very useful.

3. Ubuntu addict and loving it
Join Date
Jan 2008
Location
Auckland, New Zealand
Beans
3,132
Distro
Ubuntu 9.10 Karmic Koala

## Re: LaTeX and SVG

Wow awesome! I know Xfig had something like this but that's great it's in Inkscape now. I never used xfig though so maybe I'm wrong and it was something different.

4. First Cup of Ubuntu
Join Date
Sep 2008
Beans
2

## Re: LaTeX and SVG

It really gud but.. the text size is the problem! size.. bigger fonts is reduce to the normal! any idea how to fix it!

5. First Cup of Ubuntu
Join Date
Jul 2008
Beans
3

## Re: LaTeX and SVG

I would like to add something to this old thread, beacuse I think it is still not completely solved.
I recently blogged about the new way to include SVG directly in LaTeX.

Have a look at http://laclaro.wordpress.com/2011/07...nte-einbinden/

6. Just Give Me the Beans!
Join Date
Mar 2009
Location
the 'Lowlands'
Beans
70
Distro
Ubuntu 10.10 Maverick Meerkat

## Re: LaTeX and SVG

Originally Posted by johan engelen
I think you'll like the new PDF+LaTeX export option in Inkscape 0.48. Read about it here: http://wiki.inkscape.org/wiki/images/SVG_in_LaTeX.pdf

7. First Cup of Ubuntu
Join Date
Nov 2011
Beans
1

## Re: LaTeX and SVG

Originally Posted by jeneverboy
Just registered an account for that:

http://mirrors.ctan.org/info/svg-ink...pePDFLaTeX.pdf

Greetings

8. ## Re: LaTeX and SVG

Originally Posted by hugmenot
One important aspect is which Cairo version you have installed. The newer Cairo is, the more capabilities it has in preserving transparency and filters in the PDF. In some situations Cairo is forced to rasterize in order to represent the graphic in the PDF.

You have cairo 1.8.8, which is good. And you can see that it doesn’t preserve transparent vectors in the EPS, while it does in PDF. It can’t properly represent your semi-translucent bar stroking so it rasterizes these parts of the graphic in the EPS file.

See: http://en.wikipedia.org/wiki/Transpa..._in_PostScript
What a shame... This is the biggest problem for me. I really dont see any other way than rasterizing an image...

9. Extra Foam Sugar Free Ubuntu
Join Date
Mar 2007
Beans
763

## Re: LaTeX and SVG

Originally Posted by 71GA
What a shame... This is the biggest problem for me. I really dont see any other way than rasterizing an image...
I would recommend using LyX. You can insert svg files directly. In the end, the svg is converted, but if you don't like the automatic conversion you can define your custom conversion. LyX 2.0.3 will be released in one week.

10. First Cup of Ubuntu
Join Date
Jul 2008
Beans
3

## Re: LaTeX and SVG

I recently added the scale-feature to the code-snippet which provides the \includesvg[scale]{file}-command.

I made it also platform-independent. Look here (general) and here (platform-independence).

Yours, Henning

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•