mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 16:42:57 +00:00
fix bug 2623:
* lib/layouts/memoir.layout: add ProvidesMakeindex * src/LaTeX.C (run): rerun latex im idx file is empty (needed by memoir) fix typo in comment * src/LaTeXFeatures.C (getPackages): whitespace git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13950 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2485efbf75
commit
28fa2c0efa
@ -13,6 +13,7 @@ SecNumDepth 2
|
|||||||
TocDepth 2
|
TocDepth 2
|
||||||
DefaultStyle Standard
|
DefaultStyle Standard
|
||||||
PageStyle Headings
|
PageStyle Headings
|
||||||
|
ProvidesMakeidx 1
|
||||||
|
|
||||||
|
|
||||||
ClassOptions
|
ClassOptions
|
||||||
|
@ -269,6 +269,11 @@ int LaTeX::run(TeXErrors & terr)
|
|||||||
// the .aux file is checked for signs of bibtex. Bibtex is then run
|
// the .aux file is checked for signs of bibtex. Bibtex is then run
|
||||||
// if needed.
|
// 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
|
// run makeindex
|
||||||
if (head.haschanged(onlyFilename(changeExtension(file, ".idx")))) {
|
if (head.haschanged(onlyFilename(changeExtension(file, ".idx")))) {
|
||||||
// no checks for now
|
// no checks for now
|
||||||
@ -331,7 +336,7 @@ int LaTeX::run(TeXErrors & terr)
|
|||||||
|
|
||||||
// 1.5
|
// 1.5
|
||||||
// The inclusion of files generated by external programs like
|
// 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
|
// etc. And because of this we must run the external programs
|
||||||
// again to make sure everything is redone correctly.
|
// again to make sure everything is redone correctly.
|
||||||
// Also there should be no need to run the external programs any
|
// Also there should be no need to run the external programs any
|
||||||
|
@ -294,7 +294,7 @@ string const LaTeXFeatures::getPackages() const
|
|||||||
|
|
||||||
// makeidx.sty
|
// makeidx.sty
|
||||||
if (isRequired("makeidx")) {
|
if (isRequired("makeidx")) {
|
||||||
if (! tclass.provides(LyXTextClass::makeidx))
|
if (!tclass.provides(LyXTextClass::makeidx))
|
||||||
packages << "\\usepackage{makeidx}\n";
|
packages << "\\usepackage{makeidx}\n";
|
||||||
packages << "\\makeindex\n";
|
packages << "\\makeindex\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user