TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible add at the loaded class some options? look at the example below:


\AddOptionsToClass{headinclude,footinclude}% something like this command



share|improve this question
I would do a \def\MyClassOptions{} before \documentclass, and use \documentclass[MyClassOptions]{scrbook}. This could also allow (with some additional logic) for a way to specify the class options on the command line, if so desired. – Peter Grill Oct 1 '12 at 21:06
up vote 13 down vote accepted

If a class or package is loaded, LaTeX does not load them again (the exception is package fontenc). It only checks the options, if there are new ones and then LaTeX throws an error because of the option clash. That also means, you can't give options later to the class or package. But it is possible to do it before:


Some classes and packages provide setup commands that allow to change the behaviour of the class or package at a later time, e.g.:

share|improve this answer

The solution I have been using is:



This allows you to change the options via the command line if so desired.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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