Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What causes the presence of unnecessary white space in the following figure? The box and the circle should have the same center.

enter image description here

\documentclass[border=12pt,pstricks]{standalone}
\usepackage{pst-node}
\begin{document}

\begin{pspicture}[showgrid=true](2,2)
    \rput(1,1){\psDefBoxNodes{A}{\pscirclebox{Circle}}}%
    \psframe(A:bl)(A:tr)%
\end{pspicture}

\end{document}
share|improve this question
    
If I write only "Cir" the space doesn't appear; if I write "Circ" there it is. –  egreg Sep 23 '12 at 19:22
add comment

1 Answer

up vote 8 down vote accepted

that is a trailing space in an internal macro. Use http://texnik.dante.de/tex/generic/pstricks/pstricks.tex

enter image description here

Example for internal node names, needs current pst-eucl/pst-node from http://texnik.dante.de/tex/generic

\documentclass{article}
\usepackage{pst-eucl}
\begin{document}
\psset{saveNodeCoors}
\pstGeonode[CurveType=polygon](0,0){A}(3,3){B}(5,0){C}
\pstMarkAngle*[fillcolor=red]{A}{B}{C}{$\theta$}
\psdot(! N-A.x N-B.y )
\end{document}

enter image description here

share|improve this answer
    
I tested \pnode(2,1){B}\psdot(!B.x B.y) and it works. Did you enable the shorten <nodename>.x instead of N-<nodename>.x? –  I am who I say I am Sep 24 '12 at 3:54
    
no, too many problems. The new version also needs a saveNodeCoords option setting. There are problems with the xelatex driver and at the moment I don't know why –  Herbert Sep 24 '12 at 6:20
    
How about <nodename>.X (with uppercase X) instead of <nodename>.x (with lowercase x)? Is it possible? –  I am who I say I am Sep 24 '12 at 6:26
    
it doesn't hurt to write N-A.x ... –  Herbert Sep 24 '12 at 18:17
    
see edited answer –  Herbert Sep 28 '12 at 20:20
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.