You are not logged in.

#1 2012-05-19 15:05:24

toffyrn
Member
Registered: 2008-10-07
Posts: 221

inkscape latex symbols

I am having issues creating latex symbols in inkscape. I get the following error;

Traceback (most recent call last):
  File "eqtexsvg.py", line 157, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "eqtexsvg.py", line 151, in effect
    svg_open(self, svg_file)
  File "eqtexsvg.py", line 81, in svg_open
    doc = inkex.etree.parse(filename)
  File "lxml.etree.pyx", line 2954, in lxml.etree.parse (src/lxml/lxml.etree.c:56220)
  File "parser.pxi", line 1533, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:82303)
  File "parser.pxi", line 1562, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:82596)
  File "parser.pxi", line 1462, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:81635)
  File "parser.pxi", line 1002, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:78544)
  File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74488)
  File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75379)
  File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74712)
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

Investigation of this issue reveals that both a .dvi and a .ps file is created successfully with the formula, but pstoedit seems to produce an empty .svg file.

Can anyone shed some light onto why pstoedit seems to fail? I have used this functionality not long ago, am I missing something?

Offline

#2 2012-05-19 19:59:10

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: inkscape latex symbols

Neat, this inspired me to try the Latex Inkscape extension because I never knew about it. I got the same behaviour as you. When I tried running "pstoedit -f plot-svg eq.ps eq.svg" in the temporary directory myself, I got:

pstoedit: version 3.60 / DLL interface 108 (built: Sep 12 2011 - release build - g++ 4.6.1 20110819 (prerelease) - 32-bit) : Copyright (C) 1993 - 2011 Wolfgang Glunz
Error: /undefined in --get--
Operand stack:
   140   (E)   (E)   --dict:9/18(ro)(L)--   FontName
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1893   1   3   %oparray_pop   1892   1   3   %oparray_pop   1876   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1893   1   3   %oparray_pop   1892   1   3   %oparray_pop   1876   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   ()   --nostringval--   %string_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1159/1684(ro)(G)--   --dict:0/20(G)--   --dict:294/300(L)--   --dict:86/300(L)--
Current allocation mode is local
Current file position is 63762
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/inkscape-fRXy2z/psinJGY0X7"
The interpreter seems to have failed, cannot proceed !

It seems like the current ghostscript is newer than what pstoedit expects. Haven't managed to fix it though :S.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-05-20 00:49:24

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: inkscape latex symbols

Well... Looks like a bug report then?
Will look closer into this issue tomorrow and see if its worth a report...

Offline

#4 2012-05-20 09:35:23

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: inkscape latex symbols

Bug report: https://bugs.archlinux.org/task/29954

Last edited by toffyrn (2012-05-20 10:47:34)

Offline

#5 2012-05-20 10:41:22

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: inkscape latex symbols

Nice trick making us automatically vote if we follow this link wink

Offline

#6 2012-05-20 10:48:21

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: inkscape latex symbols

@Army: That was not my intention, just copy paste within firefox, fixed now...
(Although it was pretty neat tongue)

Offline

Board footer

Powered by FluxBB