# [pstricks] multiline pst-nodes

Alexander Bergolth leo at strike.wu-wien.ac.at
Tue Sep 18 11:11:12 CEST 2007

Hi!

I'm experiencing some alignment troubles when using multiline text in
pstricks-nodes and connecting those nodes.

When using \shortstack as multiline environment, the reference-point
seems to be based on the baseline of the bottom line of the text, so the
node-connector attaches too low.

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?

--leo

-------------------- 8< --------------------
\begin{psmatrix}[rowsep=0.5,colsep=0.5]
\psdiabox{\shortstack{Node1\\L2\\L3\\L4}} & \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}
-------------------- 8< --------------------

--
e-mail   ::: Alexander.Bergolth (at) wu-wien.ac.at
fax      ::: +43-1-31336-906050
location ::: Computer Center | Vienna University of Economics | Austria