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.
expl3context). – cabohah Jun 23 '23 at 08:05