I'm defining a new class. In this class I created an option total. This however breaks the document since apparently this option is passed to the geometry package, even though I'm not specifying this should happen. I thought that options were only passed in case this was explicitly done using \PassOptionsToPackage or \RequirePackageWithOptions. How can I prevent this from happening? My current work around has been to change the name of the option, but I don't like that. Who knows what will break in the future?
Below is a minimal (non-)working example.
The class definition:
% example.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{example}
\DeclareOption{total}{}
\ProcessOptions\relax
\LoadClass{beamer}
\endinput
and a file using it:
% test.tex
\documentclass[total]{example}
\begin{document}
\begin{frame}
\end{frame}
\end{document}
\@classoptionslist– David Carlisle Jan 26 '15 at 12:21