Can't use render->Latex folrmula

Asked by leila bridgeman

I have been trying to set up Inkscape to include LaTeX formulas, to no avail. I work on a Windows 7 computer. I have gotten the Extensions->Render->LaTeX formula menu item to show up by following the instructions found at http://inkscape.13.n6.nabble.com/Re-LaTeX-on-WIndows-td2868471.html. However, I encounter an error when I try to click the 'Live preview' box, or click apply. I do not know how to fix the problem, and hitting 'apply' does nothing (from what I can tell). The error is:
"'pstoedit' is not recognized as an internal or external command,

operable program or batch file.

Traceback (most recent call last):

  File "eqtexsvg.py", line 156, in <module>

    e.affect()

  File "C:\Program Files (x86)\Inkscape\share\extensions\inkex.py", line 215, in affect

    self.effect()

  File "eqtexsvg.py", line 150, 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 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594)

  File "parser.pxi", line 1500, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71364)

  File "parser.pxi", line 1529, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:71647)

  File "parser.pxi", line 1429, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:70742)

  File "parser.pxi", line 975, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:67740)

  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)

  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)

  File "parser.pxi", line 563, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64060)

IOError: Error reading file 'c:\users\leila\appdata\local\temp\inkscape-48_api\eq.svg': failed to load external entity "file:///c:/users/leila/appdata/local/temp/inkscape-48_api/eq.svg""

I love using Inkscape for my art projects, and I would like use it to make illustrations for the scientific papers I write, so your help is much appreciated.

Best,

Leila Bridgeman

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
mahfiaz
Solved:
Last query:
Last reply:
Revision history for this message
mahfiaz (mahfiaz) said :
#1

Maybe installing http://www.pstoedit.net/ helps? If not maybe you also need to move it over to Inkscape directory or add pstoedit's directory to PATH variable.

Revision history for this message
leila bridgeman (leilabridge) said :
#2

I have pstoedit installed. I'm not sure what I should move to the Inkscape directory, or where I should put it within the directory. So far, I tried moving the entire pstoedit folder into the top level of my inscape directory and into the plugins folder, but neither worked. Leaving pstoedit in the plugins folder, I added its path to the path environment variable. This did not resolve the problem, but it did result in a new error message when I clicked 'apply':
Problem during opening C:\Program Files (x86)\Inkscape\plugins\pstoedit\drvmagick.dll:%1 is not a valid Win32 application.

Problem during opening of pstoedit driver plugin: C:\Program Files (x86)\Inkscape\plugins\pstoedit\drvmagick.dll. This is no problem as long the driver in this library is not needed. Possibly you need to install further libraries and/or extend the LD_LIBRARY_PATH (*nix) or PATH (Windows) environment variables.

Thank you for your help!

Best,

Leila

Revision history for this message
Best mahfiaz (mahfiaz) said :
#3

Might it be that the spaces in "Program Files" confuse pstoedit?
Maybe if you placed it to a path with no spaces in it and adding it to PATH variable?

Revision history for this message
leila bridgeman (leilabridge) said :
#4

I've just tried that, but I still get the error message, however when I click 'Apply' the Latex gets printed properly on the drawing. I guess I will work with this, ignoring the error message.

Thanks for all of your help,

Leila