[OS X TeX] Need help collaborating with Windows user
Peter Dyballa
Peter_Dyballa at Web.DE
Sat Mar 13 20:56:14 CET 2010
Am 13.03.2010 um 02:52 schrieb Michael Sharpe:
> As you have embedded pstricks in your tex file, latex+dvips is the
> normal processing mode, but it makes for slow rendering.
Many PSTricks inclusions work with pdfTeX when the package pdfTricks
is used:
%%% preamble
\usepackage{ifpdf}
\ifpdf
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\usepackage{pst-text,pst-node,pst-tree}
\end{psinputs}
\else
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\usepackage{pst-text,pst-node,pst-tree}
\fi
%%% the right stuff
\begin{document}
\ifpdf
\begin{pdfdisplay}
\begin{pspicture}(5,3)
\psset{arrowscale=2,linewidth=1pt}
\psline{]-[}(4,0)
\psline{)-(}(0,1)(4,1)
\psline{)->}(0,2)(4,2)
\psline{]->>}(0,3)(4,3)
\end{pspicture}
\begin{pspicture}(-1,-1)(2,1.25)
\psaxes{->}(0,0)(-1,-1)(2,1.25)
\psset{linewidth=1.5pt}
\parabola[linestyle=dashed](-1,1)(0,0)
\parabola[origin={0.5,-0.5}](-1,1)(0,0)
\qdisk(0.5,-0.5){2pt}
\end{pspicture}
\end{pdfdisplay}
\else
\begin{pspicture}(4,3)
\psset{arrowscale=2,linewidth=1pt}
\psline{]-[}(4,0)
\psline{)-(}(0,1)(4,1)
\psline{)->}(0,2)(4,2)
\psline{]->>}(0,3)(4,3)
\end{pspicture}
\begin{pspicture}(-1,-1)(2,1.25)
\psaxes{->}(0,0)(-1,-1)(2,1.25)
\psset{linewidth=1.5pt}
\parabola[linestyle=dashed](-1,1)(0,0)
\parabola[origin={0.5,-0.5}](-1,1)(0,0)
\qdisk(0.5,-0.5){2pt}
\end{pspicture}
\fi
...
\end{document}
When working with PSTricks, with latex+dvips or with pdflatex, you
have to use the option -shell-escape.
--
Greetings
Pete
Know thyself. Need help, call GOOGLE.
More information about the macostex-archives
mailing list