如何将选项从 beamertheme 传递到 beamer 类?

如何将选项从 beamertheme 传递到 beamer 类?

如何将选项从自定义 beamertheme 传递到 beamer 类(以及已加载的包)?

slides.tex

\documentclass[
  %xcolor=table,  % this option should be set in the theme!
  17pt,  % you can overwrite the theme
]{beamer}
\usetheme{minimal}

\begin{document}
\begin{frame}{A table}
  \begin{tabular}{l}
    \tablehead Number \\
    One \\
    Two \\
    Three \\
    Four
  \end{tabular}
\end{frame}
\end{document}

minimal.sty

%% All these seem to have no effect:
\PassOptionsToClass{14pt}{beamer}
\PassOptionsToClass{xcolor=table}{beamer}
%% or
%\PassOptionsToPackage{table}{xcolor}

%\RequirePackage[table]{xcolor}  % would lead to Option clash

\newcommand{\tablehead}{\cellcolor{orange}\bfseries}
\rowcolors{2}{yellow}{white}

错误:Undefined control sequence. \rowcolors

(这个问题不同于将选项从新类传递给 beamer,它要求一个类别;我要求一个主题/包。)

相关内容