[pstricks] Figures in .ps file
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Tue Feb 11 15:31:15 CET 2003
Maria Angela Weiss schrieb:
> I believe this is a very basic question, anyway, I did a nice figure using
> pstrics and now I want insert it in my
> paper. The figure MUST be translated to ps and fit a figure size (let's
> say, 12 X 5 cm).
>
> How can I convert my figure to .ps and fit into a figure that does not
> uses the whole page?
here is an example to save a pstricks image as an eps.
Herbert
\documentclass{article}
\usepackage{pst-eps,graphicx}
\newcommand{\pssave}[2]{%
\PSTtoEPS[bbllx=-2,bblly=-2,bburx=2,bbury=2]
{#1.eps}{#2}%
}
\parindent=0pt
\begin{document}
\pssave{EPSfileName}{%
\begin{pspicture}(-2,-2)(2,2)
\psset{linecolor=red}% any pstricks stuff
\pscircle{2}
\end{pspicture}%
}
line before image\\
\includegraphics{EPSfileName}\\
line bhind image
\end{document}
More information about the PSTricks
mailing list