Getting LaTeX text to appear in diagrams

Using Inkscape with other software? Talk about it here.
ribbons
Posts: 1
Joined: Mon Jan 02, 2012 10:06 pm

Getting LaTeX text to appear in diagrams

Postby ribbons » Mon Jan 02, 2012 10:37 pm

Hi, I'm trying to get LaTeX text to appear correctly in a collection of diagrams which I've created. I originally used Xfig to create the .fig files but
I actually need them to appear as .eps files. A friend mentioned the Inkscape should be able to do this pretty easily. I've downloaded Inkscape this morning together with pstoedit and textext but unfortunately I keep getting error messages. I think I must have messed up somewhere along the way...but I don't know where.

When I click Textext in the Extensions tab I receive the following message:

Inkscape has received additional data from the script executed. The script did not return
an error, but this may indicate the results will not be as expected.

Followed by the following description:

textext.py:55: DeprecationWarning: the md5 module is deprecated; use hashlib instead

import os, sys, tempfile, traceback, glob, re, md5, copy

Traceback (most recent call last):

File "textext.py", line 306, in <module>

raise RuntimeError("Neither pygtk nor Tkinter is available!")

RuntimeError: Neither pygtk nor Tkinter is available!



On the other hand when I click on Extensions -> Render -> LaTeX formula the entry box appears as it should. However, upon entering any text an error box opens: it has 'pstoedit.exe - Application Error' in the header. The message inside reads 'The application was unable to start correctly (0xc000007b). Click OK to close the application.'. After closing this down a box similar

Inkscape has received additional data from the script executed. The script did not return an error,
but this may indicate the results will not be as expected.

The description this time is the following:

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\ribbons\appdata\local\temp\inkscape-wxf6er\eq.svg': failed to load external entity "file:///c:/users/ribbons/appdata/local/temp/inkscape-wxf6er/eq.svg"


Sorry for bothering you guys with what is probably a really stupid question but it would be brilliant if I could get this going properly. Thanks in advance for any help.

p.s. I don't know if this matters at all but I'm using Windows 7

Gobkaab
Posts: 1
Joined: Sun Jan 08, 2012 7:37 pm

Re: Getting LaTeX text to appear in diagrams

Postby Gobkaab » Sun Jan 08, 2012 7:54 pm

I have also got the same problem with you.I am a new Inkscape user. Now I are working on my thesis, and wanting the use Inkscape with mathematical symbols to illustrate my explanation. Who can tell me that how to do that in the easiest way. I have read many web talking about Latex but no one clear that how to add and work in Inkscape. Please help me If any of you can.
P.S. I am working Inkscape 0.48 in Win7 .
Thank you very much.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Getting LaTeX text to appear in diagrams

Postby brynn » Mon Jan 09, 2012 2:12 am

Welcome to InkscapeForum, both of you!

There are many topics posted about using Inkscape with LaTex. I don't know if this specific topic has been answered, getting text to appear, but I think it probably has. If you search, and still have questions, please post again, and provide details about what has been covered for you, and what hasn't. That way, we don't repeat ourselves too much. (Sorry, I'm not familiar with LaTex.)


Return to “Inkscape & other”