I think the problem is "pstricks". If this package is involved, TM uses automatically "latex" although "pdflatex" is set as default engine. You can try it with this small example:
\documentclass{scrreprt}
\usepackage{auto-pst-pdf} \usepackage{pstricks}
\begin{document} Hallo
\end{document}
The package "auto-pst-pdf" should make using "pstricks" with "pdflatex" possible but TM doesn't consider this. The only way I found to avoid this is using the line
%!TEX TS-program = pdflatex
at the beginning of the code.
If there's anyone who has a better idea - I'm open for suggestions.
Am 19.03.2009 um 19:25 schrieb Allan Odgaard:
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?