forked from cnewstead/infdesc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook.tex
132 lines (94 loc) · 3.57 KB
/
book.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
% If you intend to adapt the material in this textbook
% in any way, then you must set the \adaptername and
% \adapteremail commands on lines 13 and 14 of this file
% to your full name and email address, respectively.
%
% Example usage:
% \newcommand{\adaptername}{Exampleface McLastname}
% \newcommand{\adapteremail}{[email protected]}
%
% Any duplications, derivations or adaptations of this work
% must be released under the Creative Commons BY-SA 4.0 licence.
\newcommand{\adaptername}{} % Your full name
\newcommand{\adapteremail}{} % Your email address
% Page layout
% 0:6"x9", 1:a4, 2:usletter, 3:tablet, 4:phone
\newcounter{bookformat}\setcounter{bookformat}{0}
% Book version - if you are adapting the book, please leave
% these unchanged so that the original version can be traced.
\newcounter{versionmajor}\setcounter{versionmajor}{0}
\newcounter{versionminor}\setcounter{versionminor}{5}
\newcounter{versionpatch}\setcounter{versionpatch}{-1}
\newcounter{versionstable}\setcounter{versionstable}{0}
\documentclass[10pt]{book}
% Includes
\input{book/includes/_includes.tex}
% Uncomment to remove hyperlinks (useful for print versions)
% \hypersetup{draft}
\begin{document}
% Uncomment to display cover spread
% \includepdf[pages=-,fitpaper=true,noautoscale=false]{book/media/spread.pdf}
\frontmatter
% Title page
\newgeometry{centering,bindingoffset={0in}}
\input{book/front-matter/titlepage.tex}
\restoregeometry
\clearpage
\input{book/front-matter/copyright.tex}
% Table of contents
\bookmark[page=3,level=0]{Contents}
\tableofcontents
\input{book/front-matter/preface.tex}
\input{book/front-matter/acknowledgements.tex}
\mainmatter
\setcounter{chapter}{-1}
\input{book/ch00-getting-started/_getting-started.tex}
\part{Core concepts}
\label{ptCoreConcepts}
\input{book/ch01-logical-structure/_logical-structure.tex}
\input{book/ch02-sets/_sets.tex}
\input{book/ch03-functions/_functions.tex}
\input{book/ch04-mathematical-induction/_mathematical-induction.tex}
\input{book/ch05-relations/_relations.tex}
\input{book/ch06-finite-infinite-sets/_finite-infinite-sets.tex}
\part{Topics in pure mathematics}
\label{ptTopics}
\input{book/ch07-number-theory/_number-theory.tex}
\input{book/ch08-enumerative-combinatorics/_enumerative-combinatorics.tex}
\input{book/ch09-real-numbers/_real-numbers.tex}
\input{book/ch10-infinity/_infinity.tex}
\input{book/ch11-probability-theory/_probability-theory.tex}
\input{book/ch12-additional-topics/_additional-topics.tex}
% Source: LaTeX Stack Exchange
% https://tex.stackexchange.com/q/6489 (Malabarba)
% https://tex.stackexchange.com/a/6494 (Stefan Kottwitz)
% https://tex.stackexchange.com/a/6494#comment971771_6494 (egreg)
\addtocontents{toc}{\protect\pagebreak}
\appendix
\begin{appendices}
\renewcommand{\sectionmark}[1]{\markboth{\leftmark}{Section \thesection.\ #1}}
\renewcommand{\chaptermark}[1]{\markboth{Appendix \thechapter.\ #1}{\rightmark}}
\part*{Appendices}
\addcontentsline{toc}{part}{Appendices}
\input{book/cha-proof-writing/_proof-writing.tex}
\input{book/chb-miscellany/_miscellany.tex}
\input{book/chc-hints/_hints.tex}
\input{book/chd-latex/_latex.tex}
\end{appendices}
\backmatter
{%
\part*{Indices}
\addcontentsline{toc}{part}{Indices}
\renewcommand{\chaptername}{Indices}
\addcontentsline{toc}{chapter}{Index of topics}
\printindex
\addcontentsline{toc}{chapter}{Index of vocabulary}
\printindex[vocabulary]
\addcontentsline{toc}{chapter}{Index of notation}
\printindex[notation]
\addcontentsline{toc}{chapter}{Index of \LaTeX{} commands}
\printindex[latex]%
}
\input{book/licence/_licence.tex}
\cleardoublepage
\end{document}