[OS X TeX] I do like ps4pdf

Herb Schulz herbs at wideopenwest.com
Mon Feb 7 16:00:53 CET 2005


On 2/7/05 2:06 AM, "Daniel Becker" <daniel.becker at uni-rostock.de> wrote:

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

Howdy,

Unfortunately, with both pdftricks and ps4pdf (what you are trying to use,
you've got to place all the pstricks function either inside an environment
(pdftricks) or inside a macro (ps4pdf) so


\documentclass{article}
\usepackage{ps4pdf}

\PSforPDF{
\usepackage{pst-plot}
\usepackage{pst-text}
}

\begin{document}

\PSforPDF{
\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}

does work fine. Notice that the \usepackages for the pstricks things also
need to be inside the macro; all of the things inside the macro \PSforPDF{}
(the corresponding environments with pdftricks --- but there are two
different ones there; one for the common header file and another for each
figure) get written to the file to be processed (in the background, using
\write18 or manually) to get the figures.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

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