[pstricks] labels
Hubert Lam (TeX/PSTricks)
tex at hubertlam.info
Sat Feb 21 10:45:23 CET 2009
Doris Wagner wrote:
> hi list,
>
> I'm drawing a picture with pst-eucl; I have set a lot of points via
> pstGeonode; now I want to put labels, referring exactly to the middle
> of the segment of, say, nodes A and B.
>
> as far as I can see, I can use ncput (or similar commands) only
> directly after having set the two nodes, right?
> what I would like to avoid, is, constructing the middle points of all
> the segmetns I have in mind;
>
> so, is there a possibility to solve this problem? what I have in mind,
> is something like
>
> \uput[options](A)(B){stuff}
>
> ,where A and B are the names of some nodes and >stuff< is placed
> between A and B
>
Hi Doris,
Perhaps
\pnode(x,y){A}
\pnode(u,v){B}
\uput{3\psxunit}[(A)](B) %% (3 units from B in A's direction)
be of use, or
\pnode(x,y){A}
\pnode(u,v){B}
\pcline[linestyle=none](A)(B) \ncput*[npos=0.2]{stuff}
be good for your usage?
More information about the PSTricks
mailing list