[pstricks] multiline pst-nodes
Herbert Voss
Herbert.Voss at fu-berlin.de
Tue Sep 18 12:30:48 CEST 2007
Alexander Bergolth wrote:
> When using \tabular for my text, nodes are attached correctly but there
> seems to be some extra space added around the text. (See the example below.)
>
> Is there a better way to use multiline text in nodes or is there a way
> to get rid of the extra border introduced by \tabular?
>
> \begin{psmatrix}[rowsep=0.5,colsep=0.5]
> \psdiabox{\begin{tabular}{c}Node1\\L2\\L3\\L4\end{tabular}} &
> \psdiabox{Node2}\\
> \ncline{->}{1,1}{1,2}
> \end{psmatrix}
>
\begin{psmatrix}[rowsep=0.5,colsep=0.5]
\psdiabox{\begin{tabular}{@{}c@{}}Node1\\L2\\L3\\L4\end{tabular}} &
\psdiabox{Node2}\\
\ncline{->}{1,1}{1,2}
\end{psmatrix}
@{}c@{} avoids \tabcolsep around the table
Herbert
More information about the PSTricks
mailing list