]> git.lyx.org Git - features.git/commitdiff
Load bibtopic after hyperref (bug #8005)
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 29 May 2012 11:25:30 +0000 (13:25 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 29 May 2012 11:25:30 +0000 (13:25 +0200)
src/BufferParams.cpp
src/LaTeXFeatures.cpp

index b9854e5867bf1669d6fe37a62bb1bba380306966..7fdba576e7c706a969badd9cfa91f88523ead699 100644 (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;
 
index 2a3d099ff5c5a13f1f03c3d01790d9174b54a203..b5fe2af404effb6b2fdae7130c2413abd6de8159 100644 (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";