You are missing a final closing brace in the headline
definition:
\documentclass{beamer}
\usetheme{CambridgeUS}
\makeatletter
\setbeamertemplate{headline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{section in head/foot}\insertshorttitle\hspace*{2ex}
\end{beamercolorbox}}% <- this closing brace was missing
}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{title in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshortinstitute
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\author{The Author}
\title{The Title}
\institute{The Institute}
\begin{document}
\begin{frame}
test
\end{frame}
\end{document}
I took the liberty to slightly increase the height for the box in the headline (this is just a suggestion, of course, and you can revert to your original settings).
To suppress the headline
and footline
, use the plain
option for frame
; to suppress one template only, redefine it locally to be empty:
\documentclass{beamer}
\usetheme{CambridgeUS}
\makeatletter
\setbeamertemplate{headline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.75ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{section in head/foot}\insertshorttitle\hspace*{2ex}
\end{beamercolorbox}}%
}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{title in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshortinstitute
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\author{The Author}
\title{The Title}
\institute{The Institute}
\begin{document}
\begin{frame}[plain]
test
\end{frame}
\begingroup
\setbeamertemplate{headline}{}
\begin{frame}
test
\end{frame}
\endgroup
\begingroup
\setbeamertemplate{footline}{}
\begin{frame}
test
\end{frame}
\endgroup
\begin{frame}
test
\end{frame}
\end{document}
You can define your own title page and add the missing information wherever you want it to go. In the following example, I added it after the author:
\documentclass{beamer}
\usetheme[microtype,faculty=fsps]{fibeamer}
\author{Karthik}
\title{Title of the document}
\date{8.10.2017}
\institute{My institute}
\makeatletter
\setbeamertemplate{title page}{%
% This is slide 0
\setcounter{framenumber}{0}
% Input the university logo
\begin{tikzpicture}[
remember picture,
overlay,
xshift=0.5\fibeamer@lengths@logowidth,
yshift=0.5\fibeamer@lengths@logoheight
]
\node at (0,0) {
\fibeamer@includeLogo[
width=\fibeamer@lengths@logowidth,
height=\fibeamer@lengths@logoheight
]};
\end{tikzpicture}
% Input the title
\usebeamerfont{title}%
\usebeamercolor[fg]{title}%
\begin{minipage}[b][2\baselineskip][b]{\textwidth}%
\raggedright\inserttitle
\end{minipage}
\vskip-.5\baselineskip
% Input the dashed line
\begin{pgfpicture}
\pgfsetlinewidth{2pt}
\pgfsetroundcap
\pgfsetdash{{0pt}{4pt}}{0cm}
\pgfpathmoveto{\pgfpoint{0mm}{0mm}}
\pgfpathlineto{\pgfpoint{\textwidth}{0mm}}
\pgfusepath{stroke}
\end{pgfpicture}
\vfill
% Input the subtitle
\usebeamerfont{subtitle}%
\usebeamercolor[fg]{subtitle}%
\begin{minipage}{\textwidth}
\raggedright%
\insertsubtitle%
\end{minipage}\vskip.25\baselineskip
% Input the author's name
\usebeamerfont{author}%
\usebeamercolor[fg]{author}%
\begin{minipage}{\textwidth}
\raggedright%
\insertauthor\newline%
\insertinstitute\newline%
\insertdate%
\end{minipage}%
}
\makeatother
\begin{document}
\maketitle
\end{document}
Best Answer
Here's one possible solution (depending on your specific needs you might need to adjust some lengths and fonts); a new command
\titlegraphicii
was defined for inclusion of the second logo; it's used in the same way as the standard\titlegraphic
:The line
replaces actual figures with black rectangles; delete that line in your actual document.