Discussion:
[Inkscape-user] LaTeX [on WIndows]
Davi Fonseca
2006-09-15 22:01:55 UTC
Permalink
Bryce Harrington wrote:> > On Thu, Sep 14, 2006 at 08:53:40PM -0400, Gary wrote:> > > >> Isn't there supposed to be a feature to render LaTeX? Under Effects>Render?> >> Or have I misinterpreted something?> >> (I can't find the feature on Windows version 0.44.1)> >>> >> thanks,> >> gary> >> > >> > There is a LaTeX formula extension under Effects>Render on Linux, is> > that what you're thinking? I've never used it though.> >> > Bryce> > > I guess so. It's not there in the Windows version.
In order to use the Latex effect under Windows. You need:
- A LaTeX installation (recommended Miktex);
- If you installed Miktex, then you will have both latex.exe and dvips.exe already in the PATH (if not make sure this is the case);
- Download and install "pstoedit", you will need to add the folder of pstoedit.exe to the PATH;
- Install Ghostscript;
- For some reason the extension fails to check the PATH requirements. Hence go to "(...)\inkscape\share\extensions" and edit eqtexsvg.inx (notepad or any text editor should just be fine). Remove the following three lines:
<dependency type="executable" location="path">latex</dependency><dependency type="executable" location="path">dvips</dependency><dependency type="executable" location="path">pstoedit</dependency>
Remember to save the file.
- (Re)Start Inkscape. Now you should have the Latex Equation option (and it should be working).
_________________________________________________________________
Call friends with PC-to-PC calling -- FREE
http://get.live.com/messenger/overview
Gary
2006-09-16 00:55:12 UTC
Permalink
Post by Davi Fonseca
Isn't there supposed to be a feature to render LaTeX? Under Effects>Render?
Or have I misinterpreted something?
(I can't find the feature on Windows version 0.44.1)
thanks,
gary
There is a LaTeX formula extension under Effects>Render on Linux, is
that what you're thinking? I've never used it though.
Bryce
I guess so. It's not there in the Windows version.
- A LaTeX installation (recommended Miktex);
- If you installed Miktex, then you will have both latex.exe and
dvips.exe already in the PATH (if not make sure this is the case);
- Download and install "pstoedit", you will need to add the folder of
pstoedit.exe to the PATH;
- Install Ghostscript;
- For some reason the extension fails to check the PATH requirements.
Hence go to "(...)\inkscape\share\extensions" and edit eqtexsvg.inx
(notepad or any text editor should just be fine). Remove the following
<dependency type="executable" location="path">latex</dependency>
<dependency type="executable" location="path">dvips</dependency>
<dependency type="executable" location="path">pstoedit</dependency>
Remember to save the file.
- (Re)Start Inkscape. Now you should have the Latex Equation option
(and it should be working).
It works (sort of -- see below)! This is fabulous functionality.
Thanks to those respsonsible.

fine print: It only works if I start Inkscape from an Administrator
account. If I start it from a user account, I get the following python
error:

Traceback (most recent call last):
File "share\extensions\eqtexsvg.py", line 121, in ?
e.affect()
File "C:\Program Files\multimedia\Inkscape\share\extensions\inkex.py",
line 123, in affect
self.effect()
File "share\extensions\eqtexsvg.py", line 107, in effect
svg_open(self, svg_file)
File "share\extensions\eqtexsvg.py", line 54, in svg_open
svg_lines.pop(1)
IndexError: pop from empty list

I program in python, so I'll take a look and see if I can figure
anything out.
Which brings up a question that I'll start a new thread for ...

-gary
Post by Davi Fonseca
------------------------------------------------------------------------
Call friends with PC-to-PC calling -- FREE Try it now!
<http://get.live.com/messenger/overview>
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
_______________________________________________
Inkscape-user mailing list
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Gary
2006-09-16 01:02:07 UTC
Permalink
I use python regularly, so I already have an installation on my WinXP
machine.
In fact, I have two because this is a Lenovo Thinkpad, and Lenovo (nee
IBM) installed python for its own purposes.
So now I have three python installations on this PC. Another
application that I used to use also installed a private python. That
would have been four.

I understand the issues surrounding the distribution of python
applications, but I'd encourage the developers to consider (if they
haven't already and rejected the idea) of either using an existing
python installation if it exists, or somehow ensuring that python is
already installed in the normal way (for python). I'd rather not be
having multiple python installations.

... but thanks for a fabulous application.
-gary
Alan Horkan
2006-09-18 01:21:35 UTC
Permalink
Date: Fri, 15 Sep 2006 21:02:07 -0400
Subject: [Inkscape-user] multiple python installations
I use python regularly, so I already have an installation on my WinXP
machine.
In fact, I have two because this is a Lenovo Thinkpad, and Lenovo (nee
IBM) installed python for its own purposes.
So now I have three python installations on this PC. Another
application that I used to use also installed a private python. That
would have been four.
What are these other applications?
I understand the issues surrounding the distribution of python
applications, but I'd encourage the developers to consider (if they
haven't already and rejected the idea) of either using an existing
python installation if it exists, or somehow ensuring that python is
already installed in the normal way (for python). I'd rather not be
having multiple python installations.
We frequently get similar requests about shipping Inkscape without GTK.
Very often Inkscape does need the latest GTK. Including a seperate copy
also helps avoid the kinds of problems GAIM is having. For testing
purposes an all in one package is much simpler, and Inkscape has been
praised in reviews for not being as complicated to install as the GNU
Image Manipulation Program (which has a two step install, requiring the
seperate GTK). It is great that Inkscape is easy by default, but I do
encourage the people who are concerned about disk usage to help make it
optional and make it possible to do things another way just so long as
things remain easy by default.

In the case of GTK there is a workaround, if you delete the Inkscape copy
of GTK it will try to pick up the global version instead. A similar trick
may be possible for Python. Make sure there is a global version of python
installed (usually this means it is included in the %PATH% variable) and
try deleting the copy that comes with Inkscape.

Let us know how or if it works. Take detailed notes, record any errors
messages. For extra credit update the wiki and provide patches which
might help. A lot of great Inkscape work has come from one person trying
something and recording their results so that others can build on them.


Sincerely

Alan Horkan

Inkscape http://inkscape.org
Abiword http://www.abisource.com
Open Clip Art http://OpenClipArt.org

Alan's Diary http://advogato.org/person/AlanHorkan/
Gary
2006-09-18 01:44:31 UTC
Permalink
Post by Alan Horkan
Date: Fri, 15 Sep 2006 21:02:07 -0400
Subject: [Inkscape-user] multiple python installations
I use python regularly, so I already have an installation on my WinXP
machine.
In fact, I have two because this is a Lenovo Thinkpad, and Lenovo (nee
IBM) installed python for its own purposes.
So now I have three python installations on this PC. Another
application that I used to use also installed a private python. That
would have been four.
What are these other applications?
The four pythons would have been:
1. My "standard" working installation
2. Lenovo's. I don't know what it's used for.
3. Inkscape
4. Fimmwave, an optical waveguide modeling application. I don't use
it anymore; it and its python have been removed.
(I might have a cygwin python as well. I'm afraid to look. I do have
python on a VMware virtual machine running Xubuntu as a guest OS. Every
once in a while I run across an application that hasn't been ported to
Windows. And vice versa, so I really need Windows *and* linux. So if I
want to be dramatic, I could claim six python installations on my HD.)

Regarding your suggestions below: thanks for the pointer to a possible
alternative installation. I'll look into it. I completely understand
your comments on distributing python apps. I don't have any substantial
objections to the current distribution scheme. I do have a smallish HD,
but not *that* small. It just strikes me as somehow "wasteful". An
irrational feeling, of course. Already it is necessary to install a
bunch of third party stuff to use the LaTeX feature...

-gary
Post by Alan Horkan
I understand the issues surrounding the distribution of python
applications, but I'd encourage the developers to consider (if they
haven't already and rejected the idea) of either using an existing
python installation if it exists, or somehow ensuring that python is
already installed in the normal way (for python). I'd rather not be
having multiple python installations.
We frequently get similar requests about shipping Inkscape without GTK.
Very often Inkscape does need the latest GTK. Including a seperate copy
also helps avoid the kinds of problems GAIM is having. For testing
purposes an all in one package is much simpler, and Inkscape has been
praised in reviews for not being as complicated to install as the GNU
Image Manipulation Program (which has a two step install, requiring the
seperate GTK). It is great that Inkscape is easy by default, but I do
encourage the people who are concerned about disk usage to help make it
optional and make it possible to do things another way just so long as
things remain easy by default.
In the case of GTK there is a workaround, if you delete the Inkscape copy
of GTK it will try to pick up the global version instead. A similar trick
may be possible for Python. Make sure there is a global version of python
installed (usually this means it is included in the %PATH% variable) and
try deleting the copy that comes with Inkscape.
Let us know how or if it works. Take detailed notes, record any errors
messages. For extra credit update the wiki and provide patches which
might help. A lot of great Inkscape work has come from one person trying
something and recording their results so that others can build on them.
Sincerely
Alan Horkan
Inkscape http://inkscape.org
Abiword http://www.abisource.com
Open Clip Art http://OpenClipArt.org
Alan's Diary http://advogato.org/person/AlanHorkan/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Inkscape-user mailing list
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Davi Fonseca
2006-09-16 08:27:06 UTC
Permalink
Hi Gary,

I used to get the same error using the latest Inkscape EXE, while Ghostscript wasn't installed, but after installing it the error is was gone . Also, one can have problems if MikTeX is installed using a limited account. I will try using a limited account later, but I am pretty sure I made a poster full of latex equations using Inkscape from a limited account...
It works (sort of -- see below)! This is fabulous functionality. > Thanks to those respsonsible.> > fine print: It only works if I start Inkscape from an Administrator > account. If I start it from a user account, I get the following python > error:> > Traceback (most recent call last):> File "share\extensions\eqtexsvg.py", line 121, in ?> e.affect()> File "C:\Program Files\multimedia\Inkscape\share\extensions\inkex.py", > line 123, in affect> self.effect()> File "share\extensions\eqtexsvg.py", line 107, in effect> svg_open(self, svg_file)> File "share\extensions\eqtexsvg.py", line 54, in svg_open> svg_lines.pop(1)> IndexError: pop from empty list> > I program in python, so I'll take a look and see if I can figure > anything out.> Which brings up a question that I'll start a new thread for ...> > -gary
_________________________________________________________________
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview
Gary
2006-09-16 23:32:02 UTC
Permalink
Post by Davi Fonseca
Hi Gary,
I used to get the same error using the latest Inkscape EXE, while
Ghostscript wasn't installed, but after installing it the error is was
gone . Also, one can have problems if MikTeX is installed using a
limited account. I will try using a limited account later, but I am
pretty sure I made a poster full of latex equations using Inkscape
from a limited account...
Ok, thanks... the limited account thing may be a red herring.
Ghostscript is installed, but maybe Inkscape isn't finding it. I'll
poke around. Thanks for the tip.

-gary
Post by Davi Fonseca
Post by Gary
It works (sort of -- see below)! This is fabulous functionality.
Thanks to those respsonsible.
fine print: It only works if I start Inkscape from an Administrator
account. If I start it from a user account, I get the following python
File "share\extensions\eqtexsvg.py", line 121, in ?
e.affect()
File "C:\Program Files\multimedia\Inkscape\share\extensions\inkex.py",
Post by Gary
line 123, in affect
self.effect()
File "share\extensions\eqtexsvg.py", line 107, in effect
svg_open(self, svg_file)
File "share\extensions\eqtexsvg.py", line 54, in svg_open
svg_lines.pop(1)
IndexError: pop from empty list
I program in python, so I'll take a look and see if I can figure
anything out.
Which brings up a question that I'll start a new thread for ...
-gary
------------------------------------------------------------------------
Get the new Windows Live Messenger! Try it!
<http://get.live.com/messenger/overview>
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
_______________________________________________
Inkscape-user mailing list
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Loading...