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:





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:


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.


Also \documentclass[12pt,11pt]{article} uses 12pt and the 11pt option has no effect. Here's a workaround


\PassOptionsToClass{1\aku@ptsize pt}{article}


In this way only one font size option is passed.

  • That looks good, so are you saying that my problem is that article is passed both 12pt and 11pt as options? – akuritsu Jul 11 '13 at 15:33
  • @akuritsu Yes, that's the problem – egreg Jul 11 '13 at 15:36
  • Thank you, although I didn't use your workaround, your answer (and comment) solved the problem. – akuritsu Jul 15 '13 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.