1

How to pass options from custom beamertheme to beamer class (and already loaded packages)?

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}

Error: Undefined control sequence. \rowcolors

(The question is different from Pass options to beamer from new class, which asks for a class; I asked for a theme/package.)

2

0

You must log in to answer this question.

Browse other questions tagged .