]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.cpp
Norwegian Intro.lyx: - fix image paths to make it compilable
[lyx.git] / src / LaTeX.cpp
index d7fe03f770a8833156eb5956de7d3950785752b2..04b63e3a6877c98e479464fde0cfe70a1e1fbfbd 100644 (file)
@@ -412,13 +412,20 @@ int LaTeX::startscript()
 bool LaTeX::runMakeIndex(string const & f, OutputParams const & runparams,
                         string const & params)
 {
-       LYXERR(Debug::LATEX,
-               "idx file has been made, running makeindex on file " << f);
        string tmp = runparams.use_japanese ?
                lyxrc.jindex_command : lyxrc.index_command;
-       tmp += ' ';
+
+       LYXERR(Debug::LATEX,
+               "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;