diff --git a/src/ChangeLog b/src/ChangeLog index 20633b9e28..2430c4e776 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-07-25 Angus Leeming + + * LaTeXFeatures.C (getPackages): clean-up a little of the natbib code. + 2001-07-26 Lars Gullik Bjønnes * buffer.C (parseSingleLyXformat2Token): a more general fix for diff --git a/src/LaTeXFeatures.C b/src/LaTeXFeatures.C index 9b4d15f29a..6c9de09ef7 100644 --- a/src/LaTeXFeatures.C +++ b/src/LaTeXFeatures.C @@ -278,15 +278,15 @@ string const LaTeXFeatures::getPackages() const // natbib.sty if (natbib) { - string options("[]"); - if (params.use_numerical_citations) - options.insert(1, "numbers"); - else - options.insert(1, "authoryear"); - packages << "\\usepackage" << options << "{natbib}\n"; + packages << "\\usepackage["; + if (params.use_numerical_citations) { + packages << "numbers"; + } else { + packages << "authoryear"; + } + packages << "]{natbib}\n"; } - packages << externalPreambles; return packages.str().c_str(); diff --git a/src/insets/insetbib.h b/src/insets/insetbib.h index f870f636ed..50cf26f368 100644 --- a/src/insets/insetbib.h +++ b/src/insets/insetbib.h @@ -47,9 +47,7 @@ public: /// void edit(BufferView * bv, bool front = true); /// - EDITABLE editable() const { - return IS_EDITABLE; - } + EDITABLE editable() const { return IS_EDITABLE; } /// A user can't neither insert nor delete this inset bool deletable() const { return false;