jolars / moloch

A LaTeX Beamer theme, forked from the metropolis theme
https://ctan.org/pkg/moloch
Creative Commons Attribution Share Alike 4.0 International
89 stars 5 forks source link

Progress bar in foot disappears with fraction page numbers #19

Closed tflinkow closed 4 months ago

tflinkow commented 4 months ago

Hi guys, apologies, I have another issue with my usage of moloch.

If I uncomment the line \setbeamertemplate{footline}[frame number]{} I get fraction page numbers (e.g. 7/10) like I want, but the progress bar disappears.

What's the correct way to have fraction page numbers here but to not mess with the progress bar?


\documentclass[11pt]{beamer}

\usetheme{moloch}

\molochset{
  progressbar=foot,
}

% only to make it easier to see the progress bar
\makeatletter
  \setlength{\moloch@progressinheadfoot@linewidth}{5pt}
\makeatother

% \setbeamertemplate{footline}[frame number]{}

\begin{document}
  \begin{frame}{Foo} 
  \end{frame}
\end{document}
samcarter commented 4 months ago

Instead of redefining the whole footline, only change the page number in head/foot template:

\documentclass[11pt]{beamer}

\usetheme{moloch}

\molochset{
  progressbar=foot,
}

% only to make it easier to see the progress bar
\makeatletter
  \setlength{\moloch@progressinheadfoot@linewidth}{5pt}
\makeatother

\setbeamertemplate{page number in head/foot}[totalframenumber]

\begin{document}
  \begin{frame}
  \frametitle{Foo} 
  \end{frame}
\end{document}
tflinkow commented 4 months ago

Thanks for the quick reply - closing this