[OS X TeX] A suggestion for NewPdftricks (or for pdftricks in general)

Franck Pastor pastor at fusl.ac.be
Fri May 27 07:02:09 CEST 2005

Le 27-mai-05, à 02:15, Ross Moore a écrit :

> \makeatletter  %  not necessary if done within a package
> \def\BeforeStream
>    {\message{Opening PDFStream=\PDFTfigname.tex}%
>     \immediate\write\verbatim at out{\string\documentclass[12pt]{article}}
>     \immediate\write\verbatim at out{\string\input\space tmp.inputs}
>     \immediate\write\verbatim at out{\string\pagestyle{empty}}
>     \immediate\write\verbatim at out{\string\begin{document}}
>     }
> \makeatother
> This should fix it for all the images.

Thanks !!! I'll try that later today.

> I've not encountered such problems with ps4pdf , which I use 
> extensively
> in a very large Encyclopaedia project.
> Can you please post an example that gives bad results.

Here ! This is an example I gave on this list some months ago ;-)

\pstThreeDCoor[drawing=true, linewidth=1pt,linecolor=black,%
    xMin=0,xMax=1.1, yMin=0,yMax=1.1, zMin=0,zMax=1.1]

I use TeXShop 1.40 with 10.3.9, and the latter Gerben's distribution of 
TeX. I compile it with the following script, kindly given by Herb to 
the list :

location=$(dirname "$1")
basefname="${location}/`basename "$1" .tex`"
# process the figures
latex --shell-escape "$1"
dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi"
ps2pdf13 "${basefname}-pics.ps" "${basefname}-pics.pdf"
/bin/rm "${basefname}-pics.ps" "${basefname}.dvi"
#process the file (once)
pdflatex --shell-escape "$1"

The figure is cropped in my resulting file. There should have been "x", 
"y", "z" written in front of the arrow, but they have disappeared, and 
moreover the arrow of the z-axis is gone :-(((
This also happens with the last version of pst-pdf, which is based on 
ps4pdf... No problems with Newpdftricks !

Thanks again for your help !

F. Pastor
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the macostex-archives mailing list