73

I want to insert the logo in the title page only. However, it displays on all pages! How can I make these two figurs display as logo in the title page only?

I type in the preamble:

\logo{%
   \includegraphics[scale=.2]{fig1.pdf}\hspace*{4.75cm}~%
   \includegraphics[scale=.2]{fig2.jpg}\hspace*{0.75cm}%
   }

then

\begin{document}

\maketitle

\begin{frame}
\frametitle{}
...
\end{frame}
Aya
  • 1,151

2 Answers2

85

The command to be used to display the logo only in the titlepage is \titlegraphic.

For example:

\documentclass{beamer}

\author{Me}
\title{The title}
\institute{My institute}

% logo of my university
\titlegraphic{\includegraphics[width=2cm]{logopolito}\hspace*{4.75cm}~%
   \includegraphics[width=2cm]{logopolito}
}

\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Test 1}
test
\end{frame}

\begin{frame}{Test 2}
test
\end{frame}
\end{document}

I report the first two frames:

enter image description here

enter image description here

  • This was by far the best way to display logo only on the first page. I did, however, played with the \vspace{+ or - ...cm} and the \hspace{+ or - ...cm} to try and position the logo where I wanted them to go. The other thing I did was to ensure by reducing size or words of my title text so that it doesn't take up too many lines as this reduces the space at the bottom of the page where the logo needs to go. Many thanks –  Sep 21 '12 at 13:36
  • @Richard: notice that there are other ways, for example customizing directly the titlepage template. See also as reference Logo situated only on titlepage of Beamer presentation – Claudio Fiandrino Sep 22 '12 at 08:23
  • Dear Downvoter: would you like to explain why the answer deserves a downvote? I'm interested to see if there are any weak points and improve the answer accordingly. Thanks :) – Claudio Fiandrino Jul 15 '14 at 07:22
  • 1
    While this answer solves the asker's problem, I think it does not answer the question: How to make the logo - declared by \logo{} only appear on the title slide. \titlegraphic should be used for what it says: place a title graphic, not the logo. A better way to solve the asker's problem would be in the style files where you could turn off the logo placement. – mpe Sep 13 '14 at 14:20
  • 2
    @mpe: I'm afraid, I disagree. The \titlegraphic macro should be used exactly for the purpose of setting a logo only in the title page, so I'm wondering, why one should modify \logo when it exists \titlegraphic? Take into account that very often logo and title graphic are used interchangeably. – Claudio Fiandrino Sep 13 '14 at 14:38
  • \titlegraphic is for including a graphic on the title page, such as highlighting/previewing an interesting result from the talk. \logo is for including an institutional logo that may or may not be intended to appear on other slides (different conventions exist for first slide, every slide, or first slide and conclusion). They are different and this answer will not work for someone who wants to use both for separate purposes. – EL_DON Mar 03 '17 at 17:26
  • 2
    That is correct, but if one wants to display an istitutional logo only on the first page, this the simplest way to go. The only is what I implicitly assumed while answering. Of course there are other tricks, however none of them is as simple as this one. But you have a point with your comment ;) – Claudio Fiandrino Mar 03 '17 at 17:31
  • The trouble is that every question about \logo gets answered with a hack or workaround and it makes it very hard to search for documentation on the actual \logo command. – EL_DON Mar 04 '17 at 21:49
  • @ClaudioFiandrino You can also put \vspace{0cm} in your example, so that anyone(I need also) can use this if needed. – alhelal Feb 06 '18 at 17:02
  • @alhelal: How would that help to address the OP question? – Claudio Fiandrino Feb 07 '18 at 17:25
  • I have never known this command until I found your solution, that is helpful! – Say OL Sep 06 '23 at 04:40
  • Hello, why do we need to include ~% in \hspace*{4.75cm}~%? What is the purpose, please? Thank you. – Boar Dec 05 '23 at 06:06
  • The hspace is just to separate the two images and the ~ is pretty redundant here. – Claudio Fiandrino Dec 05 '23 at 14:39
8

I had a similar issue and didn't like the titlegraphic solution. Here is what I did:

\documentclass{beamer}

\author{Me}
\title{The title}
\institute{My institute}

% logo of my university  
\logo{\includegraphics[width=2cm]{logopolito}\hspace*{8cm}~%
  \includegraphics[width=2cm]{logopolito}
}

\begin{document}
\begin{frame}
\titlepage
\end{frame}

\logo{}

\begin{frame}{Test 1}
test
\end{frame}

\begin{frame}{Test 2}
test
\end{frame}
\end{document}

This gave me the following output:

Titlepage First frame Second frame