[OS X TeX] auto-pst-pdf
Ross Moore
ross.moore at mq.edu.au
Wed Oct 27 18:16:33 EDT 2010
Hi Michael,
On 28/10/2010, at 1:50 AM, Michael Hoppe wrote:
> Dear fellows,
>
> compiling
>
> %%%%%%%%%%%% fehler.tex %%%%%%%%%%%%%
> %&mylatex
> \documentclass{minimal}
> \usepackage{auto-pst-pdf}
> \listfiles
> \begin{document}
> a
> \end{document}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> creates fehler.log:
>
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (format=pdflatex 2010.10.27) 27 OCT 2010 16:36
> entering extended mode
> \write18 enabled.
> %&-line parsing enabled.
> **fehler.tex
> (./fehler.tex
>
> [a lot of stuff ommited ...]
>
> Preview: Fontsize 10pt
> Preview: PDFoutput 1
> [1
> Non-PDF special ignored!
> Non-PDF special ignored!{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/upd
> map/pdftex.map}] (./fehler.aux)
I get this too, but it is preceded by another glitch.
viz.
>> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>> restricted \write18 enabled.
>> entering extended mode
>> (./pst-check.tex
>> LaTeX2e <2009/09/24>
>> ...
>> ...
>> (/usr/local/texlive/2010/texmf-dist/tex/latex/base/minimal.cls
>> Document Class: minimal 2001/05/25 Standard LaTeX minimal class
>> ) (/usr/local/texlive/2010/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
>> (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
>> (/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty
>> ...
>> ...
>> (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
>>
>> Package ifplatform Warning:
>> shell escape is disabled, so I can only detect \ifwindows.
>>
>> )
>>
>> ! Package auto-pst-pdf Error:
>> "shell escape" (or "write18") is not enabled:
>> auto-pst-pdf will not work!
>>
Ensuring that the TeXshop engine uses -shell-escape
gets past this check smoothly.
Now I get messages:
>> (./pst-check.w18))
>> -------------------------------------------------
>> auto-pst-pdf: Auxiliary LaTeX compilation
>> -------------------------------------------------
>> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>> entering extended mode
>> -------------------------------------------------
>> auto-pst-pdf: End auxiliary LaTeX compilation
>> -------------------------------------------------
>>
>>
>> Package auto-pst-pdf Warning:
>> Creation of pst-check-autopp.dvi failed.
>> This warning occured on input line 124.
>>
>>
>> Package auto-pst-pdf Warning:
>> Could not create pst-check-pics.pdf. Auxiliary files not deleted.
>> This warning occured on input line 124.
>>
But isn't the purpose of auto-pst-pdf.sty to cause
an auxiliary run of LaTeX, in .dvi mode, to convert the
contents of special environments to PDF via PostScript?
When you have no such environments, as in this overly-simple
test file, then using the package is not relevant at all.
Now auto-pst-pdf.sty doesn't do the real work; that is done
by pst-pdf.sty , so you can simplify the test a bit and still
get the same messages.
Here's the output tracing:
>> Completed box being shipped out [1]
>> \vbox(578.15999+0.0)x469.75499
>> .\glue 0.0
>> .\vbox(578.15999+0.0)x469.75499
>> ..\vbox(0.0+0.0)x469.75499
>> ...\glue 0.0 plus 1.0fil
>> ...\hbox(0.0+0.0)x469.75499
>> ....\pdfcolorstack 0 push {0 g 0 G}
>> ....\hbox(0.0+0.0)x469.75499
>> ....\pdfcolorstack 0 pop
>> ..\glue 0.0
>> ..\glue(\lineskip) 0.0
>> ..\vbox(578.15999+0.0)x469.75499, glue set 568.15999fil
>> ...\special{ps:tx at Dict begin gsave STV CP T /ps at rot 0 def grestore end}
>> ...\special{ps:tx at Dict begin gsave STV CP T /ps at refangle 0. def grestore end
>> }
>> ...\pdfcolorstack 0 push {0 g 0 G}
>> ...\glue(\topskip) 5.69446
>> ...\hbox(4.30554+0.0)x469.75499, glue set 444.75497fil
>> ....\hbox(0.0+0.0)x20.0
>> ....\OT1/cmr/m/n/10 a
>> ....\penalty 10000
>> ....\glue(\parfillskip) 0.0 plus 1.0fil
>> ....\glue(\rightskip) 0.0
>> ...\glue 0.0 plus 1.0fil
>> ...\glue 0.0
>> ..\glue(\baselineskip) 0.0
>> ..\hbox(0.0+0.0)x469.75499
>> ...\pdfcolorstack 0 push {0 g 0 G}
>> ...\hbox(0.0+0.0)x469.75499
>> ...\pdfcolorstack 0 pop
>>
>> Non-PDF special ignored!
>> Non-PDF special ignored!{/usr/local/texlive/2010/texmf-var/fonts/map/pdftex/upd
>> map/pdftex.map}
which lets you see the 2 \special commands which are for
establishing the page rotation angle.
So the question is why are these being placed in the PDF,
when they can only have relevance in the auxiliary .dvi ?
Or maybe they are to establish some parameters that the embedded
PDF images can reference, to adjust orientation to the page
that they are on. But if pdfTeX discards them, then this cannot
work. But maybe pdfTeX gets the angles right anyway, and they
are really designed for use with a different driver?
Just a bit of guessing here.
Someone else should be able to clarify this.
>
> Michael
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the MacOSX-TeX
mailing list