[pstricks] nodes

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Wed Jun 16 18:59:07 CEST 2004


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




More information about the PSTricks mailing list