1

The MWE:

% test.tex
\documentclass{format}

\begin{document} \begin{frame} My name is chichi. \end{frame} \end{document}

my .cls file:

% format.cls
\PassOptionsToClass{20pt,aspectratio = 1610}{ beamer }

\NeedsTeXFormat{LaTeX2e} \ProvidesClass{format}[23/06/2023]

\LoadClass{beamer}

However, if I use \PassOptionsToClass directly in .tex file, it will be useful, like this:

\PassOptionsToClass{20pt,aspectratio = 1610}{beamer}
\documentclass{beamer}

\begin{document} \begin{frame} My name is chichi. \end{frame} \end{document}

Because I want to design a user interface that changes the beamer size and font size in beamer template, I use \PassOptionsToClass in the .cls file.

F. Pantigny
  • 40,250

1 Answers1

2

Modify the .cls to:

% format.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{format}
\PassOptionsToClass{20pt,aspectratio = 1610}{beamer}
\ProcessOptions\relax
\LoadClass{beamer}
Stephen
  • 3,826