Small clean-up of natbib code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2356 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-07-26 09:47:36 +00:00
parent db6d532997
commit 8e0e11f8ae
3 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2001-07-25 Angus Leeming <a.leeming@ic.ac.uk>
* LaTeXFeatures.C (getPackages): clean-up a little of the natbib code.
2001-07-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
* buffer.C (parseSingleLyXformat2Token): a more general fix for

View File

@ -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();

View File

@ -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;