[pstricks] PST-EPS

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Jun 26 13:55:13 CEST 2007


cyrille Piatecki wrote:
> It seems that PST-EPS is exactly the package I need. But under MikTeX, 
> it doesn't find neither the pro headers neither the fonts. For the pro, 
> I have copyed them in the current directory But I dont know how to 
> manage the fonts.
>
> My problem is to construct a pdf exactly of the size of the pspicture.
>   
we had that problem several times before, but I couldn't
reproduce it with my Linux system and TeXLive 2007.
This following example runs fine here.

HErbert


\documentclass{article}
\pagestyle{empty}
\setlength\parindent{0pt}
\usepackage{pstricks,pst-plot,pst-eps,graphicx,multido}
\def\particle#1#2{%
  \pscircle[fillstyle=solid,fillcolor=black](#1,#2){2pt} %particle
 
\pscircle[linestyle=dotted,dotsep=1.5pt,linewidth=0.5pt,linecolor=gray](#1,#2){6pt}}
\begin{document}

\PSTtoEPS[bbllx=-1cm,bblly=-0.5cm,bburx=7cm,bbury=7cm]{image1.eps}{%
  \begin{pspicture}(-1,-0.5)(7,7)
    \psset{linewidth=2pt}
    \psframe[linecolor=white](-1,-0.5)(7,7)
   
\psgrid[subgriddiv=0,griddots=10,gridlabels=0,gridcolor=lightgray](0,0)(6,6)%grid
    \psline[linewidth=1.5pt]{-}(-1,6)(7,6) %boundary
    \psdots[dotscale=1,dotstyle=o,fillstyle=solid,fillcolor=red](3,6.5) 
%photon
    \psline[linewidth=0.5pt]{->}(3,6.5)(3,5.5) %direction
    \multido{\ia=0+1}{7}{\multido{\ib=0+1}{7}{\particle{\ia}{\ib}}}
  \end{pspicture}}

\begin{figure}[htb]
\centering
\fbox{\includegraphics[scale=0.8]{image1}}
\caption{Bilderzeugung "`on the fly"'}
\end{figure}

\end{document}




More information about the PSTricks mailing list