[pstricks] nodes

Pedro Jorge Caridade caridade at qta.qui.uc.pt
Wed Jun 16 19:33:20 CEST 2004


Thanks Herbert, but it didn't solve my problem (I think I did not myself
very clear). I have a newcommand with

\newcommand{\Ozone}{\mbox{\begin{pspicture}[][0.5](-0.75,-0.4)(0.75,1)%
\psgrid(-10,-0.5)(2,2)
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](-0.35,0){0.4cm}%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.35,0){0.4cm}%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.0,0.6){0.4cm}
\end{pspicture}}}

When I use a rnode, the 0pt nodepos is the limit of my \Ozone command.
What I would need, without choosing by hand the proper nodepos is the
center of my node to use in my psmatrix.

Pedro 



 

On Wed, 2004-06-16 at 17:59, Herbert Voss wrote:
> Pedro Jorge Caridade wrote:
> 
> > I'm doing some psmatrix in which a have some figures in the columns. My
> > question is, what node should I use (mnode=) in such a way that the node
> > reference is the center of the node. The Rnode or the frame node have
> > the problem of connections, because I really need the center of the
> > node. 
> 
> rnode and ncline or pcline, depends to what you need.
> 
> Herbert
> 
> \documentclass{article}
> \usepackage{graphicx}
> \usepackage{pst-node}
> \SpecialCoor
> \def\pic{\includegraphics[width=1cm]{rose}}
> \begin{document}
> 
> Without psmatrix
> 
> \rnode{ul}{\pic} \hspace{1cm}  \rnode{ur}{\pic}
> 
> \vspace{3cm}
> \rnode{ll}{\pic} \hspace{1cm}  \rnode{lr}{\pic}
> \ncline{ul}{lr}
> \pcline[linecolor=red](ur)(ll)
> 
> 
> \bigskip
> Same with psmatrix
> 
> \begin{psmatrix}[colsep=2cm,rowsep=2cm]
> \rnode{ul}{\pic} &  \rnode{ur}{\pic}\\
> \rnode{ll}{\pic} &  \rnode{lr}{\pic}
> \ncline{ul}{lr}
> \pcline[linecolor=red](ur)(ll)
> \end{psmatrix}
> 
> \bigskip
> With psmatrix and mnode
> 
> \begin{psmatrix}[colsep=2cm,rowsep=2cm]
> [mnode=r,name=ul]\pic &  [mnode=r,name=ur]\pic\\[0pt]
> [mnode=r,name=ll]\pic &  [mnode=r,name=lr]\pic
> \ncline{ul}{lr}
> \pcline[linecolor=red](ur)(ll)
> \end{psmatrix}
> 
> \end{document}
> 
> 
> 
> -- 
> http://TeXnik.de/
> http://PSTricks.de/
> ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
> http://www.dante.de/faq/de-tex-faq/
> http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
> 
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks




More information about the PSTricks mailing list