I would like to switch between two styles in a simpler way, I have two sty files (say a.sty and b.sty) and a different bibstyles for each file (say a.bst and b.bst). In order to switch between two formats I rewrite \bibliographystyle{} and \usepackage each time, is there a simpler way to do this ? specially because a.sty has aditional instructions like \pdfpagewidth=8.5in and \pdfpageheight=11in
Asked
Active
Viewed 84 times
1
\bibliographystylein the.styfile. (The position of\bibliographystylein your document is irrelevant. It is only important that you have exactly one such directive.) Whether or not that is sensible in your situation is of course a different question. – moewe Dec 23 '21 at 15:41driverA.styanddriverB.sty, with the contents ofdriverA.stybeing\usepackage{a}and\bibliographystyle{a}, and the contents ofdriverB.stybeing\usepackage{b}and\bibliographystyle{b}?. And, in the\ifthenelsestatement, you'd set the condition which, if true, tells LaTeX to loaddriverAand, if false, tells LaTeX to loaddriverB. Incidentally, when switching bibliography styles, it's crucial to run a full compile cycle -- LaTeX, BibTeX, and LaTeX twice more -- to fully propagate all changes. – Mico Dec 23 '21 at 15:45