[Tex/LaTex] Two images aligned to the center of the page

beamergraphicshorizontal alignment

I need to add two logos on the first slide. The problem is that these logos have very different dimensions. So I have decided to align to the centre of the page.

The slide should look like this:

|                                |
|                                |
|         TITLE AND STUFF        |
|             AUTHORS            |
|                                |
|      | logo 1 ||  logo 2      ||
|      |        ||              ||
|      |        |                |
|      |        |                |
|                                |

How can I achieve this layout in beamer?

Best Answer

Here's a beamer solution for \maketitle. It puts both logos into \titlegraphic, aligned at the middle. I used an asterisk for the date to verify the center adjustment.

\documentclass[demo]{beamer}
\usetheme{Copenhagen}
\title{Presentation Title}
\author{Author}
\date{*}
\titlegraphic{%
  \mbox{}%
  \llap{\includegraphics[width=2cm]{logo1}\quad}%
  \rlap{\quad\includegraphics[width=4cm]{logo2}}}
\begin{document}
\maketitle
\end{document}

alt text

  • \llap and \rlap hide the real width of the images.

  • \raisebox{-\height}{...} shifts their baseline to the top for top alignment.