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> 2001-07-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
* buffer.C (parseSingleLyXformat2Token): a more general fix for * buffer.C (parseSingleLyXformat2Token): a more general fix for

View File

@ -278,15 +278,15 @@ string const LaTeXFeatures::getPackages() const
// natbib.sty // natbib.sty
if (natbib) { if (natbib) {
string options("[]"); packages << "\\usepackage[";
if (params.use_numerical_citations) if (params.use_numerical_citations) {
options.insert(1, "numbers"); packages << "numbers";
else } else {
options.insert(1, "authoryear"); packages << "authoryear";
packages << "\\usepackage" << options << "{natbib}\n"; }
packages << "]{natbib}\n";
} }
packages << externalPreambles; packages << externalPreambles;
return packages.str().c_str(); return packages.str().c_str();

View File

@ -47,9 +47,7 @@ public:
/// ///
void edit(BufferView * bv, bool front = true); void edit(BufferView * bv, bool front = true);
/// ///
EDITABLE editable() const { EDITABLE editable() const { return IS_EDITABLE; }
return IS_EDITABLE;
}
/// A user can't neither insert nor delete this inset /// A user can't neither insert nor delete this inset
bool deletable() const { bool deletable() const {
return false; return false;