Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: LaTeX and SVG

  1. #11
    Join Date
    Mar 2010
    Beans
    1

    Lightbulb 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. #12
    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. #13
    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. #14
    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. #15
    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/
    It's in german, but google is your friend.

  6. #16
    Join Date
    Mar 2009
    Location
    the 'Lowlands'
    Beans
    70
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LaTeX and SVG

    Quote Originally Posted by johan engelen View Post
    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
    Link not found!

  7. #17

    Re: LaTeX and SVG

    Quote Originally Posted by jeneverboy View Post
    Link not found!
    Just registered an account for that:

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

    Google would have helped too.

    Greetings

  8. #18
    Join Date
    Dec 2009
    Location
    Slovenia
    Beans
    108
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LaTeX and SVG

    Quote Originally Posted by hugmenot View Post
    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...
    student 4. grade, Fi/Te, PeF-Ljubljana

  9. #19
    Join Date
    Mar 2007
    Beans
    763

    Re: LaTeX and SVG

    Quote Originally Posted by 71GA View Post
    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. #20
    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

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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