Beamer 中的页码颜色不会改变

Beamer 中的页码颜色不会改变

右下角页码的颜色无法更改,设置成黑色了还是白色,为什么?

我怎样才能将其改为黑色?

¥documentclass[dvipdfmx,11pt,notheorems]{beamer}
¥usetheme{Madrid}
¥usefonttheme{professionalfonts}
¥setbeamertemplate{frametitle}[default][left]
¥setbeamertemplate{navigation symbols}{}
¥setbeamercovered{transparent}

% Footer
¥setbeamertemplate{footline}[page number]
¥setbeamerfont{footline}{size=¥normalsize, series=¥bfseries}
¥setbeamercolor{footline}{fg = black, bg = black} 

¥usepackage{amsmath,amssymb}
¥usepackage{amsthm}
¥usepackage[T1]{fontenc}%
¥usepackage{textcomp}%
¥usepackage[utf8]{inputenc}%
¥usepackage{otf}%
¥usepackage{helvet}%

¥begin{document}

¥begin{frame}¥frametitle{test}
¥begin{block}{aaa}
¥begin{itemize}
¥item aaa
¥item bbb
¥end{itemize}
¥end{block}

¥begin{exampleblock}{Example}
¥begin{equation*}
¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx ¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1}
=¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1}
¥end{equation*}
¥end{exampleblock}

¥begin{exampleblock}{Example}
¥begin{equation*}
¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx 
¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1}
=¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1}
¥end{equation*}
¥end{exampleblock}

¥begin{exampleblock}{Example}
¥begin{equation*}
¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx ¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1}
=¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1}
¥end{equation*}
¥end{exampleblock}

¥end{frame}


¥end{document}

答案1

此问题已在 Beamer 的开发版本中通过提交修复https://github.com/josephwright/beamer/commit/6fb90df75765a153492b240a5e325a7a761675be

版本 <= 3.50 的解决方法:

\documentclass[11pt,notheorems]{beamer}
\usetheme{Madrid}

\setbeamertemplate{footline}[page number]
\setbeamerfont{footline}{size=\normalsize, series=\bfseries}
\setbeamercolor{footline}{fg = black, bg = black} 
\setbeamercolor{page number in head/foot}{fg=black}

\begin{document}

\begin{frame}
test
\end{frame}

\end{document}

相关内容