svg - 为 Inkscape 1.0 导出 `.pdf_tex`

标签 svg latex inkscape

我想从 .svg 导出至 .pdf_tex从命令行但在inkscape 1.0或更高版本上,例如,https://stackoverflow.com/a/41110512/9302545 .

说明

在 Inkscape 0.92 或更早版本中,如果我使用 .svg文件在 .tex我只使用 lualatex --shell-scape myfile.tex这个编译器创建了一个文件夹 svg-inkscape有几个文件 name_svg_tex.pdfname_svg-tex.pdf_tex .然后我更喜欢手动完成并从 .tex 的 pdf 中生成嵌入 svg 的最后两个文件。 .换句话说,我想为 Inkscape 0.92 复制

inkscape -D --export-filename=MyOutput.pdf_tex spektralnorm.svg

这些是错误:

所以
Did you run the export with Inkscape? There's no file
`./svg-inkscape/spektralnorm.pdf_tex'
although `./svg-inkscape/spektralnorm.pdf' was found.


inkscape:42353): Unknown option -z

Package svg Warning: The export with Inkscape failed for file
(svg)                `img/spektralnorm.svg'
(svg)                Troubleshooting: Please check in the log file how
(svg)                the invocation of Inkscape took place and try to
(svg)                execute it yourself in the terminal on input line 31.

重要的是生成文件 .pdf_tex , 生成 .pdf被覆盖。
inkscape -D --export-type="pdf" spektralnorm.svg

谢谢,我希望 svg package更新 pdflatex , xelatex , lualatex用于 Inkscape 1.0

请注意,我做不到
 inkscape -D --export-filename=MyOutput.pdf_tex spektralnorm.svg

因为只有 InkFileExportCmd::export: Unknown export type: pdf_tex. Allowed values: [svg,png,ps,eps,pdf,emf,wmf,xaml]支持,甚至不支持 .tex .

inkscape's docs帮我创建一个 .pdf来自 .svg但不是 .pdf_tex .

最佳答案

那么,我要将我的评论正式化为答案:
使用 Inkscape 1.0,命令应该是:

inkscape -D --export-latex --export-filename=my_file.pdf my_file.svg

关于svg - 为 Inkscape 1.0 导出 `.pdf_tex`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62142340/

相关文章:

matlab - MATLAB 多行标题中的 LaTeX

python - 在 Python 中实现 SVG 圆弧曲线

php - 如何将大型 SVG 文件转换为平铺的 PNG?

latex - gnuplot pdfcairo 匹配 latex 字体大小

r - 在 latex 表中显示\复选标记

python - 使用 lxml 设置元素内容会删除尾随空格

沿路径渐变

svg - 如何使用大量对象提高 canvas fabric.js 性能

javascript - 禁用 html5 页面内 svg 的键盘事件