InkscapeでLaTexをレンダリングすることはもうできません

InkscapeでLaTexをレンダリングすることはもうできません

この問題は、Inkscape のリポジトリで議論されています: https://gitlab.com/inkscape/extensions/issues/73

最後に Inkscape 0.92.4 (45b59e7、2019-03-20) をアップグレードして以来、おそらくその依存関係 (すべてを apt-get 経由でアップグレードします) もアップグレードしたため、LaTeX をレンダリングできなくなりました。

実際、新しいファイルで「拡張機能 > レンダリング > LaTeX」を使用すると、次のエラーが発生します。

Error: /undefined in .makeoperator

Operand stack:

   false   rectfill   rectfill   --nostringval--

Execution stack:

   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2044   1   3   %oparray_pop   2043   1   3   %oparray_pop   2024   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--

Dictionary stack:

   --dict:1234/1684(G)--   --dict:0/20(G)--   --dict:218/300(L)--   --dict:1234/1684(G)--

Current allocation mode is global

Current file position is 14859

GPL Ghostscript 9.26: Unrecoverable error, exit code 1

PostScript/PDF Interpreter finished. Return status 256 executed command : gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinpIcqFd"

The interpreter seems to have failed, cannot proceed !

Traceback (most recent call last):
  File "eqtexsvg.py", line 160, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
    self.effect()
  File "eqtexsvg.py", line 154, in effect
    svg_open(self, svg_file)
  File "eqtexsvg.py", line 81, in svg_open
    doc = inkex.etree.parse(filename)
  File "src/lxml/etree.pyx", line 3426, in lxml.etree.parse
  File "src/lxml/parser.pxi", line 1840, in lxml.etree._parseDocument
  File "src/lxml/parser.pxi", line 1866, in lxml.etree._parseDocumentFromURL
  File "src/lxml/parser.pxi", line 1770, in lxml.etree._parseDocFromFile
  File "src/lxml/parser.pxi", line 1163, in lxml.etree._BaseParser._parseDocFromFile
  File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
  File "/tmp/inkscape-UjDLa0/eq.svg", line 1
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

Ghostscript のバージョンは GPL Ghostscript 9.26 (2018-11-20) です。

回避策

という拡張機能がありますテキストテキストpdf2svgで説明したようにサポートされていますこのスレッド

そのため、拡張機能を使用してInkscapeでLaTeXを使用できました。ワークフローを乱雑にするメッセージを取り除くために、いくつかのパッケージを削除しました。ここ

答え1

私も同じ問題に直面しています。結局、Ghospscript のバージョン 9.25 をインストールし、動作するようになりました。

関連情報