[pstricks] include eps code within pstricks commands

Alexander Grahn A.Grahn at fzd.de
Fri Dec 4 15:53:18 CET 2009

On Fri, Dec 04, 2009 at 09:39:27AM +0100, Herbert Voss wrote:
>Am 04.12.2009 05:02, schrieb mathias legrand:
>> is it possible through pstricks to include a part of an eps figure
>> directly in the Latex code ? Something like :
>> \begin{pspicture}
>> \include{epslines} % <--- lines taken from an eps file
>> \psaxes{}....
>> \end{pspicture}
>\pstVerb{ (Test.eps) run }
>but it makes no sense.  because the eps is an image _per_ page.

I agree. But wouldn't


be an option?

>You have to delete some lines in the eps to get rid of
>some commands.

\includegraphics and the underlying psfile \special would do that, I
believe. \includegraphics parses Test.eps for the %%BoundingBox entry
and sets-up the correct psfile special.

With \rput one has full control about the position (<x_coor>,<y_coor>)
of the lower-left image corner within the coordinate system set up
by the pspicture environment. Scaling, clipping the image to a user
provided bounding box etc. would be possible through options passed
to \includegraphics.


More information about the PSTricks mailing list