+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
// 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();
///
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;