Re: [Inkscape-devel] Extensions-->Render-->LaTeX doesn't exist?
Well, there's probably a better way to do this, but adding the line
export PATH=$PATH:/usr/local/bin:/usr/texbin
just before
exec "$CWD/bin/inkscape" "$@"
in /Applications/Inkscape.app/Contents/Resources/script did the trick. Now I can start Inkscape.app by clicking its icon, without "losing" Render-->LaTeX.
Note: I have pstoedit in /usr/local/bin, with latex and dvips in /usr/texbin. Without the added line, the value of PATH is only /usr/bin:/bin:/usr/sbin:/sbin, rather than the value of PATH in my login shell.
Thanks again for the help.
----- Original Message ----- From: "Louis P Zulli" <zullil@...2149...> To: "inkscape-devel" inkscape-devel@lists.sourceforge.net Sent: Thursday, March 5, 2009 1:16:55 PM GMT -05:00 US/Canada Eastern Subject: Re: [Inkscape-devel] Extensions-->Render-->LaTeX doesn't exist?
Thanks, JiHO. Apparently, if I start Inkscape by clicking on the Inkscape.app icon, then my PATH variable is not read. However, if I start Inkscape by typing /Applications/Contents/MacOS/Inkscape in Terminal, I do have Extensions-->Render-->LaTeX (and it seems to work correctly).
Now I need to figure out why my first method failed.
Louis ----- Original Message ----- From: "jiho" <jo.irisson@...400...> To: "Louis P Zulli" <zullil@...2149...> Sent: Thursday, March 5, 2009 9:01:56 AM GMT -05:00 US/Canada Eastern Subject: Re: [Inkscape-devel] Extensions-->Render-->LaTeX doesn't exist?
On 2009-March-05 , at 13:28 , Zulli, Louis P wrote:
I just installed the latest snapshot of Inkscape-20809-10.5-i386.dmg on my MacBook. There does not seem to be an option for including LaTeX formulas. With the stable version of Inkscape, I use the textext extension. However, I thought the ability to render LaTeX had now been built into Inkscape.
Am I missing something, or is this feature not available yet? Thanks.
I have built this snapshot. I initially saw the same here = no Latex extension. Nothing has changed in the .inx file itself so my best guess is that something changed in the loading of extensions. However, now, after running different versions of Inkscape including the release one, I see the option in the devel version. No idea what happened. One thing I did and you may try, is to open Inkscape.app (right click, show package content). Navigate to Contents/Resources/extensions and open eqtexsvg.inx and remove the lines: <dependency type="executable" location="path">latex</dependency> <dependency type="executable" location="path">dvips</dependency> <dependency type="executable" location="path">pstoedit</dependency> it may be that Inkscape does not find these executables when it checks them before loading the extension, even though they are on your system (but in exotic places such as /usr/texbin or /opt/local/bin). Removing the lines removes the check.
JiHO --- http://jo.irisson.free.fr/
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 2009-March-05 , at 20:00 , Zulli, Louis P wrote:
Well, there's probably a better way to do this, but adding the line
export PATH=$PATH:/usr/local/bin:/usr/texbin
just before
exec "$CWD/bin/inkscape" "$@"
in /Applications/Inkscape.app/Contents/Resources/script did the trick. Now I can start Inkscape.app by clicking its icon, without "losing" Render-->LaTeX.
Note: I have pstoedit in /usr/local/bin, with latex and dvips in / usr/texbin. Without the added line, the value of PATH is only /usr/ bin:/bin:/usr/sbin:/sbin, rather than the value of PATH in my login shell.
There is already the following in /Applications/Inkscape.app/Contents/ Resources/bin/inkscape which launches Inkscape.
# Brutally add many things to the PATH. If the directories do not exist, they won't be used anyway. # People should really use ~/.macosx/environment.plist to set environment variables as explained by Apple: # http://developer.apple.com/qa/qa2001/qa1067.html # but since no one does, we correct this by making the 'classic' PATH additions here: # /usr/local/bin which, though standard, doesn't seem to be in the PATH # newer python as recommended by MacPython http://www.python.org/download/mac/ # Fink # MacPorts (former DarwinPorts) export PATH="/opt/local/bin:/sw/bin/:/Library/Frameworks/ Python.framework/Versions/Current/bin:/usr/local/bin:$CWD:$PATH"
I just added /usr/texbin/ (as of rev 20838).
JiHO --- http://jo.irisson.free.fr/
participants (2)
-
jiho
-
Zulli, Louis P