TeX - LaTeX Asked on August 16, 2021
I very much would appreciate someone’s help with this. I would like to create a very simple footline in my Beamer presentation, and none of what I’ve found is suiting me (and I’m having trouble customizing — I’m relatively new to Beamer).
What I want is for my name to be on the left, and to have the frame slide number (out of total, e.g. 30/31) on the right, and I want the background color to be the same as the background for the very top headline (or the color for the frame title would be fine).
An image of roughly what I am hoping to achieve is attached (though with with the frame # instead of University on the right). I like the white line underneath as well, so it’d be great if that could be preserved (though not necessary). The result in the screenshot was achieved by combining multiple themes (which I am trying to avoid, and I was helped earlier to avoid this), which is why the MWE does not exactly correspond to the screenshot.
Thank you in advance for any help!
%documentclass[10pt]{beamer}
%documentclass[10pt, handout]{beamer} %for no pauses
usepackage{graphicx}
usepackage{amsmath}
usefonttheme{professionalfonts}
usefonttheme{serif}
usepackage{mathpazo}
usepackage{multicol}
usepackage{adjustbox}
usetheme{Frankfurt}
usecolortheme{dolphin} definecolor{myblue}{RGB}{111,110,200} setbeamercolor{structure}{fg=myblue} setbeamercolor{section in head/foot}{bg=myblue}
setbeamertemplate{section in toc}{inserttocsectionnumber.~inserttocsection}
AtBeginSection[]
{
begin{frame}<beamer>{Outline}
tableofcontents[currentsection,currentsubsection]
end{frame}
}
setbeamercolor{alerted text}{fg=MediumBlue}
title{Title}
author{Name}
institute[University]
{
Department
University
}
% - Use the inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.
date{DATE}
begin{document}
begin{frame}
titlepage
end{frame}
section{Sample}
begin{frame}{Sample}
begin{itemize}
item Test
item Test
end{itemize}
end{frame}
end{document}
Update: this seems to do roughly what I wanted (though it'd be great to know if there's a way to make the footline color lighter than the headline color!)
setbeamertemplate{footline}
{
leavevmode%
hbox{%
begin{beamercolorbox}[wd=.5paperwidth,ht=2.25ex,dp=1ex,left]{section in head/foot}%
usebeamerfont{author in head/foot}hspace*{1em}insertshortauthor~~beamer@ifempty{insertshortinstitute}{}{(insertshortinstitute)}
end{beamercolorbox}%
begin{beamercolorbox}[wd=.5paperwidth,ht=2.25ex,dp=1ex,right]{section in head/foot}%
usebeamerfont{date in head/foot}hspace*{2em}
insertframenumber{} / inserttotalframenumberhspace*{2ex}
end{beamercolorbox}}%
vskip0pt%
}
makeatother
Answered by Elise on August 16, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP