Not a document class per se, but I'm creating a style file with options that defines which fonts to use and also defines some macros I frequently use.
Right now the class has one option and I code it like this:
Code: Select all
% default options
\newcommand{\ampfontcollection}{base35}
\DeclareOption{texgyre}{\renewcommand{\ampfontcollection}{texgyre}}
\DeclareOption*{\PackageWarning{anymouse}{Unknown ‘\CurrentOption’}}
\ProcessOptions\relax
\ifthenelse{\equal{\ampfontcollection}{base35}}{
\IfFileExists{mtpro2.sty}{}{% else
\renewcommand{\ampfontcollection}{texgyre}
}
}{}
I'd like to add two other package options though, and I'm not sure how to go about doing that, what is the best way.