I'm trying to give my custom class file two options for font size, 11pt
and 12pt
. I want 12pt
to be the default. I create the options like this:
\DeclareOption{11pt}{
\PassOptionsToClass{11pt}{article}}
\DeclareOption{12pt}{
\PassOptionsToClass{12pt}{article}}
\ExecuteOptions{12pt}
\ProcessOptions
\LoadClass[]{article}
This works fine, the default font size becomes 12pt. However the problem occurs when in the case that I want to go against this default and use 11pt font, using, of course, the 11pt
option like so:
\documentclass[11pt]
This does nothing when it should change the font size to 11pt (actually 10.95pt, since that is what the article
class uses as a substitute for 11pt, but this does not matter). How can I make the 11pt
option override the default 12pt
? I can't seem to figure it out, Is it simply a problem with my method?
Interestingly enough, if I make 11pt
the default option, with \ExecuteOptions{11pt}
, then I can use \documentclass[12pt]
and get 12pt
font, but just not the other way around.