mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 11 forks source link

Exporting selected layers #50

Closed Andonome closed 1 year ago

Andonome commented 1 year ago

Is there any way to export selected layers from an Inkscape svg file?

mrpiggi commented 1 year ago

Well, this is obviously a question regarding Inkscape itself and not for package svg since it is only a convenient wrapper for the Inkscape export itself. As far as I know, this is currently not possible. Feel free to open a feature request at the Inkscape tracker: https://gitlab.com/inkscape/inkscape

Andonome commented 1 year ago

$ inkscape presentation.svg -i layer1 -j -C --export-png=layer1.png

Source

I've tested it on Inkscape 1.1.1, and it's working. I just can't seem to pass the right arguments to inscape from LaTeX.

mrpiggi commented 1 year ago

Did you try to use something like \includesvg[inkscapeopt=-i layer1]{...} as mentioned in the manual?