mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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>
|
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
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user