This forum is no longer monitored. Please use www.overleaf.com/contact to get in touch.

svg support

Please support the svg package correclty (needs inkscape within path):

http://tex.stackexchange.com/questions/122871/include-svg-images-with-the-svg-package

52 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    darkdragon shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Moha commented  ·   ·  Flag as inappropriate

        I had the same problem.

        I found a simple way to deal with it.

        - Just open the svg file by Inkscape.

        - Save as the .pdf format

        - On the next pop up window:

        --- Embed Fonts

        --- Use exported object's size

        --- Margin 0.1

        - click ok

        Next the generated pdf file will be imported by latex easily as same as png or eps.

      • AdminJohn Lees-Miller (Admin, writeLaTeX) commented  ·   ·  Flag as inappropriate

        @Lauri Thanks for the reminder! This is still on our list of things to look into.

        In the mean time, converting offline and then uploading the pdfs to Overleaf, as suggested by Fabian in another comment, is the best workaround.

      • Fabian Raab commented  ·   ·  Flag as inappropriate

        As a workaround until inkscape is available:

        inkscape is only needed to convert from svg to pdf+latex. Well the the conversion don't work on overleaf, but you can directly upload the pdf+latex output directly. The svg package itself works. So you can still use \includesvg, but the command will use the already generated pdf+latex output if already present. As an alternative you can of course you can also use \input or \include on the `.pdf_tex` file, but the svg package is simpler since it provides quite the same options as the includegraphics command.

        For conversion you can checkout the project with git and use a makefile like that http://www.deferredprocrastination.co.uk/blog/2011/latex-svgs-to-pdfs/, which issue an inkscape command on every svg graphic in an subfolder if you call `make images`

      Feedback

      Feedback and Knowledge Base