Is it possible to put the title slide to somewhere in the middle of the presentation when I create my presentation with Beamer? That is, suppose I want to show a couple of slides in the very beginning of my presentation, and after these slides I want to show the title slide (i.e., the slide that includes the title, authors and etc.). I've seen a post where some nice people discussed on creating sections in the presentation, but this is not exactly what I'm looking for. Thanks very much in advance.
[Tex/LaTex] Shifting the title page to the middle of the presentation in Beamer
beamertitles
Related Solutions
Question 1: You can use any of the fields given by \author
, \title
, \date
, or \institute
to place the image in the title page; if none of those fields allow you to achieve the desired placement, you can use the textpos
package. The example below uses the \author
field to add the image.
Question 2: With the help of the textpos
package you can add the logo to the frametitle
template using \addtobeamertemplate
.
A simple example code:
\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{textpos}
\title{The title}
\author[The author]{\includegraphics[height=1cm,width=2cm]{cat}\\The Author}
\institute[Inst.]{The Institute}
\date{\today}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\addtobeamertemplate{frametitle}{}{%
\begin{textblock*}{100mm}(.85\textwidth,-1cm)
\includegraphics[height=1cm,width=2cm]{cat}
\end{textblock*}}
\begin{frame}{Motivation}
Now the logo is visible
\end{frame}
\end{document}
As osjerick mentions in a comment, the above solution won't behave correctly if \framesubtitle
is used (the image will shift downwards); in this case, a TikZ approach can be used to prevent the movement:
\documentclass{beamer}
\usetheme{Madrid}
\usecolortheme{beaver}
\usepackage{tikz}
\title{The title}
\author[The author]{\includegraphics[height=1cm,width=2cm]{cat}\\The Author}
\institute[Inst.]{The Institute}
\date{\today}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\addtobeamertemplate{frametitle}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,yshift=2pt] at (current page.north east) {\includegraphics[height=0.8cm]{cat}};
\end{tikzpicture}}
\begin{frame}{Motivation}
Now the logo is visible
\end{frame}
\begin{frame}{Motivation}
\framesubtitle{A}
Now the logo is visible
\end{frame}
\end{document}
beamer
holds the selected mode in the macro \beamer@currentmode
so what you need to do is change that mid-way through your document.
\documentclass[pdftex,handout]{beamer}
%\url{http://tex.stackexchange.com/q/91691/86}
\makeatletter
\newcommand\changemode[1]{%
\gdef\beamer@currentmode{#1}}
\makeatother
\begin{document}
\begin{frame}{Frame 1}
Step 1 \pause Step 2 \pause Step 3
\end{frame}
% I want to switch to presentation mode here!
\changemode{beamer}
\begin{frame}{Frame 2}
Step 4 \pause Step 5 \pause Step 6
\end{frame}
\end{document}
Of course, there may be things "under the bonnet" which depend on the mode during initialisation so it might be that you want to start in beamer
mode, switch to handout
(or maybe trans
) at the start of the slides, then back to beamer
for the slides for the current lecture.
Best Answer
As it turns out, it is pretty straightforward to solve this problem. What I needed to solve this problem was just moving
\maketitle
command into the middle where I want to show the title page. I put all the information that I want to use in the title (such as the authors) with the proper commands before\begin{document}
, and then I moved\maketitle
into the middle which solved the problem.