[TxMt] Re: Textmate Latex insert completion problem

Jacob Rus jacobolus at gmail.com
Fri Jan 19 23:52:48 UTC 2007


Nathan Paxton <napaxton at ...> writes:

> Hi there all,I'm using TM 1.5.4, OS X 10.4.8 and I am typing up a LaTeX
document.  When I go to insert a label or reference, I type "\ref{}" and then
hit option-esc to bring up the list of labels for refs and figures.  I can
select one of the items that pops up, but then TM inserts inside the brackets:
> sh: line 1: /usr/local/teTeX/bin/i386-apple-darwin8.6.1/kpsewhich: No such
file or directoryfig:BeliefReXSo the figure label is there, but so is an error
from the lookup procedure.  I know that I don't have this directory because
that's not where i-Installer/MacTeX puts an installation anymore.  What's
causing the error message, and how do I get rid of it?

I believe that the ruby script that fetches the path to your LaTeX tools is:

    $TM_SUPPORT_PATH/Support/lib/LaTeXUtils.rb

If you look at this script, it has a function for fetching the location of the
LaTeX binaries called `tex_path`, which tries several different ways of getting
to your TeX install, and should usually work.  I'm not sure why you'd be getting
this error, as the script should only try to use kpswitch once it has found it
in the `tex_path` function.  That is, the `tex_path` function explicitly tests
for the availability of kpswitch, so if it's not there, it shouldn't be getting
used later on.

Maybe you can share some more details about your install.

I can't really offer too much advice, because I have pretty much nothing to do
with the TeX bundle.  Hopefully Haris will come back from wherever he's been
hiding, or someone else will step in with a solution.

Jacob Rus,  
Harvard College




More information about the textmate mailing list