Page LayoutRemoving the title from the frame footnote in personalized Montpellier beamer

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Stitou
Posts: 2
Joined: Wed Dec 23, 2020 7:13 pm

Removing the title from the frame footnote in personalized Montpellier beamer

Post by Stitou »

Hi,
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?
Thanks a lot.
Stitou.

\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]{Presented by:\\
author}
%
\institute[]
{
University
}
%
%
\begin{document}
{
\begin{frame}
\titlepage
\end{frame}
}
%
\end{document}
Attachments
titleFrame.PNG
titleFrame.PNG (48.06 KiB) Viewed 10016 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Removing the title from the frame footnote in personalized Montpellier beamer

Post by Bartman »

Remove or comment the commands for the font used and the short title.

Code: Select all

\makeatletter
\setbeamertemplate{footline}
{%
  \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}%
%    \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}
    \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
Source: beamerouterthemeinfolines.sty

Please mention your crossposts.
Stitou
Posts: 2
Joined: Wed Dec 23, 2020 7:13 pm

Removing the title from the frame footnote in personalized Montpellier beamer

Post by Stitou »

Thank you much @Bartman.
Post Reply