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
On 19 Mar 2009, at 03:21, Gewitterbukk wrote:
[...] 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.
It tries to be smart, seeing that ‘pstricks’ works with postscript, not PDF. But I assume auto-pst-pdf makes it work with PDF or similar, and the command should either be even smarter, or not smart at all!?!
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.
You say “for the first time”, does that mean the error is gone if you compile again, or that you resolved the problem?