On Sun, Nov 18, 2001 at 02:50:51PM +0100, Stefano Maggi wrote:
> It worked! Since I need to align only the shortest of the images, I've done
> some modifications (learning-by-trying) to your code. I use:
> 
> \newcommand\centerAlign[1]{%
>       \raisebox{\height}{#1}%
> }
> in the LaTeX preample, and then
> 
> \centerAlign{<image>}
> as TeX code in my tables. Doing this way, the image is vertically centered.

You only got the images centered by chance.
For a real solution, use the following:
\newcommand\centerAlign[1]{%
  \raisebox{-0.5\height}{#1}%
}

And then put \centerAlign{} around both images in the table.

Reply via email to