Different methods to add and and position a logo in the front page as well as slides of Beamer presentations

1. Add a logo to all Presentation’s slides

Adding a logo in beamer can be achieved using the \logo{} command where we include between braces a graphic using \includegraphics command, or any text. It should be noted that the logo position is determined by the current theme.

Check the following code:

% Add a logo in beamer
\documentclass{beamer}

% Theme choice:
\usetheme{AnnArbor}
\usecolortheme{beaver}

% Title page details: 
\title{Add and Position a Logo in Beamer} 
\author{latex-beamer.com}
\date{\today}
\logo{
\includegraphics[width=3cm]{Beamer-Logo.png}
}

\begin{document}

% Title page frame
\begin{frame}
    \titlepage 
\end{frame}

\begin{frame}{Frame Title}
\end{frame}

\end{document}

Compiling this code yields:

Add a logo to all Presentation's slides
Add a logo to all Presentation's slides

From the the previous lesson , you know how to create the above title page. In this code, we have added:

  • \usecolortheme{beaver}: to change the theme color which will be discussed in details in the next lessons.
  • Between the braces of \logo command, we included the image “Beamer-Logo.png” and we set its width to 3cm.

The logo will appear at the bottom right corner of each slide of this theme.

2. Logo only on title page

In this part, we will learn how to add a logo in the first page only using \titlegraphic command. Replacing the above \logo line code by the following code:

% Logo only on title page
\titlegraphic{
    \includegraphics[width=2cm]{TeX.png}
}

we get the following output:

Add logo only title page beamer latex

Download the logo image and try the above code.

3. Include multiple logos in Beamer

Adding multiple logos can be done by including multiple images using \includegraphics command. We can add spacing between logos using \hspace command. Here is an illustrative example:

% Multiple logos
\titlegraphic{
    \includegraphics[width=2cm]{TeX.png}
    \hspace{2cm}
    \includegraphics[width=2cm]{TeX.png}
    \hspace{2cm}
    \includegraphics[width=2cm]{TeX.png} 
}

which yields the following title page:

Add Multiple logos beamer latex

4. Logo positioning in Beamer

To position our logo at any place of the title page (or slides in general), we will use TikZ package. Here is the steps that we should follow:

  • Use \logo{} command if we would like to add the logo to all slides or \titlegraphic{} command to display it only on the title page.
  • Create a tikzpicture environment inside one of the above commands (\logo{} or \titlegraphic{})
  • Create a node image and position it with respect to the current slide.

Here is an example of top right logo positioning in Beamer:

% Position a logo in beamer
\documentclass{beamer}

% Theme choice:
\usetheme{AnnArbor}
\usecolortheme{beaver}

% Title page details: 
\title{Add and Position a Logo in Beamer} 
\author{latex-beamer.com}
\date{\today}

% Load TikZ
\usepackage{tikz}
\titlegraphic { 
\begin{tikzpicture}[overlay,remember picture]
\node[left=0.2cm] at (current page.30){
    \includegraphics[width=3cm]{Beamer-Logo}
};
\end{tikzpicture}
}

\begin{document}

% Title page frame
\begin{frame}
    \titlepage 
\end{frame}

\end{document}

Compiling this code yields the following result:

top right logo positioning in Beamer

Comments:

  • tikzpicture environment has the following parameters: overlay and remember picture which are used to create an overlay above the current slide (title page).
  • a node is created using \node command which is positioned at 0.2cm left of the coordinate (current page.30). The latter corresponds to the border point that makes 30 degrees from the horizontal line passing through the center of the slide, check the following illustration:
Top right positioning of a logo in beamer using TikZ

Here is an example of top left logo positioning in Beamer:

% Top left Position of a logo in beamer
\titlegraphic { 
\begin{tikzpicture}[overlay,remember picture]
\node[right=0.2cm] at (current page.150){
    \includegraphics[width=3cm]{Beamer-Logo}
};
\end{tikzpicture}
}

Replacing these line codes in the above code yields to:

top left logo positioning in Beamer

where the logo is positioned at 0.2 cm right of the point with coordinates (current page.150), highlighted by the following illustration:

Position a logo in beamer properly top left

Here is another example of top left and top right logo positioning in Beamer:

% Top left and top right  Position of a logo in beamer
\titlegraphic { 
\begin{tikzpicture}[overlay,remember picture]
\node[right=0.2cm] at (current page.150){
    \includegraphics[width=3cm]{Beamer-Logo}
\node[left=0.2cm] at (current page.30){
    \includegraphics[width=3cm]{Beamer-Logo}
};
\end{tikzpicture}
}

The above code combines the previous line codes and here is the obtained title page:

 top left and top right logo positioning in Beamer

We have chosen 30 degrees and 150 degrees, you can choose any value to get the coordinates of the slide border, then use right or left parameters with desired distances to properly position your logo!

Summary

  • In this lesson, we have learned how to add a logo to the title page of our beamer illustration as well as different slides using \logo{} or \titlegraphic{} commands.
  • Moreover, we learned how to position at any coordinate of the title page. This includes top right positioning, top left positioning and multiple logos (top right and top left).

Next Lesson: 03 Create a Table of Contents in Beamer