[OS X TeX] Installing PSTricks
Frédéric Dupont
Frederic.Dupont at univ-brest.fr
Fri Oct 6 22:44:56 CEST 2006
>
> When you use pstricks you can't use pdflatex (which is the default
> engine in TeXShop); you neet to use tex and ghostscript to do the
> typesetting.
>
Hi,
It's certainly better to create a texmf directory (i.e. a texmf
folder) in your
/Users/my_account/Library/
with proper subfolders (tex,fonts,dvips etc. ) and proper
subsubfolders (tex/generic , tex/latex, etc.).
You can use PSTricks with pdflatex. You need to download PdfTricks
(or better, NewPdfTricks).
A typical foo.tex document looks like:
\documentclass[openany,10pt,a4paper]{book}
...
[here are the others packages you need]
....
\usepackage{pdftricks}
\usepackage{multido}
\usepackage[svgnames,x11names]{xcolor}
%%you call here PSTricks packages you need%%%%%%
\begin{psinputs}
\usepackage{pst-all}
\usepackage{pst-grad}
\usepackage{pst-vue3d}
\usepackage{pst-3dplot}
\usepackage{pstricks-add}
....
[and perhaps, other packages]
.....
\end{psinputs}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin[document]
\begin{pdfdisplay}
\psset{xunit=5cm,yunit=5cm}
\begin{pspicture}(-0.1,-0.5)(2.2,1.2)
\psline[linestyle=dotted](1,0)(1,1)
\psline[linestyle=dotted](2,0)(2,1)
\psline[linestyle=dotted](0,1)(2,1)
\end{pspicture}
\end{pdfdisplay}
\end[document
and with newpdftricks the command is :
pdflatex -shell-escape foo.tex
Sincerely,
-fd
------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list