From 9fc92f783c5a11bf3e1463b2c8768d08bb139c4d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 29 May 2012 13:25:30 +0200 Subject: [PATCH] Load bibtopic after hyperref (bug #8005) --- src/BufferParams.cpp | 5 +++++ src/LaTeXFeatures.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index b9854e5867..7fdba576e7 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -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; diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 2a3d099ff5..b5fe2af404 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -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"; -- 2.39.2