Load bibtopic after hyperref (bug #8005)

This commit is contained in:
Juergen Spitzmueller 2012-05-29 13:23:08 +02:00
parent 7740226c9f
commit daf44909c0
3 changed files with 8 additions and 5 deletions

View File

@ -1787,6 +1787,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

@ -767,11 +767,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";

View File

@ -124,6 +124,9 @@ What's new
- Fix generation of a lyx archive when included files have spaces embedded
in their names (bug 8164).
- Load bibtopic after hyperref, thus preventing a LaTeX error when back
references are used (bug 8005).
* USER INTERFACE