LYXERR(Debug::LATEX, "Running BibTeX.");
message(_("Running BibTeX."));
updateBibtexDependencies(head, bibtex_info);
- rerun |= runBibTeX(bibtex_info);
+ rerun |= runBibTeX(bibtex_info, runparams);
} else if (!had_depfile) {
/// If we run pdflatex on the file after running latex on it,
/// then we do not need to run bibtex, but we do need to
LYXERR(Debug::LATEX, "Running BibTeX.");
message(_("Running BibTeX."));
updateBibtexDependencies(head, bibtex_info);
- rerun |= runBibTeX(bibtex_info);
+ rerun |= runBibTeX(bibtex_info, runparams);
}
// 4
{
LYXERR(Debug::LATEX,
"idx file has been made, running makeindex on file " << f);
- string tmp = lyxrc.index_command + ' ';
+ string tmp = runparams.use_japanese ?
+ lyxrc.jindex_command : lyxrc.index_command;
+ tmp += ' ';
tmp = subst(tmp, "$$lang", runparams.document_language);
tmp += quoteName(f);
}
-bool LaTeX::runBibTeX(vector<AuxInfo> const & bibtex_info)
+bool LaTeX::runBibTeX(vector<AuxInfo> const & bibtex_info,
+ OutputParams const & runparams)
{
bool result = false;
for (vector<AuxInfo>::const_iterator it = bibtex_info.begin();
continue;
result = true;
- string tmp = lyxrc.bibtex_command + " ";
+ string tmp = runparams.use_japanese ?
+ lyxrc.jbibtex_command : lyxrc.bibtex_command;
+ tmp += " ";
// onlyFilename() is needed for cygwin
tmp += quoteName(onlyFilename(removeExtension(
it->aux_file.absFilename())));
LYXERR(Debug::LATEX, "We should rerun.");
retval |= RERUN;
}
+ } else if (prefixIs(token, "LETTRE WARNING:")) {
+ if (contains(token, "veuillez recompiler")) {
+ // lettre.cls
+ LYXERR(Debug::LATEX, "We should rerun.");
+ retval |= RERUN;
+ }
} else if (token[0] == '(') {
if (contains(token, "Rerun LaTeX") ||
contains(token, "Rerun to get")) {