[OS X TeX] pstricks guru please

Michel Bovani michel.bovani at wanadoo.fr
Wed Sep 11 12:31:11 CEST 2002



Le 10/09/02 19:19, « Alf Kierkegaard » <red_overalls at hotmail.com> a écrit :


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

You have forgotten the pdfpic environment.

\begin{figure}
\begin{pdfpic}
\begin{pspicture}(2, 2)
\psset{linecolor=black, linewidth=1.2pt}
\psline(0.2, 0.2)(1, 0)
\end{pspicture}
\end{pdfpic}
\end{figure}

You have also to set shell_escape = t in texmf.cnf or (better) to call
pdflatex with the -shell-escape option.

BTW at my home dvips fails to generate the eps file...


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

-- 
Michel Bovani



-----------------------------------------------------
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 macostex-archives mailing list