]> git.lyx.org Git - features.git/blobdiff - src/LaTeXFeatures.C
Small clean-up of natbib code
[features.git] / src / LaTeXFeatures.C
index 9b4d15f29a230bd6db1730529615485b2c4c3d08..6c9de09ef720c4433dc57ac4e9893b188135945e 100644 (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();