The natbib release notes say:
"It is possible to change the merge, sort, and compress options even after the package loads, and even after \begin{document}."
How do I do this?
I need this possibility, because I'm using revtex, which loads natbib without giving the user the chance to load options.
Document Classes ⇒ natbib | Set Option(s) after Package is loaded
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
natbib | Set Option(s) after Package is loaded
The natbib manual suggests to use the \setcitestyle command (see Section 5). You can also try to give desired options globally to the document class. It might pass them to the package. If this doesn't work, you will get corresponding warnings in the log file and you will have to use the suggested command.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: natbib | Set Option(s) after Package is loaded
@Thorsten - thank you for the quick response; unfortunately, the options that can be set with \setcitestyle do not include "compress" (only formatting options work); and passing arguments globally when calling revtex has no effect; calling natbib explicitly gives an error message about calling a package already loaded by the documentclass.
so I'm stuck.
so I'm stuck.