[OS X TeX] I do like ps4pdf

Daniel Becker daniel.becker at uni-rostock.de
Mon Feb 7 09:06:19 CET 2005


Hallo,

>
> #!/bin/sh
> location=$(dirname "$1")
> basefname="${location}/`basename "$1" .tex`"
> # process the figures
> latex $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"
>
> This will leave the extra file file-pics.pdf, where `file' is the 
> original
> base file name without the extension. By the way, all the extra double
> quotes are to take care of possible problems with directories with 
> spaces in
> their names, Sigh...
>

I can use  Herb's engine-file for some pstricks-pictures, for others 
not. I get in the console:

! Undefined control sequence.
\XC@@usecolor ...expandafter \c at lor@to at ps #1#2\@@
                                                   \else \expandafter 
\expand...
l.14 of the \TeX{} Users Group}


where \c at lor@to at ps seems to be the problem as I get it with other 
examples as well.

This what I try to typeset with Herb's engine (example from the 
documentation)

\documentclass{article}
\usepackage{pst-plot}
\usepackage{pst-text}
\begin{document}
\psset{unit=1cm}
\begin{pspicture}(-0.25,-2.25)(6.25,2.25)
\pstextpath[linestyle=none]%
{\psplot[linewidth=1pt,%
linestyle=dotted,%
plotpoints=300,%
xunit=0.015,%
yunit=2]{0}{400}{x sin}}
{\LARGE TUGboat, the journal
of the \TeX{} Users Group}
\end{pspicture}%
\end{document}


The typestting via the ghostscript-route works ok. Thanks for any 
help...

Daniel

--------------------- 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