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?
Le 19 mars 09 à 19:42, Gewitterbukk a écrit :
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
hi,
it's fine for me
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. entering extended modeProcessing: ./autopst.texLaTeX2e <2005/12/01> Babel and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, arabic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, monogreek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, latin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded. (/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/ scrreprt.cls Document Class: scrreprt 2009/01/24 v3.02b KOMA-Script document class (report)
(/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrkbase.sty (/usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrbase.sty (/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/keyval.sty) (/ usr/local/texlive/2008/texmf-dist/tex/latex/koma-script/scrlfile.sty Package scrlfile, 2008/07/09 v3.00 KOMA-Script package (loading files) Copyright (C) Markus Kohm ))) (/usr/local/texlive/2008/texmf-dist/tex/ latex/koma-script/tocbasic.sty) (/usr/local/texlive/2008/texmf-dist/ tex/latex/koma-script/scrsize11pt.clo) (/usr/local/texlive/2008/texmf- dist/tex/latex/koma-script/typearea.sty Package typearea, 2009/01/24 v3.02b KOMA-Script package (type area) Copyright (C) Frank Neukam, 1992-1994 Copyright (C) Markus Kohm, 1994- )) (/usr/local/texlive/2008/ texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty (/usr/local/texlive/ 2008/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/usr/local/texlive/ 2008/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2008/ texmf-dist/tex/generic/xkeyval/xkeyval.tex)) (/usr/local/texlive/2008/ texmf-dist/tex/latex/ifplatform/ifplatform.sty) (/usr/local/texlive/ 2008/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty (/usr/local/texlive/2008/ texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2008/ texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2008/ texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2008/texmf/ tex/latex/config/graphics.cfg) (/usr/local/texlive/2008/texmf-dist/tex/ latex/graphics/dvips.def))))) (/usr/local/texlive/2008/texmf-dist/tex/ latex/pstricks/pstricks.sty (/usr/local/texlive/2008/texmf-dist/tex/ generic/pstricks/pstricks.tex `PSTricks' v1.27 <2009/01/25> (tvz) (/ usr/local/texlive/2008/texmf-dist/tex/generic/pstricks/pstricks.con)) (/usr/local/texlive/2008/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/ local/texlive/2008/texmf/tex/latex/config/color.cfg))) No file autopst.aux. [1] (./autopst.aux) )
My path is : /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin and I put this in TM prefs > advanced > shell variable > PATH
perhaps you don't have /usr/texbin: in the shell variable (copy/paste you PATH)
kpsewhich is a tool to find packages in your tex distribution
Mundus:~ ego$ kpsewhich pstricks /usr/local/texlive/2008/texmf-dist/tex/generic/pstricks/pstricks.tex Mundus:~ ego$ kpsewhich pdftexconfig.tex /usr/local/texlive/2008/texmf-config/tex/generic/config/pdftexconfig.tex
Regards
Alain Matthes