[pstricks] psmatrix and different colseps

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun Feb 19 15:45:16 CET 2006


Markus Krebs wrote:

> It's a part of a large tree. I want to change the colsep within column 4 
> and 5 (increase width of columns 1 to 4 and decrease width of columns 5 
> to 7).

use \makebox for individuel column widths

Herbert


\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}

\begin{psmatrix}[colsep=0cm,rowsep=.15]%,mnodesize=2cm]
\makebox[1.5cm]{\ovalnode{Start}{Start}} & \makebox[1.5cm]{} &
   \makebox[1.5cm]{} & & & \makebox[1.5cm]{Gelbe} & 
\makebox[1.5cm]{Schwarze} \\
   & [name=B]B &   & [name=BBB] B $(0\mid 3\mid 3)$& (BBB) & 0 & 0\\
   &           & [name=BB] B  & [name=BBG] G $(1\mid 2\mid 3)$& (BBG) & 
1 & 0\\
\end{psmatrix}
\ncline{Start}{B}
\naput{$\displaystyle \frac{3}{9}$}
\psset{nodesep=4pt}
\ncline{B}{BB}
\ncline{B}{BG}
\ncline{B}{BS}

\end{document}





More information about the PSTricks mailing list