[pstricks] putting a box around a pair of nodes
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Fri Mar 26 10:56:30 CET 2004
John Frampton sagte:
>
> Dear all,
>
> I cannot solve the following problem and would very much like
> some help.
>
> If the zero dimensional node A1 is directly above the zero dimensional
> node A2, then I can easily put a box around A1 and A2 using:
>
> \SpecialCoor
> \psframe[nodesep=2.5ex]([angle=135]A1)([angle=-45]A2)
>
> Each corner of the box will be a distance 2.5ex from one of the
> nodes.
>
> Is there any way to accomplish this if the points P1 and P2 are
> not vertically aligned?
something like this??
\documentclass{article}
\usepackage{pst-node}
\SpecialCoor
\begin{document}
\pnode(0,0){A}\pnode(3,4){B}
\psframe(A)(B)
\end{document}
here are some more examples:
http://PSTricks.de
Herbert
--
Dr.-Ing Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
More information about the PSTricks
mailing list