答案1
您可以修补\feathergeaderbackground
宏以使用 tikzfpu
库。
执行此操作的代码可以在以下问题中找到:https://topanswers.xyz/tex?q=4494(可能不是原始来源)
\documentclass{beamer}
\usetheme{Feather}
\usepackage{tikz}
\usetikzlibrary{fpu,calc}
% from https://topanswers.xyz/tex?q=4494
\def\pgfmathsetmacroFPU#1#2{\begingroup%
\pgfkeys{/pgf/fpu,/pgf/fpu/output format=fixed}%
\pgfmathsetmacro{#1}{#2}%
\pgfmathsmuggle#1\endgroup}%
\patchcmd{\featherheaderbackground}{
\pgfmathsetmacro{\progress}{220*\insertframestartpage/\inserttotalframenumber};
}{
\pgfmathsetmacroFPU{\progress}{220*\insertframestartpage/\inserttotalframenumber}
}{}{}
\patchcmd{\featherheaderbackground}{
\pgfmathsetmacro{\progress}{-220*\insertframestartpage/\inserttotalframenumber};
}{
\pgfmathsetmacroFPU{\progress}{-220*\insertframestartpage/\inserttotalframenumber}
}{}{}
\begin{document}
\foreach \macro in {1,...,100}{
\begin{frame}
test
\end{frame}
}
\end{document}
(我还删除了一些放置错误的字体,;
以避免日志文件被缺少空字体的警告淹没……)