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
bool LaTeX::runMakeIndex(string const & f, OutputParams const & runparams,
string const & params)
{
+ string tmp = runparams.use_japanese ?
+ lyxrc.jindex_command : lyxrc.index_command;
+
LYXERR(Debug::LATEX,
- "idx file has been made, running makeindex on file " << f);
- string tmp = lyxrc.index_command + ' ';
+ "idx file has been made, running index processor ("
+ << tmp << ") on file " << f);
tmp = subst(tmp, "$$lang", runparams.document_language);
+ if (runparams.use_indices) {
+ tmp = lyxrc.splitindex_command + " -m " + quoteName(tmp);
+ LYXERR(Debug::LATEX,
+ "Multiple indices. Using splitindex command: " << tmp);
+ }
+ tmp += ' ';
tmp += quoteName(f);
tmp += params;
Systemcall one;
}
-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())));