[pstricks] Questions about pst-node
Martin Chicoine
martin.chicoine at umontreal.ca
Fri May 7 17:12:24 CEST 2010
Hi all,
I use pst-node to draw the following diagram. I have some questions:
1) Why is the "Wide Gray Common Box 1" not well centered on the central
arrow?
2) Is there a way to draw the top and bottom horizontal arrows without
having to specify the 2cm offsets?
3) Is there a better way to draw the gray frame?
Thanks!
**************************************************
\documentclass{article}
\usepackage{pst-node}
\begin{document}
\psset{arrowscale=2}
\newcommand{\cadre}[1]{\fcolorbox{black}{cyan}{\parbox{6cm}{\centering #1}}}
\rput(3.15,0){\psframe[fillstyle=solid,fillcolor=lightgray](-3.5,1.1)(3.5,8.
8)}
\psmatrix[colsep=1.5cm,rowsep=1cm]
\parbox{6cm}{\centering Title} & \\
\cadre{Box 1\\ (B1)} & \\
\cadre{Box 2\\ (B2)} &
\rput[b]{-90}{\colorbox{lightgray}{Wide Gray Common Box 1}} \\
\cadre{Box 3\\ (B3)} & \\
\cadre{Box 4\\ (B4)} & \\
\endpsmatrix
\ncline{->}{2,1}{3,1}
\ncline{->}{3,1}{4,1}
\ncline{->}{4,1}{5,1}
\ncline{<-}{3,1}{3,2}
\ncangle[offsetB=2cm,armB=0,angleB=180]{<-}{2,1}{3,2}
\ncangle[offsetB=-2cm,armB=0,angleB=180]{<-}{4,1}{3,2}
\end{document}
More information about the PSTricks
mailing list