[OS X TeX] auto-pst-pdf

Doris Wagner doris.wagner at mac.com
Wed Aug 12 04:36:59 EDT 2009


hi all, especially herbert,

>>> hi list,
>>>
>>> when I compile this
>>>
>>> 	%!TEX TS-program = pdflatexmk
>>> 	
>>> 	\documentclass{article}
>>> 	\usepackage[
>>> 	    latex={-interaction=nonstopmode},
>>> 	    crop=off,runs=2
>>> 	  ]{auto-pst-pdf}
>>> 	\begin{document}
>>> 	
>>> 	test
>>> 	
>>> 	\begin{pspicture}(10,10)
>>> 	\psline[linewidth=2pt](0,0)(10,10)(0,10)(10,0)
>>> 	
>>> 	\end{pspicture}
>>> 	
>>> 	test
>>> 	
>>> 	\end{document}
>>>
>>>
>>> I get the following error message
>>>
>>> 	(/usr/local/texlive/2008/texmf-		dist/tex/latex/ifplatform/ 
>>> ifplatform.sty)
>>> 	
>>> 	! LaTeX Error: Unknown option `runs' for package `auto-pst-pdf'.
>>> 	
>>> 	See the LaTeX manual or LaTeX Companion for explanation.
>>> 	Type  H <return>  for immediate help.
>>> 	...
>>>
>>> 	l.58 \def
>>>       \app at exe{\immediate\write18}
>>> 	?     	
>>
>> What version of auto-pst-pdf are you using? The run option wasn't  
>> in earlier versions.

you were right, I updated an now there is no error message concerning  
the >runs<-option anymore
>> But there is a warning message on the console within the auto-pst- 
>> pdf runs:
>>
>> l.10 	\begin{pspicture}
>>                      (10,10)
>> ! Undefined control sequence.
>> l.11 	\psline
>>            [linewidth=2pt](0,0)(10,10)(0,10)(10,0)
>>
>> so it's clear that you are not using some packages that are needed  
>> (like pstricks?). Oh... the document seems to come out correctly.
yesyes, I forgot pstricks-package, but as you saw, it runs also  
without it;
>> By the way, is there a reason you're using the runs=2 option;
well, not really, I just took the header of the example-file delivered  
within the original (not updated) package and tested it...

>> it is meant to tell auto-pst-pdf that there must be multiple  
>> INTERNAL runs since there are cross-references in your figures?
I guess yes since in the original example file there is a cross- 
reference;


anyway, when I run the example from my first mail (package pstricks  
added), the program runs 6 times and at the end complains about not  
finding stabel source files... the file seems to compile fine, but I'm  
not sure if there's everything as it shoud be since there still are  
some warnings I don't understand...

here is the console output (of the last run; the first 5 runs are the  
same):

Run number 1+5 of 'pdflatex --shell-escape meinbsp.tex'
------------
Latexmk: Saving old .aux file "./meinbsp.aux"
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
  \write18 enabled.
  %&-line parsing enabled.
entering extended mode
(./meinbsp.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,  
dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek,  
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,  
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,  
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,  
italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish,  
portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish,  
swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo))
(/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/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/ifplatform/ifplatform.sty)
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
  %&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,  
dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek,  
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,  
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,  
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,  
italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish,  
portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish,  
swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(./meinbsp.tex (/usr/local/texlive/2008/texmf-dist/tex/latex/base/ 
article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo))
(/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/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/ifplatform/ifplatform.sty)
(/usr/local/texlive/2008/../texmf-local/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-local/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2008/../texmf-local/tex/generic/pstricks/ 
pstricks.tex
`PSTricks' v1.21  <2008/02/01> (tvz)
(/usr/local/texlive/2008/../texmf-local/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 meinbsp-autopp.aux.
[1] (./meinbsp-autopp.aux) )
Output written on meinbsp-autopp.dvi (1 page, 712 bytes).
Transcript written on meinbsp-autopp.log.
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
  %&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,  
dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek,  
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,  
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,  
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,  
italian, la
tin, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish,  
portuguese, r
omanian, russian, sanskrit, serbian, slovak, slovenian, spanish,  
swedish, turki
sh, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(./meinbsp.tex (/usr/local/texlive/2008/texmf-dist/tex/latex/base/ 
article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo))
(/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/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/ifplatform/ifplatform.sty)
(/usr/local/texlive/2008/../texmf-local/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)))
No auxiliary output files.

(/usr/local/texlive/2008/../texmf-local/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2008/../texmf-local/tex/generic/pstricks/ 
pstricks.tex
`PSTricks' v1.21  <2008/02/01> (tvz)
(/usr/local/texlive/2008/../texmf-local/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)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/preview/preview.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/preview/prtightpage.def))
(/usr/local/texlive/2008/texmf-dist/tex/latex/pdftex-def/pdftex.def

! Package pdftex.def Error: PDF mode expected, but DVI mode detected!
(pdftex.def)                If you are using `latex', then call  
`pdflatex'.
(pdftex.def)                Otherwise check and correct the driver  
options.
(pdftex.def)                Error recovery by switching to PDF mode.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
  ...

l.345     }\@ehc

))) (./meinbsp-autopp.aux)
Preview: Fontsize 10pt
Preview: Tightpage -32891 -32891 32891 32891
[1] )
(see the transcript file for additional information)
Output written on meinbsp-autopp.dvi (1 page, 1904 bytes).
Transcript written on meinbsp-autopp.log.
This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (www.radicaleye.com 
)
' TeX output 2009.08.12:1020' -> meinbsp-autopp.ps
</usr/local/texlive/2008/texmf/dvips/base/tex.pro>
</usr/local/texlive/2008/texmf/dvips/config/alt-rule.pro>
</usr/local/texlive/2008/../texmf-local/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2008/../texmf-local/dvips/pstricks/pst- 
algparser.pro>
</usr/local/texlive/2008/../texmf-local/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2008/texmf/dvips/base/special.pro>. [1]
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------

(/usr/local/texlive/2008/../texmf-local/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/pdftex-def/pdftex.def)))
(/usr/local/texlive/2008/../texmf-local/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2008/../texmf-local/tex/generic/pstricks/ 
pstricks.tex
`PSTricks' v1.21  <2008/02/01> (tvz)
(/usr/local/texlive/2008/../texmf-local/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)))
(/usr/local/texlive/2008/texmf-dist/tex/latex/preview/preview.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/dvips.def)))
(./meinbsp.aux)
(/usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
<meinbsp-pics.pdf, id=2, page=1, 285.52672pt x 285.52672pt>
<use meinbsp-pics.pdf, page 1> [1{/usr/local/texlive/2008/texmf-var/ 
fonts/map/p
dftex/updmap/pdftex.map} <./meinbsp-pics.pdf>] (./meinbsp.aux) )</usr/ 
local/tex
live/2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb>
Output written on meinbsp.pdf (1 page, 5490 bytes).
Transcript written on meinbsp.log.
Latexmk: File "./meinbsp.aux" has not changed, so it is valid
Latexmk: File 'meinbsp-pics.pdf' changed during run.  I must rerun latex
Latexmk: Absolute maximum runs of latex reached without finding stable  
source files





>
> Howdy,
>
> By the way, using the pst-pdf package along with the pst-pdfmk  
> engine (rather than the pdflatexmk engine) will accomplish the same  
> thing as auto-pst-pdf but automatically run the ``INTERNAL''  
> processing the correct number of times to resolve any internal cross- 
> references, etc.



I tried this:


%!TEX TS-program = pst-pdfmk

\documentclass{article}
\usepackage[
   ]{pst-pdf}
\usepackage{pstricks}


\begin{document}

test

\begin{pspicture}(10,10)
\psline[linewidth=2pt](0,0)(10,10)(0,10)(10,0)

\end{pspicture}
test
\end{document}



but:


first, there comes some error message:

(/usr/local/texlive/2008/texmf-dist/tex/latex/pdftex-def/pdftex.def

! Package pdftex.def Error: PDF mode expected, but DVI mode detected!
(pdftex.def)                If you are using `latex', then call  
`pdflatex'.
(pdftex.def)                Otherwise check and correct the driver  
options.
(pdftex.def)                Error recovery by switching to PDF mode.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
  ...

l.345     }\@ehc

second, (ignoring the message and clicking on typeset in texshop once  
more) there comes out a cropped picture, not containing the >test<- 
words;


third:

I can't find a file called pst-pdfmk.engine anywhere in ~/Li*/Te*/ 
Engines
or anywhere else... where should this be???



thanx very much for your help!



doris





More information about the MacOSX-TeX mailing list