Oro*_*ion 4 svg latex inkscape
我想从出口.svg到.pdf_tex命令行,但是,Inkscape的1.0或更高版本,例如,/sf/answers/2877735871/。
解释
在 Inkscape 0.92 或更早版本中,如果我.svg在 a 中使用文件,.tex我只使用lualatex --shell-scape myfile.tex并且此编译器会创建一个文件夹,svg-inkscape其中包含几个文件name_svg_tex.pdf和name_svg-tex.pdf_tex. 然后我更喜欢手动完成并生成最后两个文件以将 svg 嵌入到.tex. 换句话说,我想为 Inkscape 0.92 复制
inkscape -D --export-filename=MyOutput.pdf_tex spektralnorm.svg
Run Code Online (Sandbox Code Playgroud)
这些是错误:
所以
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.
Run Code Online (Sandbox Code Playgroud)
重要的是生成文件.pdf_tex,生成.pdf覆盖。
inkscape -D --export-type="pdf" spektralnorm.svg
Run Code Online (Sandbox Code Playgroud)
和感谢,我希望svg包更新pdflatex,xelatex,lualatex对Inkscape的1.0
请注意,我做不到
inkscape -D --export-filename=MyOutput.pdf_tex spektralnorm.svg
Run Code Online (Sandbox Code Playgroud)
因为只InkFileExportCmd::export: Unknown export type: pdf_tex. Allowed values: [svg,png,ps,eps,pdf,emf,wmf,xaml]支持,甚至不支持.tex.
这个inkscape 的文档帮助我创建了一个.pdffrom.svg但不是.pdf_tex.
小智 5
那么,我要将我的评论正式化为答案:
使用 Inkscape 1.0,命令应该是:
inkscape -D --export-latex --export-filename=my_file.pdf my_file.svg
Run Code Online (Sandbox Code Playgroud)