在 macOS Catalina 上的 Inkscape 1.0 Beta 中使用 Latex

在 macOS Catalina 上的 Inkscape 1.0 Beta 中使用 Latex

我最近将我的 MacOS 更新到了 Catalina,因此使用 XQuartz 或 X11 的 Inkscape 0.92.2 停止工作。由于我使用 Inkscape 为会议论文和类似的东西制作所有图表,因此我决定下载新的 Inkscape 1.0 Beta for Mac,它可以本地运行,并且总体上要好得多。唯一的问题是 latex 扩展似乎不再起作用,我需要它来高效地制作图表。当我运行 latex 扩展时,我收到以下警告:

“Inkscape 已从执行的脚本中收到附加数据。脚本未返回错误,但这可能表明结果不会如预期。”

警告如下:

Traceback (most recent call last):
  File "pdflatex.py", line 75, in <module>
    LatexGenerate().run()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 111, in run
    self.save_raw(self.effect())
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/extensions.py", line 155, in effect
    for child in fragment:
  File "pdflatex.py", line 53, in generate
    G=True, pdf_poppler=True, export_type="svg")
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/command.py", line 190, in inkscape
    return call(INKSCAPE_EXECUTABLE_NAME, svg_file, *args, **kwargs)
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/command.py", line 182, in call
    return _call(program, *args, **kwargs)
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/command.py", line 172, in _call
    process.returncode, stderr, stdout, args))
inkex.command.ProgramRunError: Return Code: 1: b'Unknown option -G\n'
b''
args: ['/Applications/Inkscape.app/Contents/MacOS/inkscape', '--export-file=/var/folders/pf/sqqwth9x1zvghm1pz61mp1r80000gn/T/inktmp6stavbpk/output.svg', '--pdf-page=1', '-G', '--pdf-poppler', '--export-type=svg', '--without-gui', '/var/folders/pf/sqqwth9x1zvghm1pz61mp1r80000gn/T/inktmp6stavbpk/input.pdf']

什么都没发生。是否有其他扩展可与 Inkscape 1.0 beta 配合使用,或者是否有某种方法可以修复此问题,以便我可以再次在 Inkscape 中使用 Latex?

答案1

“EQTeXSVG 扩展 (Render > LaTeX) 可用于使用 Python 将内联 LaTeX 方程式转换为 SVG 路径,但由于其外部依赖性而被删除。” http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Inline_LaTeX_formula_conversion_dropped

相关内容