Juergen Spitzmueller wrote:

> Herbert Voss wrote:
> 
>> not really, because there exists some packages, which have the
>> same option name, but with a different meaning. Passing it via
>> \documentclass can cause problems.
>> \PassOptionsToPackage is the save way, except the traditional options
>> like draft, a4paper, ... which are used by all packages and classes
>> in the same way.
> 
> Yes, I thought about it as "last exit" solution (only if we know that the
> package in question has already been loaded by the class).
> What is, for example, if a document class has
> \RequirePackage{color}
> 
> and we add after \documentclass
> \PassOptionsToPackage{usenames}{color}
> \usepackage{color}
> 
> Will this work?

yes, but only when the documentclass has itself a \PassOptionsToPackage
for its own needed options:

This is save:
\PassOptionsToPackage{usenames}{color}
\documentclass
\usepackage{color}

Herbert

Reply via email to