[Tex/LaTex] Beamer modify CambridgeUS theme

beamer

I would like to modify the CambridgeUS theme in order to keep the same color but by changing the disposition of my footer as follows:
Title/Number of page with "–" and not "/" and Subtitles.

For the title page, I'd like to remove the header and footer as it is possible to do with a simple \thispagestyle{empty}.

Two more things: how can I change the right and left margins of the document to get less tighter? How is it possible to not have shadow block but the same provide by the pictures below? (with the Cambridge theme and the lily color if it is simple to do that…). Thank you very much!

\documentclass{beamer}

\mode<presentation> {
\usetheme{CambridgeUS}
\usecolortheme{lily}
\useinnertheme{circles} % rectangles, circles, inmargin, rounded
}
\setbeamertemplate{blocks}[rounded][shadow=true]
\usepackage{lmodern}  % latin modern font
\usepackage{cmbright} % computer modern font sans serif
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{appendixnumberbeamer} % Number for appendix numbers
\usepackage{amsmath}
\usepackage{ragged2e} % \justifying to justify the text

\addtobeamertemplate{block begin}{}{\justifying}

\usepackage{hyperref} % Generate hyperlinks in the final pdf

% CREATE HYPERLINKS
\hypersetup{
    %bookmarks=true,                    % show bookmarks bar?
    unicode=false,                      % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,                    % show Acrobat’s toolbar?
    pdfmenubar=true,                    % show Acrobat’s menu?
    pdffitwindow=false,                 % window fit to page when opened
    pdfstartview={FitH},                % fits the width of the page to the window
    %pdftitle={My title},               % title
    %pdfauthor={Author},                % author
    %pdfsubject={Subject},              % subject of the document
    %pdfcreator={Creator},              % creator of the document
    %pdfproducer={Producer},            % producer of the document
    %pdfkeywords={keyword1} {key2},     % list of keywords
    %pdfnewwindow=true,                 % links in new window
    colorlinks=true,                    % false: boxed links; true: colored links
    linkcolor=black,                    % color of internal links (change box color with linkbordercolor)
    citecolor=green,                    % color of links to bibliography
    filecolor=magenta,                  % color of file links
    urlcolor=red                    % color of external links
}

% gets rid of bottom navigation bars
%\setbeamertemplate{footline}[page number]{}

% gets rid of navigation symbols
\setbeamertemplate{navigation symbols}{}

% add figures numbering
\setbeamertemplate{caption}[numbered]

%\setbeamerfont{frametitle}{family=\bfseries}

% Display content for long talk
%\setbeamerfont{myTOC}{series=\bfseries,size=\normalfont}
%\AtBeginSection[]{\frame{\frametitle{Outline}
%\usebeamerfont{myTOC}\tableofcontents[current]}}
%\setbeamertemplate{headline}{}

\setcounter{tocdepth}{1} % in the table of contents
\setcounter{secnumdepth}{2} % with a number

\title[SCI Communication]{Serial Communication Interface Evaluation} % The short title appears at the bottom of every slide, the full title is only on the title page
\subtitle{EE-491(a): Project in Electrical Energy Systems}

\author{Antoine Giraldi} % Your name
\institute[EPFL] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{Power Electronics Laboratory, EPFL
%   \inst{1}%
%   EPFL %\\ % Your institution for the title page
%   \and
%   \inst{2}%
%   Power Electronics Laboratory
%\bigskip
%\textit{Power Electronics Laboratory} % Your email address
}
\date{\today} % Date, can be changed to a custom date

\begin{document}
%------------------------------------------------
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}

\section[Technical Approach]{Technical Approach} 
%------------------------------------------------
\begin{frame}
\frametitle{Simulink implementation}

\end{frame}
\end{document}

enter image description here

enter image description here

enter image description here

Best Answer

Here's the definition of the footline used by CambridgeUS (from the file beamerouterthemeinfolines.sty):

\defbeamertemplate*{footline}{infolines theme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \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%
}

Clearly, the / you want to replace is on the \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} row.

As for the titlepage, you can use \begin{frame}[plain] to get an empty titlepage.

Here's an MWE with a redefinition of the footline:

\documentclass{beamer}

\mode<presentation> {
\usetheme{CambridgeUS}
\usecolortheme{lily}
\useinnertheme{circles} % rectangles, circles, inmargin, rounded
}
\setbeamertemplate{blocks}[rounded][shadow=true]

\makeatletter
\setbeamertemplate{footline}%{infolines theme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \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

% gets rid of navigation symbols
\setbeamertemplate{navigation symbols}{}

% add figures numbering
\setbeamertemplate{caption}[numbered]

\setcounter{tocdepth}{1} % in the table of contents
\setcounter{secnumdepth}{2} % with a number

\title[SCI Communication]{Serial Communication Interface Evaluation} % The short title appears at the bottom of every slide, the full title is only on the title page
\subtitle{EE-491(a): Project in Electrical Energy Systems}

\author{Antoine Giraldi} % Your name
\institute[EPFL] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{Power Electronics Laboratory, EPFL
%   \inst{1}%
%   EPFL %\\ % Your institution for the title page
%   \and
%   \inst{2}%
%   Power Electronics Laboratory
%\bigskip
%\textit{Power Electronics Laboratory} % Your email address
}
\date{\today} % Date, can be changed to a custom date

\begin{document}

%------------------------------------------------
\begin{frame}[plain]
\titlepage % Print the title page as the first slide
\end{frame}

\section[Technical Approach]{Technical Approach} 
%------------------------------------------------
\begin{frame}
\frametitle{Simulink implementation}

\end{frame}
\end{document}

And the result:

Result

You can change \setbeamertemplate{blocks}[rounded][shadow=true] to change the block appearance and use \setbeamersize{text margin left=0pt,text margin right=0pt} to change the text margin.

Let me know if you have any questions!