[pstricks] vertically centering table in \psframebox

Patrick Drechsler patrick.drechsler at gmx.net
Wed Jan 21 09:56:01 CET 2004


Herbert Voss wrote on 21 Jan 2004 06:49:06 MET:

> Patrick Drechsler wrote:
>
>> The problem is that I have a couple of these frameboxes and
>> the should all have the same height. That's the reason I used
>> \rule in the first place (maybe there's a more elegant way of
>> doing this?).
>
> but you have to raise this rule to get the baseline vertically
> centered

[...]
> \newdimen\maxH\maxH=3cm
> \def\xstrut{\raisebox{-0.5\maxH}{\rule{0pt}{\maxH}}}
[...]
>        \xstrut\begin{tabular}[c]{c}#3\end{tabular}%
[...]

Wow, I'd never come up with that code...

Thanks a lot for the help! 

Patrick
-- 
Photons have mass!!??
I didn't even know they were Catholic...




More information about the PSTricks mailing list