Load bibtopic after hyperref (bug #8005)

This commit is contained in:
Juergen Spitzmueller 2012-05-29 13:25:30 +02:00
parent 158b398d28
commit 9fc92f783c
2 changed files with 5 additions and 5 deletions

View File

@ -1781,6 +1781,11 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
// hyperref loads this automatically
lyxpreamble += "\\usepackage{nameref}\n";
// bibtopic needs to be loaded after hyperref.
// the dot provides the aux file naming which LyX can detect.
if (features.mustProvide("bibtopic"))
lyxpreamble += "\\usepackage[dot]{bibtopic}\n";
// Will be surrounded by \makeatletter and \makeatother when not empty
docstring atlyxpreamble;

View File

@ -786,11 +786,6 @@ string const LaTeXFeatures::getPackages() const
if (mustProvide("xargs"))
packages << "\\usepackage{xargs}[2008/03/08]\n";
// bibtopic -- the dot provides the aux file naming which
// LyX can detect.
if (mustProvide("bibtopic"))
packages << "\\usepackage[dot]{bibtopic}\n";
if (mustProvide("xy"))
packages << "\\usepackage[all]{xy}\n";