$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
    Pango version: 1.44.7

With the new release of Inkscape, --export-pdf no longer exists. The
new options appear to be:

  --export=type=pdf
  --export=pdf-version=1.5 (or 1.4)
  --export-filename=filename.pdf

Aditya has shown a work-around on TeX.SE. I've changed the code a little:

\startluacode
figures.programs.inkscape={
  command="inkscape",
  pdfargument=[[
    "%oldname%"
    --export-dpi=600
    --export=type=pdf
    --export-filename="%newname%"
  ]],
  pngargument=[[
    "%oldname%"
    --export-dpi=600
    --export=type=png
    --export-filename="%newname%"
  ]],
}
\stopluacode

Unfortunately, this does override outdated command line argument.
ConTeXt appears to pass in the old argument:

context --purgeall --trackers=graphics.conversion filename.tex

Shows:

Unknown option --export-pdf=images/m_k_i_v_genealogy.svg.pdf

How would you replace the export-pdf option for the new version of Inkscape?

(I'll send a bug to the Inkscape issue tracker; it strikes me that
--export-pdf could have remained an alias.)

Thank you!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to