mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
* LaTeX.cpp (run):
- perform an additional bibtex cycle if requested (e.g. by Biblatex) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27742 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
97a08f97c9
commit
f6e2942f05
@ -245,7 +245,7 @@ int LaTeX::run(TeXErrors & terr)
|
||||
deplog(head); // reads the latex log
|
||||
head.update();
|
||||
|
||||
// 0.5
|
||||
// 1
|
||||
// At this point we must run external programs if needed.
|
||||
// makeindex will be run if a .idx file changed or was generated.
|
||||
// And if there were undefined citations or changes in references
|
||||
@ -291,7 +291,7 @@ int LaTeX::run(TeXErrors & terr)
|
||||
updateBibtexDependencies(head, bibtex_info);
|
||||
}
|
||||
|
||||
// 1
|
||||
// 2
|
||||
// we know on this point that latex has been run once (or we just
|
||||
// returned) and the question now is to decide if we need to run
|
||||
// it any more. This is done by asking if any of the files in the
|
||||
@ -301,7 +301,7 @@ int LaTeX::run(TeXErrors & terr)
|
||||
// run latex once more and
|
||||
// update the dependency structure
|
||||
// -> if not changed:
|
||||
// we does nothing at this point
|
||||
// we do nothing at this point
|
||||
//
|
||||
if (rerun || head.sumchange()) {
|
||||
rerun = false;
|
||||
@ -322,9 +322,24 @@ int LaTeX::run(TeXErrors & terr)
|
||||
} else {
|
||||
LYXERR(Debug::DEPEND, "Dep. file has NOT changed");
|
||||
}
|
||||
|
||||
// 3
|
||||
// rerun bibtex?
|
||||
// Complex bibliography packages such as Biblatex require
|
||||
// an additional bibtex cycle sometimes.
|
||||
if (scanres & UNDEF_CIT) {
|
||||
// Here we must scan the .aux file and look for
|
||||
// "\bibdata" and/or "\bibstyle". If one of those
|
||||
// tags is found -> run bibtex and set rerun = true;
|
||||
// no checks for now
|
||||
LYXERR(Debug::LATEX, "Running BibTeX.");
|
||||
message(_("Running BibTeX."));
|
||||
updateBibtexDependencies(head, bibtex_info);
|
||||
rerun |= runBibTeX(bibtex_info);
|
||||
}
|
||||
|
||||
// 1.5
|
||||
// The inclusion of files generated by external programs like
|
||||
// 4
|
||||
// The inclusion of files generated by external programs such as
|
||||
// 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.
|
||||
@ -347,7 +362,7 @@ int LaTeX::run(TeXErrors & terr)
|
||||
if (head.haschanged(glofile))
|
||||
rerun |= runMakeIndexNomencl(file, ".glo", ".gls");
|
||||
|
||||
// 2
|
||||
// 5
|
||||
// we will only run latex more if the log file asks for it.
|
||||
// or if the sumchange() is true.
|
||||
// -> rerun asked for:
|
||||
|
@ -76,6 +76,8 @@ What's new
|
||||
file. If the problem should with the child be fixed, the master document
|
||||
will need to be closed and reopened for the child to be loaded.
|
||||
|
||||
- Perform an additional bibtex cycle if requested (e.g. by Biblatex).
|
||||
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
@ -87,6 +89,9 @@ What's new
|
||||
- Fix crash on display of message string with utf8 encoding
|
||||
(bug 5389 related).
|
||||
|
||||
- Fix the registration of mimetypes, which cures a crash when using
|
||||
the clipboard and launching other applications on Windows (bug 5472).
|
||||
|
||||
- Fix freeze when selecting after a large amount of text already was
|
||||
selected (bug 5504).
|
||||
|
||||
@ -127,8 +132,6 @@ What's new
|
||||
|
||||
- Fix Preferences dialog in fullscreen mode (bug 5274).
|
||||
|
||||
- Fix the registration of mimetypes (bug 5472).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user