Resolves: bz#1198355, doxygen generates \backmatter in article class

This commit is contained in:
Than Ngo 2015-04-29 13:41:37 +02:00
parent f293e096b2
commit fa6f4ff6fa
2 changed files with 33 additions and 2 deletions

26
doxygen-bz#1198355.patch Normal file
View File

@ -0,0 +1,26 @@
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index d4d8fae..de2ed22 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -535,14 +535,18 @@ static void writeDefaultFooter(FTextStream &t)
Doxygen::citeDict->writeLatexBibliography(t);
// Index
+ t << "% Index\n";
QCString unit;
if (Config_getBool("COMPACT_LATEX"))
+ {
unit = "section";
+ }
else
+ {
unit = "chapter";
- t << "% Index\n"
- "\\backmatter\n"
- "\\newpage\n"
+ t << "\\backmatter\n";
+ }
+ t << "\\newpage\n"
"\\phantomsection\n"
"\\clearemptydoublepage\n"
"\\addcontentsline{toc}{" << unit << "}{" << theTranslator->trRTFGeneralIndex() << "}\n"

View File

@ -2,7 +2,7 @@ Summary: A documentation system for C/C++
Name: doxygen
Epoch: 1
Version: 1.8.9.1
Release: 1%{?dist}
Release: 2%{?dist}
# No version is specified.
License: GPL+
@ -14,6 +14,7 @@ Source2: doxywizard.desktop
Patch1: doxygen-1.8.9.1-config.patch
Patch2: doxygen-1.8.9.1-html_timestamp_default_false.patch
Patch3: doxygen-bz#1198355.patch
BuildRequires: perl
BuildRequires: tex(dvips)
@ -63,6 +64,7 @@ Requires: texlive-epstopdf-bin
%patch1 -p1 -b .config
%patch2 -p1 -b .html_timestamp_default_false
%patch3 -p1 -b .bz#1198355
# convert into utf-8
iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.new
@ -118,7 +120,10 @@ desktop-file-install \
%changelog
* Wed Jan 21 2015 Than Ngo <than@redhat.com> 1.8.9.1-1
* Wed Apr 29 2015 Than Ngo <than@redhat.com> - 1:1.8.9.1-2
- Resolves: bz#1198355, doxygen generates \backmatter in article class
* Wed Jan 21 2015 Than Ngo <than@redhat.com> 1:1.8.9.1-1
- update to 1.8.9.1
* Mon Aug 25 2014 Than Ngo <than@redhat.com> - 1:1.8.8-1