%%% Packages
\TestPackage{accents}
+\TestPackage{achicago}
\TestPackage{algorithm}
\TestPackage{amstext}
+\TestPackage{apacite}
+\TestPackage{apalike}
\TestPackage[arabic.ldf]{arabi}
\TestPackage{array}
+\TestPackage{astron}
+\TestPackage{authordate1-4}
\TestPackage{babel}
\TestPackage{bibtopic}
\TestPackage{bidi}
\TestPackage{CJKutf8}
\TestPackage{calc}
\TestPackage{cancel}
+\TestPackage{chicago}
\TestPackage{color} % this one should be there if graphics.sty is there.
\TestPackage{covington}
\TestPackage{csquotes}
\TestPackage{esint}
\TestPackage{eso-pic}
\TestPackage{fontspec}
+\TestPackage{harvard}
\TestPackage{hhline}
\TestPackage{ifthen}
\TestPackage{iftex}
\TestPackage{mathtools}
\TestPackage{mhchem}
\TestPackage[mongolian.ldf]{mongolian}
+\TestPackage{mslapa}
\TestPackage{multirow}
+\TestPackage{named}
\TestPackage{natbib}
\TestPackage{nicefrac}
\TestPackage{nomencl}
bool had_depfile = depfile.exists();
bool run_bibtex = false;
- FileName const aux_file(changeExtension(file.absFileName(), "aux"));
+ FileName const aux_file(changeExtension(file.absFileName(), ".aux"));
if (had_depfile) {
LYXERR(Debug::DEPEND, "Dependency file exists");
&& contains(token, "on page")
&& contains(token, "undefined")) {
retval |= UNDEF_CIT;
+ } else if (contains(token, "Citation")
+ && contains(token, "on input line")
+ && contains(token, "undefined")) {
+ retval |= UNDEF_CIT;
}
} else if (prefixIs(token, "Package")) {
// Package warnings
"tfrupee"
};
+char const * bibliofeatures[] = {
+ // Known bibliography packages (will be loaded before natbib)
+ "achicago",
+ "apacite",
+ "apalike",
+ "astron",
+ "authordate1-4",
+ "chicago",
+ "harvard",
+ "mslapa",
+ "named"
+};
+
+int const nb_bibliofeatures = sizeof(bibliofeatures) / sizeof(char const *);
+
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
}
params_.use_package("esint") != BufferParams::package_off)
packages << "\\usepackage{esint}\n";
+ // Known bibliography packages (simple \usepackage{package})
+ for (int i = 0; i < nb_bibliofeatures; ++i) {
+ if (mustProvide(bibliofeatures[i]))
+ packages << "\\usepackage{"
+ << bibliofeatures[i] << "}\n";
+ }
+
+ // Compatibility between achicago and natbib
+ if (mustProvide("achicago") && mustProvide("natbib"))
+ packages << "\\let\\achicagobib\\thebibliography\n";
+
// natbib.sty
// Some classes load natbib themselves, but still allow (or even require)
// plain numeric citations (ReVTeX is such a case, see bug 5182).
packages << "]{natbib}\n";
}
+ // Compatibility between achicago and natbib
+ if (mustProvide("achicago") && mustProvide("natbib")) {
+ packages << "\\let\\thebibliography\\achicagobib\n";
+ packages << "\\let\\SCcite\\astroncite\n";
+ packages << "\\let\\UnexpandableProtect\\protect\n";
+ }
+
// jurabib -- we need version 0.6 at least.
if (mustProvide("jurabib"))
packages << "\\usepackage{jurabib}[2004/01/25]\n";