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 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

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

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

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.