我想要通过命令行从
解释:
在Inkscape 0.92或之前,如果我在
以下是这些错误:
所以
重要的是生成文件
.svg
导出到.pdf_tex
,但只能在Inkscape 1.0或更高版本中进行操作,例如:https://dev59.com/O4rda4cB1Zd3GeqPLFmp#41110512。解释:
在Inkscape 0.92或之前,如果我在
.tex
文件中使用.svg
文件,我只需使用lualatex --shell-scape myfile.tex
编译器即可创建一个名为svg-inkscape
的文件夹,并生成一对文件name_svg_tex.pdf
和name_svg-tex.pdf_tex
。然后我更喜欢手动操作,生成最后两个文件以便将SVG嵌入PDF文件中的.tex
。换句话说,我想在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
包能够更新Inkscape 1.0的pdflatex
、xelatex
和lualatex
。
请注意,我无法进行该操作。
inkscape -D --export-filename=MyOutput.pdf_tex spektralnorm.svg
因为只支持InkFileExportCmd :: export:未知的导出类型:pdf_tex。允许的值:[svg,png,ps,eps,pdf,emf,wmf,xaml]
,甚至不支持作为.tex
文件导出。
这个inkscape文档帮助我从.svg
创建.pdf
,但无法从.pdf_tex
创建。