TransWikia.com

SVG package runs Inkscape with invalid command line args

TeX - LaTeX Asked on July 3, 2021

There are many questions on includesvg already, so

  • yes, I have added --shell-escape to latexmk, lualatexmk and pdflatex in .vscodesettings.json.

    Alternatively I have also put set_tex_cmds( '--shell-escape %O %S' ); in my .latexmkrc file.

  • yes, I have Inkscape in my %PATH% and I have restarted VS Code. In the VS Code terminal I get

     > inkscape --version
     Inkscape 1.0.2-2 (e86c870879, 2021-01-15)
     Pango version: 1.48.2
    
  • yes, I am not using an extension in includesvg{xxx}.

Still, my includesvg fails. The LaTeX compiler output says

Warning: Option –without-gui= is deprecated

Warning: Option –file= is deprecated

Warning: Option –export-pdf= is deprecated

Unknown Option -z

And somewhere in the log file I find similar stuff:

runsystem(inkscape -z -D --export-latex  --file="img/xxx.svg" --export-pdf="xxx_svg-tex.pdf" )...executed.

It seems to me as if I should change how runcommand() calls Inkscape. Where would I do that?

One Answer

I needed to ugrade from TexLive 2020 to TexLive 2021. It comes with a newer version of the svg package which calls Inkscape correctly and fixes bug 25.

Answered by Thomas Weller on July 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP