mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
db6d532997
commit
8e0e11f8ae
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user