From: Angus Leeming Date: Thu, 26 Jul 2001 09:47:36 +0000 (+0000) Subject: Small clean-up of natbib code X-Git-Tag: 1.6.10~20989 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8e0e11f8ae446682ac1590e586ae6726bafca992;p=features.git Small clean-up of natbib code git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2356 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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;