TransWikia.com

Beamer Singapore theme, customize navigation

TeX - LaTeX Asked by Samuel Yvon on December 9, 2020

I am using the Singapore theme for a beamer presentation, with
a custom color theme. I am trying to remove the fading of the navigation
bar and the navigation in the title page, but I cannot get either of these things to work.
Is there a standard option to do it? How can I remove the fading?

Here is a screenshot of what it looks like:

screen shot of my beamer

Here is a reproducible .tex:

documentclass[french]{beamer}
% Color Scheme:
% https://github.com/jrnold/beamercolorthemesolarized

usecolortheme[accent=blue]{solarized}
usetheme{Singapore}

setbeamertemplate{navigation symbols} {
    insertslidenavigationsymbol
    insertframenavigationsymbol
    insertsubsectionnavigationsymbol
    insertsectionnavigationsymbol
    insertdocnavigationsymbol
    insertbackfindforwardnavigationsymbol
    hspace{1em}
    usebeamerfont{footline}
    insertframenumber/inserttotalframenumber
}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
title{Title}
author{My name}
date{A Date}

begin{document}

frame{titlepage}

section{Previous}
section{Next}
begin{frame}
    frametitle{A Frame}

end{frame}


end{document}

One Answer

You should be able to remove both the navigation buttons by resetting the navigation symbols template and the headline shading by changing the headline template. Both modifications can be made locally inside the group formed by the {...} enclosing. The second modification is made by the removeheadshading macro, which is basically the same definition as the default template, without the shading defined inside beamerthemeSingapore.sty

See the full example below

% arara: lwpdflatex
documentclass[french]{beamer}
% Color Scheme:
% https://github.com/jrnold/beamercolorthemesolarized

usecolortheme[accent=blue]{solarized}
usetheme{Singapore}

setbeamertemplate{navigation symbols} {
    insertslidenavigationsymbol
    insertframenavigationsymbol
    insertsubsectionnavigationsymbol
    insertsectionnavigationsymbol
    insertdocnavigationsymbol
    insertbackfindforwardnavigationsymbol
    hspace{1em}
    usebeamerfont{footline}
    insertframenumber/inserttotalframenumber
}
newcommand{removeheadshading}[0]{%
    setbeamertemplate{headline}{%
    begin{beamercolorbox}{section in head/foot}%
        vskip2ptinsertnavigation{paperwidth}vskip2pt%
    end{beamercolorbox}%
}%
}


usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
title{Title}
author{My name}
date{A Date}

begin{document}

% Start group to make modifications local
{% 
% Remove navigation bar
setbeamertemplate{navigation symbols}{}
% Remove the headline shading
removeheadshading
% Typeset the actual titlepage
begin{frame}
    titlepage
end{frame}
% End the local group
}

section{Previous}
section{Next}
begin{frame}
    frametitle{A Frame}

end{frame}

end{document}

enter image description here enter image description here

Correct answer by BambOo on December 9, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP