我想从 .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.pdf
和 name_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/