I am making a presentation with beamer
using the Madrid
theme. I am removing the specific frame titled Special Frame
from the top navigation bar using the command \buttenoff
. But it's hiding the frame number also.
teststyle.sty
\mode<presentation>{
\usetheme{Madrid}
\useinnertheme{circles} % https://tex.stackexchange.com/a/47373/114006
\usecolortheme{whale}
\usefonttheme{serif}
\usefonttheme{structuresmallcapsserif}
}
% https://tex.stackexchange.com/a/437578/114006
\makeatletter
% Remember the way beamer did it before
\let\beamer@old@writeslidentry\beamer@writeslidentry
% Tell it to do nothing with the slides entry
\newcommand\bulletoff{\let\beamer@writeslidentry\relax}
% Reset it to the old ways
\newcommand\bulleton{\let\beamer@writeslidentry\beamer@old@writeslidentry}
\makeatother
\setbeamercolor{section in head/foot}{fg=white,bg=black} % https://tex.stackexchange.com/a/326553/114006
\makeatletter
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
}%
\makeatother
\usepackage{ragged2e}
\addtobeamertemplate{block begin}{}{\justifying} % https://tex.stackexchange.com/a/148696/114006
\apptocmd{\frame}{}{\justifying}{} % https://tex.stackexchange.com/a/55590/114006
% https://tex.stackexchange.com/a/401409/114006
\usepackage{environ}
% Custom font for a frame.
\newcommand{\customframefont}[1]{
\setbeamertemplate{itemize/enumerate body begin}{#1}
\setbeamertemplate{itemize/enumerate subbody begin}{#1}
}
\NewEnviron{framefont}[1]{
\customframefont{#1} % for itemize/enumerate
{#1 % For the text outside itemize/enumerate
\BODY
}
\customframefont{\normalsize}
}
\setbeamertemplate{caption}[numbered]
test.tex
\documentclass[aspectratio=43]{beamer}
\usepackage{teststyle}
% \graphicspath{ {./img/} }
\title{Presentation Title}
\titlegraphic{\includegraphics[width=1cm]{example-image}}
\author{Presenter Name}
\date{August, 2021}
\logo{\includegraphics[height=0.5cm,keepaspectratio]{example-image}}
\begin{document}
{
\setbeamercolor{page number in head/foot}{fg=date in head/foot.bg} % https://tex.stackexchange.com/a/412733/114006
\begin{frame}[noframenumbering, plain]
\titlepage
\end{frame}
\begin{frame}[noframenumbering]
\frametitle{Outline}
\tableofcontents %[pausesections,pausesubsections,subsectionstyle=shaded]
\end{frame}
}
%------------------------------------------------
\section{Section 1}
\begin{frame}
\frametitle{Section One}
Sed iaculis dapibus gravida.
\end{frame}
%------------------------------------------------
\section{Section 2}
\begin{frame}
\frametitle{Section 2}
Sed iaculis dapibus gravida.
\end{frame}
%------------------------------------------------
\bulletoff\section*{}
\begin{frame}{Special Frame} % The frame number is not visible!
Sed iaculis dapibus gravida.
\end{frame}
%------------------------------------------------
\setbeamercolor{page number in head/foot}{fg=date in head/foot.bg}
% \bulletoff\section*{}
\begin{frame}[noframenumbering]
\Huge{\centerline{Thank You.}}
\huge{\centerline{Any Question?}}
\end{frame}
%------------------------------------------------
\end{document}
I like to make the hidden frame number visible on the specific frame titled Special Frame
. Only the title frame, TOC frame, last frame should not be affected i.e., they shouldn't have frame numbers. How can I fix it?