[pstricks] multiline pst-nodes

Alexander Bergolth leo at strike.wu-wien.ac.at
Tue Sep 18 14:56:42 CEST 2007


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

Thanks!
Now tabular still adds some vertical spacing between the lines, compared
to shortstack. How can I avoid this?

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




More information about the PSTricks mailing list