Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:master commit in: /
Date: Sat, 24 May 2014 06:57:34
Message-Id: 1400863515.ac50b97a64017e581f43cb857eb22bd38dbe8a61.ulm@gentoo
1 commit: ac50b97a64017e581f43cb857eb22bd38dbe8a61
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 23 16:45:15 2014 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 23 16:45:15 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=ac50b97a
7
8 Move bibliography before the appendix.
9
10 Style manuals have different opinions about the position of the
11 bibliography: The Chicago Manual of Style says it should be placed
12 after the appendix; APA and Harvard say it should be placed before.
13 Move it from its current position (between appendix E and F) to before
14 the appendix, because it would look strange after the EAPI cheat
15 sheet.
16
17 Also make the bibliography appear in the table of contents, by means
18 of the "tocbibind" package.
19
20 ---
21 pms.cls | 4 +++-
22 pms.tex | 4 ++--
23 2 files changed, 5 insertions(+), 3 deletions(-)
24
25 diff --git a/pms.cls b/pms.cls
26 index cc07431..8a27379 100644
27 --- a/pms.cls
28 +++ b/pms.cls
29 @@ -16,6 +16,7 @@
30 \PassOptionsToPackage{position=top}{caption}
31 % Enable UTF-8 input encoding
32 \PassOptionsToPackage{utf8}{inputenc}
33 +\PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind}
34 % algorithmic and algorithm to be loaded last to avoid failures
35 \RequirePackage{%
36 fontenc, % Load extended font sets
37 @@ -32,7 +33,8 @@
38 paralist, % Additional list environments
39 parskip, % Space between paragraphs instead of indentation
40 verbatim, % Extend the print-as-is functionality
41 - chngcntr % Redefinition of counters
42 + chngcntr, % Redefinition of counters
43 + tocbibind % Add bibliography to table of contents
44 }
45
46 % tex4ht workaround: hyperref needs to be loaded /after/ tex4ht injects itself
47
48 diff --git a/pms.tex b/pms.tex
49 index 5885c9c..bf31c2a 100644
50 --- a/pms.tex
51 +++ b/pms.tex
52 @@ -62,13 +62,13 @@
53
54 \include{glossary}
55
56 +\bibliography{pms}
57 +
58 \appendix
59 \include{appendices}
60
61 \include{eapi-differences}
62
63 -\bibliography{pms}
64 -
65 \ifthenelse{\boolean{TEX4HT-HACKS}}{%
66 \chapter{Desk Reference}