commit:     ac50b97a64017e581f43cb857eb22bd38dbe8a61
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 16:45:15 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri May 23 16:45:15 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=ac50b97a

Move bibliography before the appendix.

Style manuals have different opinions about the position of the
bibliography: The Chicago Manual of Style says it should be placed
after the appendix; APA and Harvard say it should be placed before.
Move it from its current position (between appendix E and F) to before
the appendix, because it would look strange after the EAPI cheat
sheet.

Also make the bibliography appear in the table of contents, by means
of the "tocbibind" package.

---
 pms.cls | 4 +++-
 pms.tex | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pms.cls b/pms.cls
index cc07431..8a27379 100644
--- a/pms.cls
+++ b/pms.cls
@@ -16,6 +16,7 @@
 \PassOptionsToPackage{position=top}{caption}
 % Enable UTF-8 input encoding
 \PassOptionsToPackage{utf8}{inputenc}
+\PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind}
 % algorithmic and algorithm to be loaded last to avoid failures
 \RequirePackage{%
     fontenc,   % Load extended font sets
@@ -32,7 +33,8 @@
     paralist,  % Additional list environments
     parskip,   % Space between paragraphs instead of indentation
     verbatim,  % Extend the print-as-is functionality
-    chngcntr   % Redefinition of counters
+    chngcntr,  % Redefinition of counters
+    tocbibind  % Add bibliography to table of contents
 }
 
 % tex4ht workaround: hyperref needs to be loaded /after/ tex4ht injects itself

diff --git a/pms.tex b/pms.tex
index 5885c9c..bf31c2a 100644
--- a/pms.tex
+++ b/pms.tex
@@ -62,13 +62,13 @@
 
 \include{glossary}
 
+\bibliography{pms}
+
 \appendix
 \include{appendices}
 
 \include{eapi-differences}
 
-\bibliography{pms}
-
 \ifthenelse{\boolean{TEX4HT-HACKS}}{%
     \chapter{Desk Reference}
 

Reply via email to