]> git.lyx.org Git - features.git/blobdiff - src/LaTeX.cpp
Handle endnotes aux file in removeAuxiliaryFiles()
[features.git] / src / LaTeX.cpp
index cae5967c311b7b0c13571ce93be6e6598719b4e3..4096ca9f63600ea7b5c568aa963d3a4ad63bf38a 100644 (file)
@@ -161,6 +161,10 @@ void LaTeX::removeAuxiliaryFiles() const
        FileName const gls(changeExtension(file.absFileName(), ".gls"));
        gls.removeFile();
 
+       // endnotes file
+       FileName const ent(changeExtension(file.absFileName(), ".ent"));
+       ent.removeFile();
+
        // Also remove the aux file
        FileName const aux(changeExtension(file.absFileName(), ".aux"));
        aux.removeFile();
@@ -774,6 +778,9 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                //Handles both "LaTeX Warning:" & "Package natbib Warning:"
                //Various handlers for missing citations below won't catch the problem if citation
                //key is long (>~25chars), because pdflatex splits output at line length 80.
+               //TODO: TL 2020 engines will contain new commandline switch --cnf-line which we  
+               //can use to set max_print_line variable for appropriate length and detect all
+               //errors correctly.
                if (contains(token, "There were undefined citations."))
                        retval |= UNDEF_CIT;
 
@@ -796,6 +803,10 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                        } else if (contains(token, "Etaremune labels have changed")) {
                                retval |= ERROR_RERUN;
                                LYXERR(Debug::LATEX, "Force rerun.");
+                       // package enotez
+                       } else if (contains(token, "Endnotes may have changed. Rerun")) {
+                               retval |= RERUN;
+                               LYXERR(Debug::LATEX, "We should rerun.");
                        //"Citation `cit' on page X undefined on input line X."
                        } else if (contains(token, "Citation")
                                   //&& contains(token, "on input line") //often split to newline