]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
fix dialogs in LyX/Mac
[lyx.git] / src / LaTeX.C
index 4a54f6e4926031963924f3a011003f50bc13882b..1ef36e1bfe6e17e57f3f0a87f1fb196943812233 100644 (file)
@@ -398,13 +398,8 @@ bool LaTeX::runMakeIndex(string const & f)
        lyxerr[Debug::LATEX] << "idx file has been made,"
                " running makeindex on file "
                             <<  f << endl;
-
-       // It should be possible to set the switches for makeindex
-       // sorting style and such. It would also be very convenient
-       // to be able to make style files from within LyX. This has
-       // to come for a later time.
-       string tmp = "makeindex -c -q ";
-       tmp += f;
+       string tmp = lyxrc.index_command + " ";
+       tmp += QuoteName(f);
        Systemcall one;
        one.startscript(Systemcall::Wait, tmp);
        return true;
@@ -528,7 +523,7 @@ bool LaTeX::runBibTeX(vector<Aux_Info> const & bibtex_info)
                result = true;
 
                string tmp = lyxrc.bibtex_command + " ";
-               tmp += OnlyFilename(ChangeExtension(it->aux_file, string()));
+               tmp += QuoteName(OnlyFilename(ChangeExtension(it->aux_file, string())));
                Systemcall one;
                one.startscript(Systemcall::Wait, tmp);
        }