Please support the svg package correclty (needs inkscape within path):
Thanks for the feedback. We’ll look into how we can provide inkscape in the compile environment.
Magnus Offermanns commented
That would be awesome!
Franck Sauer commented
+1 on this one, it's a paint to have to convert to .pdf every single time :)
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.
@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.
Lauri Lovén commented
Any news on this one? Direct import of svg files would be a great plus.
Fabian Raab commented
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`