[pstricks] funny behaviour of nodes
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Sep 26 19:49:12 CEST 2008
Doris Wagner schrieb:
> please could somebody have a look at the following code?
>
> the problem I stumbled upon is:
>
> Z does what it should, while W,X and Y don't, that is:
>
> ZC \perp BC
> XF \perp BC
> YB \perp BC
> YW \perp BC
it is a problem with the definition of \dotnode.
It puts the contents (dotstyle) into a \hbox, which is
not centered horizontally. The reason why the node
is shifted to the right.
Write into the preamble
\makeatletter
\def\dotnode at ii(#1)#2{%
\begingroup%
\use at par%
\pnode(#1){#2}\psdot(#1)
\endgroup\ignorespaces}
\makeatother
and it should solve the problem.
Herbert
More information about the PSTricks
mailing list