[OS X TeX] pstricks guru please

Michel Bovani michel.bovani at wanadoo.fr
Wed Sep 11 11:07:45 EDT 2002



Le 11/09/02 12:31, « Michel Bovani » <michel.bovani at wanadoo.fr> a écrit :

> 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:
[...]
> 
> 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...

In fact I had forgotten the \TeXtoEPS command

Note that you have to call pst-eps to do this (but pst-all is good anyway)

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

-- 
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 MacOSX-TeX mailing list