Jürgen Spitzmüller wrote:
Paul A. Rubin wrote:
How do I tell LyX that option X belongs to package Y? If I just put
\usepackage{Y} in the module and X in the class options, LyX passes
option X to the document class, not to package Y. The ClassOptions
section doesn't seem to help here.
Usually (not always, though), the packages inherit the options from the class,
so you can pass package options to packages via the class options. This is
only a problem if different packages have the same option name, but with
different semantics, and if a package refuses the inheritance.
For a more specific option handling, there's also
\PassOptionsToPackage{options}{package}
but this command must precede the \usepackage command.
Jürgen
Jürgen,
Thanks. Unfortunately, \PassOptionsToPackage does not work when I test
it. I'm not sure, but does that command have to be in a class or style
file (as opposed to the document preamble)?
I've located the problem, but not the solution. Simple global keywords
are indeed being passed to the package when I use \usepackage, but
unfortunately the package in question (mathdesign) also uses key=value
pairs, and those are apparently not passed from the global options to
the package. I searched around but found no help online, and the
obvious hacks (enclose them in double quotes or braces) accomplished
nothing.
Is there some sneaky way to say \documentclass[a=b,...]{someclass} and
have the 'a=b' passed as an option to \usepackage{somepackage}?
TIA,
Paul