[OS X TeX] pstricks guru please
Alf Kierkegaard
red_overalls at hotmail.com
Tue Sep 10 13:19:07 EDT 2002
Hi everyone,
I have been having trouble getting started with pstricks and TeXShop. I know
TexShop generates pdf and so you have to use a special package (pdftricks).
A file that worked successfully for me before on UNIX was:
%beginning of sample file
\documentclass{article}
\usepackage{pst-all}
\begin{document}
\section{First Section}
This is just a little sentence so that we don't have a big blank page---and
it should be long enough to wrap around.
\begin{figure}
\begin{pspicture}(2, 2)
\psset{linecolor=black, linewidth=1.2pt}
\psline(0.2, 0.2)(1, 0)
\end{pspicture}
\end{figure}
\end{document}
%end of sample file
The above produces the text plus a little line fragment beneath (on UNIX). I
have tried to adapt the code for TexShop like so:
% beginning of sample file number 2
\documentclass{article}
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\usepackage{pst-all}
\end{psinputs}
\begin{document}
\section{First Section}
This is again a little sentence so that we don't have a big blank page---and
it should be long enough to wrap around.
\begin{figure}
\begin{pspicture}(2, 2)
\psset{linecolor=black, linewidth=1.2pt}
\psline(0.2, 0.2)(1, 0)
\end{pspicture}
\end{figure}
\end{document}
%end of sample file number 2
When I try to LaTex this it complains that it doesn't know what
\begin{pspicture} is ("environment pspicture undefined"). I can get rid of
the error by enclosing the pspicture markers between \begin(pdfpic}...
\end{pdfpic}, but then the figure doesn't appear. The truth is I really
don't know what I'm doing.
Thanks for your help!
PS: I have placed pdftricks.sty in the same directory as my .tex files.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
-----------------------------------------------------
Mac TeX info, resources, and news can be found at:
<http://www.esm.psu.edu/mac-tex/>
-----------------------------------------------------
List archives can be found at:
<http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/>
Threaded list archives can be found at:
<http://www.masda.vxu.se/~pku/MacOSX_TeX/>
-----------------------------------------------------
See message headers for list info.
-----------------------------------------------------
More information about the MacOSX-TeX
mailing list