[pstricks] PSMatrix and Node labels
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Tue Oct 7 13:37:30 CEST 2008
Thomas Mensink schrieb:
> I have a PSMatrix with two kinds of nodes, circles (with text inside)
> and gray squares, and there are some arrows.
> This is easy using the psmatrix environment
>
> eg:
> \newcommand{\PN}[2]{[name=#1,mnode=oval,linewidth=0.1mm]{\ensuremath{#2}}}
> \newcommand{\FN}[1]{[name=#1,mnode=f,fillstyle=solid,fillcolor=lightgray]}
> \begin{psmatrix}
> \PN{pn1}{1} & & \FN{fna}&
> \PN{pn2}{2} & & \FN{fnb}&
> \PN{pn3}{3} & & \FN{fnc}&
> \PN{pn4}{4}\\
> %draw some lines
> \psset{shortput=nab,labelsep=3pt}
> \ncline{pn1}{fna}
e.g.:
\ncline{pn1}{fna}\uput{2ex}[90](fna){$f_1$}
> \ncline{fna}{pn2}
> \ncline{pn2}{fnb}
> \ncline{fnb}{pn3}
> \ncline{pn3}{fnc}
> \ncline{fnc}{pn4}
> \end{psmatrix}
>
> However, I want to add a label below (or above) the squares denoting
> what the mean (eg the label f_1)
Herbert
More information about the PSTricks
mailing list