On Mar 16, 2007, at 4:57 PM, Christopher W. MacMinn wrote:
Hey folks -
I'm trying to get up-and-running with TextMate, which I will be using primarily for LaTeX-ing, and I'm having some troubles. I've been using LaTeX installed via MacPorts/DarwinPorts for a few months now, so I'd prefer to get TM working with that if possible rather than abandoning it for MacTex (unless there is really and truly a good reason to do so).
The main problem I'm having is that when I call the "Insert Label/ Citation Based on Current Word" command, TM spits out "The tex binaries cannot be located!" I assume this means that I have not properly told TM where to find my LaTeX installation, but I can't figure out how to do so. I tried creating a PATH environment variable equal to the output of "echo $PATH" in Terminal, but I don't think it helped. Sorry... either I'm doing something dumb or I'm just not unix-y enough to understand what's going on here.
Here are the steps that TextMate takes to locate the LaTeX binaries:
First, it tries: which kpsewhich
If that doesn't work, it tries the two explicit locations: /usr/texbin/kpsewhich /usr/local/teTeX/bin/powerpc-apple-darwin-current/kpsewhich
And if those files aren't found either, it finally sources the /etc/ profile file, and tries again: . /etc/profile; which kpsewhich
So let's try and diagnose where your problems are. What do you get if you run the "Execute Selection As Ruby" command with the following two lines selected?
puts `which kpsewhich` puts `. /etc/profile; which kpsewhich`
Then, what do you get if you run the following line in the terminal: which kpsewhich
Finally, what is the value of the variable $PATH when you do "echo $PATH" in the terminal?
Any suggestions?
Thanks very much!
Best
- Chris MacMinn
Haris Skiadas Department of Mathematics and Computer Science Hanover College