Take the 2-minute tour ×

Is there any possibility to load a package with different options depending on the version of the package?

The command


only works if the package is already loaded and the options cannot be changed anymore.

To be precise, I want to load the biblatex package with different options depending on its version, since some options are not available in former versions.

share|improve this question
add comment

2 Answers

While I don't know how to conditionally invoke package options at load time, in the case of biblatex most options (except style specifications, compatibility options and choosing the backend) can also bet set afterwards using \ExecuteBibliographyOptions. For example, the url option (which was introduced in biblatex v0.9) could be conditionally disabled using

share|improve this answer
add comment

The question isn't clear. If you're the author of the document, you know the options that shipped with the latest version of the package. They're in the package documentation (and in the source or .sty file, if you can read them).

The biblatex package has load-time and preamble options. For load-time options, it is advisable to call the latest options that you need and are available at the time you're loading the package. You can use the optional version argument (eg, [2011/07/29] below) to insist on the version (or a newer one) of the package you need.


lockstep has indicated how preamble options may be invoked.

share|improve this answer
add comment

Your Answer


