# [pstricks] Vertical \ncarcbox in \psmatrix

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun Mar 5 07:38:15 CET 2006

Arne Hallam wrote:
> I am wanting to demonstrate how to construct submatrices and am doing
> fine with horizontal boxes to show row inclusion but get a circle around
> the first vertical node instead of a vertical box.

why do you use \ncarcbox, when you need a rectangular box??

Herbert

\documentclass{report}
\usepackage{pstricks,pst-plot}
\usepackage{pst-node}
\usepackage{amsmath}
\SpecialCoor
\begin{document}

$$A(\{1,3\},\{1,3\})~=~\left(\raisebox{-3.0ex}{ \begin{psmatrix}[rowsep=3pt,colsep=10pt] 3 &4&7 \\ 2&5& 2 \\ 1&0&4 \end{psmatrix}} \right) \psset{nodesep=.15,boxsize=.25,linestyle=dashed,linecolor=blue} \ncbox[nodesep=.1,linecolor=green]{1,3}{3,3} \ncbox{1,1}{1,3} \ncbox{3,1}{3,3}$$

\end{document}