[pstricks] cnodes and boxes
Herbert Voss
LaTeX at zedat.fu-berlin.de
Thu Apr 20 12:24:31 CEST 2006
Francisco A. S. Grossi wrote:
> I have some nodes in a XY plane (showing a two-dimension sample space)
> and would like to mark certain events. I was able to it with NCBOX when
> all the relevant points are aligned. I would like to mark some points
> but they would form a triangle; I could not find a way to do it unless I
> specify the actual coordinates instead of refering to the cnodes names
> (I used PSPOLYGON with the XY coordinates). Is there an easier way,
> something like NCBOX?
you can define nodes with four "sides":
http://tug.org/PSTricks/main.cgi?file=Nodes/nodes#circle
or (not easy to understand the meaning of the parameters)
\documentclass{article}
\usepackage{pst-node}
\SpecialCoor
\begin{document}
\circlenode{a}{A}\hspace{5cm}\circlenode{b}{B}
\vspace{3cm}
\circlenode{c}{C}
\pspolygon[linestyle=dashed,linearc=0.5]%
([offset=1,Xnodesep=-1]a)([offset=-1.5,Ynodesep=-0.75]c)%
([offset=0.5,Xnodesep=2]b)
\end{document}
Herbert
More information about the PSTricks
mailing list