2

I'm preparing a presentation using Montpellier beamer theme. I tried to personalize the title frame in order to add a footline. The problem with the following code is that the title is appearing in both the headline and the footline. I want it to appear only in the headline. So please, how can I remove the title from my personalized footline of Montpellier beamer and keep it only in the headline?

    \documentclass[xcolor={dvipsnames},10pt]{beamer}
%
\useoutertheme{infolines}
\usetheme{Montpellier}
\setbeamertemplate{footline}[infolines]
%
\setbeamercolor{footlinecolor}{fg=black,bg=cyan!40}
\setbeamercolor{title in head/foot}{bg=PineGreen,fg=yellow}
\setbeamercolor{author in head/foot}{parent=footlinecolor}
\setbeamercolor{date in head/foot}{parent=footlinecolor}
\setbeamercolor{separation line}{bg=cyan!40}
%
%
\setbeamercolor*{structure}{bg=PineGreen!20,fg=PineGreen}
\setbeamercolor*{palette primary}{use=structure,fg=yellow,bg=structure.fg!70!gray}
\setbeamercolor*{palette secondary}{use=structure,fg=yellow,bg=structure.fg!65}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor*{palette quaternary}{fg=orange!30!yellow,bg=black}
\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}
\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=gray!10!white,fg=PineGreen}
\setbeamercolor{title}{fg=yellow,bg=PineGreen}
%
%
\usepackage{tikz}
\addtobeamertemplate{headline}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node at([shift={(5.64,-.53)}]current page.north) {\includegraphics[height=.8\headheight]{logo.png}};
\end{tikzpicture}
}
%
%
\title[the title]{\small\bf the title}
\author[author]{Présented by:\\
author}
%
\institute[]
{
  University
}
%
%
\begin{document}
{
\begin{frame}
\titlepage
\end{frame}
}
%
\end{document}

enter image description here

1 Answer 1

1

I assume you want to remove the text "the title" from the footline of all frames, while still keeping the middle part of the footline colored green. In the following MWE, I defined a new footline template and also corrected the title font by using \setbeamerfont{title}{size=\small, series=\bfseries} instead of placing commans like \small in the argument of title. Lastly, I also used \texorpdfstring in the author field to get rid of the hyperref-related warning.

enter image description here

\documentclass[xcolor={dvipsnames},10pt]{beamer}
%
\useoutertheme{infolines}
\usetheme{Montpellier}


%
\setbeamercolor{footlinecolor}{fg=black,bg=cyan!40}
\setbeamercolor{title in head/foot}{bg=PineGreen,fg=yellow}
\setbeamercolor{author in head/foot}{parent=footlinecolor}
\setbeamercolor{date in head/foot}{parent=footlinecolor}
\setbeamercolor{separation line}{bg=cyan!40}
%
%
\setbeamercolor*{structure}{bg=PineGreen!20,fg=PineGreen}
\setbeamercolor*{palette primary}{use=structure,fg=yellow,bg=structure.fg!70!gray}
\setbeamercolor*{palette secondary}{use=structure,fg=yellow,bg=structure.fg!65}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor*{palette quaternary}{fg=orange!30!yellow,bg=black}
\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}
\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=gray!10!white,fg=PineGreen}
\setbeamercolor{title}{fg=yellow,bg=PineGreen}
%
%
\usepackage{tikz}
\addtobeamertemplate{headline}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node at([shift={(5.64,-.53)}]current page.north) {\includegraphics[height=.8\headheight]{example-image.png}};
\end{tikzpicture}
}
%
%
\makeatletter
\defbeamertemplate*{footline}{my 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\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
  \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}
    \usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother
\usebeamertemplate{mytheme}

\setbeamerfont{title}{size=\small, series=\bfseries}



\title[the title]{the title}
\author[author]{\texorpdfstring{Présented by:\\
author}{Présented by: author}}
%
\institute[]{University}
%
%
\begin{document}
{
\begin{frame}
\titlepage
\end{frame}
}
%
\end{document}
1
  • Thank you much @leandriis for your time and help.
    – Stitou
    Dec 24, 2020 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .