Inkscape에서 라텍스 렌더링이 더 이상 작동하지 않습니다.

Inkscape에서 라텍스 렌더링이 더 이상 작동하지 않습니다.

이 문제는 Inkscape 저장소에서 논의되고 있습니다. https://gitlab.com/inkscape/extensions/issues/73

Inkscape 0.92.4(45b59e7, 2019-03-20) 및 해당 종속성을 마지막으로 업그레이드했기 때문에(apt-get을 통해 모든 것을 업그레이드함) 더 이상 라텍스를 렌더링할 수 없습니다.

실제로 새 파일에서 Extensions > Render > 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

나는 같은 문제에 직면 해 왔습니다. 9.25 버전의 Ghospscript 설치가 완료되었으며 이제 작동합니다.

관련 정보