[pstricks] multiline pst-nodes
Herbert Voss
Herbert.Voss at fu-berlin.de
Tue Sep 18 15:18:52 CEST 2007
Alexander Bergolth wrote:
> On 09/18/2007 12:30 PM, Herbert Voss wrote:
>
>> 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
>>
>
> Now tabular still adds some vertical spacing between the lines, compared
> to shortstack. How can I avoid this?
>
\begin{psmatrix}[rowsep=0.5,colsep=0.5]
\psdiabox{\def\arraystretch{0.7}%
\begin{tabular}{@{}c@{}}Node1\\L2\\L3\\L4\end{tabular}} &
\psdiabox{Node2}\\
\ncline{->}{1,1}{1,2}
\end{psmatrix}
Herbert
More information about the PSTricks
mailing list