You can redefine the title page
template and introduce the necessary modifications for the layout; this redefinition is needed since both the title and the subtitle are, by deafult, inside the same beamercolorbox
so simply redefining the title
beamer color would produce a box around both title and subtitle (which is not wanted here):
\documentclass{beamer}
\title{TITLE}
\titlegraphic{\includegraphics[height=4cm]{cat}}
\subtitle{\textbf{Subtitle}}
\author{Author}
\setbeamercolor{title}{bg=orange,fg=white}
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
\setbeamercolor{title}{bg=white,fg=structure}
\begin{beamercolorbox}[sep=8pt,center]{title}
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\vskip-1em\par % change here
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\end{centering}
\vfill
}
\makeatother
\begin{document}
\maketitle
\end{document}
Notice that now there's no need to use \title[TITLE]{TITLE\includegraphics{...}}
but now you can simply use \title{TITLE}
and \titlegraphic{\includegraphics[]{}}`. Of course, feel free to make the necessary adjutments according to your particular needs (yo can play with the lengths in the \vskip commands to adjust vertical spacing).
As requested in a comment, to have a colored box around only the subtitle, the necessary modifications are the following:
\documentclass{beamer}
\title{TITLE}
\titlegraphic{\includegraphics[height=4cm]{cat}}
\subtitle{\textbf{Subtitle}}
\author{Author}
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
\setbeamercolor{title}{bg=orange,fg=white}
\begin{beamercolorbox}[sep=8pt,center]{title}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\vskip-1em\par % change here
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\end{centering}
\vfill
}
\makeatother
\begin{document}
\maketitle
\end{document}
With a new request, here's the code to change at will the width of the box used for the subtitle; change the length used for \subtitwd
(initially set to 4cm
) according to your needs:
\documentclass{beamer}
\newlength\subtitwd
\setlength\subtitwd{4cm}% change the width here
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
\setbeamercolor{title}{bg=orange,fg=white}
\vbox{%
\hfill\begin{beamercolorbox}[wd=\subtitwd,sep=8pt,center]{title}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\end{beamercolorbox}\hfill\null%
}%
\fi%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\vskip-1em\par % change here
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
\end{centering}
\vfill
}
\makeatother
\title{TITLE}
\titlegraphic{\includegraphics[height=4cm]{cat}}
\subtitle{\textbf{Subtitle}}
\author{Author}
\begin{document}
\maketitle
\end{document}
This is so, because \insertsectionnumber
is defined as (in the file beamerbasesection.sty
)
\def\insertsectionnumber{\@arabic\c@section}
And \appendix
doesn't change this;
\newcommand<>\appendix{%
\only#1{\part{\appendixname}
\addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}}}
so the counter will appear using arabic representation.
You can change this, redefining \insertsectionnumber
in the proper location:
\setcounter{section}{0}
\renewcommand\insertsectionnumber{\Alph{section}}
Perhaps you want to let \appendix do this change:
\documentclass{beamer}
\makeatletter
\renewcommand<>\appendix{%
\setcounter{section}{0}%
\renewcommand\insertsectionnumber{\Alph{section}}%
\only#1{\part{\appendixname}
\addtocontents{nav}{\protect\headcommand{\protect\beamer@appendixpages{\the\c@page}}}}}
\makeatother
\begin{document}
\section{test1}
\begin{frame}{\insertsectionnumber.~\insertsection}
bal bla
\end{frame}
\appendix
\section{test2}
\begin{frame}{\insertsectionnumber.~\insertsection}
bla bla
\end{frame}
\end{document}
Best Answer
The only way I see to this is to define your own title page template.
The
beamer
documentation claims that your example should not insert space for the institute, but that is not the observed behaviour.Setting up your own title page template is fortunately not too complex: use
\setbeamertemplate{title page}
and place thebeamer
generated commands such as\inserttitle
etc. in acenter
environment.Update You now tell us you are using the
CambridgeUS
theme. This loads theinnertheme
rounded
which in turn calls the defaulttitle page
template with extra optionscolsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow
. The best thing to do in this situation is to take the default template, defined inbeamerinnerthemedefault.sty
, and define a newtitle page
template by removing thebeamercolorbox
for theinstitute
. Calling this new templatenoinstitute
you can then set the title page up withThe
\makeatletter...\makeatother
is need because of the@
characters used in the internal names.