![如何将选项从 beamertheme 传递到 beamer 类?](https://linux22.com/image/401565/%E5%A6%82%E4%BD%95%E5%B0%86%E9%80%89%E9%A1%B9%E4%BB%8E%20beamertheme%20%E4%BC%A0%E9%80%92%E5%88%B0%20beamer%20%E7%B1%BB%EF%BC%9F.png)
如何将选项从自定义 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,它要求一个类别;我要求一个主题/包。)