2
\documentclass[border=10pt,pstricks]{standalone}
\usepackage{pst-node,amsmath}
\begin{document}
\begin{pspicture}[showgrid](-5,-5)(5,5)
\newcommand{\hinhtron}[4]{
    \pscircle(0,0){1}
    \psline(1;45)(1;-135)
    \psline(1;-45)(1;135)
    \rput(.5,0){#1}
    \rput(0,.5){#2}
    \rput(-.5,0){#3}
    \rput(0,-.5){#4}
}

\psnode(-2,0){A}{\hinhtron{0}{1}{0}{}}
\ncline[nodesep=1cm]{->}{A}{B}
\naput{9} \nbput{$x_1$}
\pnodes(-2,0){L}
\pnode([nodesep=1,angle=15]A){Q}
\psdot(Q)
\end{pspicture}
\end{document}

enter image description here

If the letter A is replaced by L, so:

enter image description here

4
  • A \pnode is empty, a \psnode has a contents.
    – Bernard
    Aug 23 '19 at 14:13
  • pnodes is also available. Aug 23 '19 at 16:57
  • @MoneyOrientedProgrammer Please, who are you, i don't know, you get out. :-)
    – user179355
    Aug 26 '19 at 4:56
  • I can read your mind. Aug 26 '19 at 6:31
3

\psnode(x,y){name}{text} is internally a \rnode{name}{text} and its coordinates depend to the internally used \rput(x,y){\rnode{name}{text}}. That could be the same as the given (x,y) but must not be the same! Important is the center of what is given by the text, that will be the node {name}.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy