[texhax] Putting a (pstricks) pspicture next to text
Herbert Voss
Herbert.Voss at alumni.tu-berlin.de
Fri Jun 1 22:18:09 CEST 2007
Zbigniew Nitecki wrote:
> I have a relatively small picture generated by the pspicture
> environment, which I would like to put inside a paragraph of text, say
> on the right side. I want the text to justify itself so as to leave
> room for the picture next to it (ie, I want the paragraph text to "run
> around" the picture). How is this done? (I figure it has to do with
> minipages or \makebox, but I don't quite understand how these interact
> with pstricks---and to be honest, I don't entirely understand how they
> work.)
\documentclass[english]{article}
\usepackage{pstricks}
\usepackage{wrapfig}
\usepackage{blindtext,babel}
\begin{document}
\begin{wrapfigure}{r}{5.5cm}
\begin{pspicture}[showgrid=true](-1,-0.5)(4,4)
\psframe*(4,4)
\end{pspicture}
\end{wrapfigure}
\blindtext
\end{document}
Herbert
More information about the texhax
mailing list