How to vertically center two images next to each other?

The baseline of images is at their bottom. You could change that by using \raisebox. For example:
Gives vertically centered images, here black rectangles because of the demo option:
alt text
Raising their baseline by .5\height has the nice effect that also following text would be aligned at the new baseline at the vertical center.
Alternatively, you could use \vcenter, which is working fine as well:
  following text\end{minipage}

No hay comentarios:

Publicar un comentario