Dear TextMate/LaTeX specialists!
I consult you because I've got a problem with setting up TextMate (TM) for LaTeX correctly. At the moment TM seems to choose between using "latex" or "pdflatex" by itself independent of the default engine setting. For example when I'm using packages like "auto-pst- pdf" or "pstricks" TM uses "latex" to compile although "pdflatex" is set as default engine. This results in problems like everyone can imagine. The only way to avoid this is inserting the line "%!TEX TS- program = pdflatex" at the beginning if the LaTeX code. But that's not the general idea I think.
When I try to compile LaTeX-Code for the first time, I get the window which is shown in the screenshot "pic1" attached in the appendix of this mail. Up to now I've pressed the button "Set PATH and Relaunch". Just because I don't know what "kpsewhich" means and where it is to find. Maybe that's the crunchpoint. After that the Terminal starts, sets the PATH and TM restarts. But it doesn't work correctly in my opinion. "Pic2" shows my LaTeX preferences. My current PATH is "/bin:/ sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin". The shell variables are shown in "pic3". I'm using Mac OS 10.4.11, TeXLive 2008 and the current version of TM.
I would be very lucky if someone could help me by letting me know the right settings.
Thanks a lot beforehand!
Best regards from Germany
A. van Ohlen