hgbook

view en/00book.tex @ 89:2914e2373139

Add contents entry for the index.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Oct 12 12:20:35 2006 -0700 (2006-10-12)
parents b7c69a68b0cc
children 47ea206351d5
line source
1 % The use of oneside here is a temporary hack; \marginpar entries
2 % don't show up on odd pages of PDF output without it. Sigh.
3 \documentclass[oneside]{book}
4 \usepackage{enumerate}
5 \usepackage{fullpage}
6 \usepackage{makeidx}
7 \usepackage{ifpdf}
8 \usepackage{graphicx}
9 \usepackage{pslatex}
10 \usepackage{fancyvrb}
11 % leave hyperref until last
12 \usepackage[colorlinks=true,bookmarks=true]{hyperref}
14 \include{99defs}
16 \title{Distributed revision control with Mercurial}
17 \author{Bryan O'Sullivan}
18 \date{Copyright \copyright\ 2006 Bryan O'Sullivan.\\
19 This material may be distributed only subject to the terms and
20 conditions set forth in version 1.0 of the Open Publication License.
21 Please refer to Appendix~\ref{cha:opl} for the license text.\\
22 This book was prepared from revision \input{build_id}.}
24 \makeindex
26 \begin{document}
28 \maketitle
30 \addcontentsline{toc}{chapter}{Contents}
31 \pagenumbering{roman}
32 \tableofcontents
33 \listoffigures
34 %\listoftables
36 \pagenumbering{arabic}
38 \include{preface}
39 \include{intro}
40 %\include{concepts}
41 \include{tour}
42 \include{daily}
43 \include{hook}
44 \include{template}
45 \include{mq}
47 \appendix
48 \include{srcinstall}
49 \include{license}
50 \addcontentsline{toc}{chapter}{Bibliography}
51 \bibliographystyle{alpha}
52 \bibliography{99book}
54 \addcontentsline{toc}{chapter}{Index}
55 \printindex
57 \end{document}
59 %%% Local Variables:
60 %%% mode: latex
61 %%% TeX-master: t
62 %%% End: