]> git.lyx.org Git - features.git/blobdiff - src/LaTeX.C
fix bug 2623:
[features.git] / src / LaTeX.C
index 90092a7cf9b782b795053e8542fa4da1094685eb..5837c5d9b3c20a1bd33f9ee7ca1e7d22b74bb9cb 100644 (file)
@@ -269,6 +269,11 @@ int LaTeX::run(TeXErrors & terr)
        // the .aux file is checked for signs of bibtex. Bibtex is then run
        // if needed.
 
+       // memoir (at least) writes an empty *idx file in the first place.
+       // A second latex run is needed.
+       rerun = fs::exists(ChangeExtension(file, ".idx"))
+               && fs::is_empty(ChangeExtension(file, ".idx"));
+
        // run makeindex
        if (head.haschanged(onlyFilename(changeExtension(file, ".idx")))) {
                // no checks for now
@@ -331,7 +336,7 @@ int LaTeX::run(TeXErrors & terr)
 
        // 1.5
        // The inclusion of files generated by external programs like
-       // makeindex or bibtex might have done changes to pagenumbereing,
+       // makeindex or bibtex might have done changes to pagenumbering,
        // etc. And because of this we must run the external programs
        // again to make sure everything is redone correctly.
        // Also there should be no need to run the external programs any