-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
283 lines (237 loc) · 10.2 KB
/
main.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The Legrand Orange Book
% LaTeX Template
% Version 3.1 (February 18, 2022)
%
% This template originates from:
% https://www.LaTeXTemplates.com
%
% Authors:
% Vel ([email protected])
% Mathias Legrand ([email protected])
%
% License:
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
%
% Compiling this template:
% This template uses biber for its bibliography and makeindex for its index.
% When you first open the template, compile it from the command line with the
% commands below to make sure your LaTeX distribution is configured correctly:
%
% 1) pdflatex main
% 2) makeindex main.idx -s indexstyle.ist
% 3) biber main
% 4) pdflatex main x 2
%
% After this, when you wish to update the bibliography/index use the appropriate
% command above and make sure to compile with pdflatex several times
% afterwards to propagate your changes to the document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[
12pt, % Default font size, select one of 10pt, 11pt or 12pt
fleqn, % Left align equations
a4paper, % Paper size, use either 'a4paper' for A4 size or 'letterpaper' for US letter size
%oneside, % Uncomment for oneside mode, this doesn't start new chapters and parts on odd pages (adding an empty page if required), this mode is more suitable if the book is to be read on a screen instead of printed
]{LegrandOrangeBook}
% Book information for PDF metadata, remove/comment this block if not required
\hypersetup{
pdftitle={Title}, % Title field
pdfauthor={Author}, % Author field
pdfsubject={Subject}, % Subject field
pdfkeywords={Keyword1, Keyword2, ...}, % Keywords
pdfcreator={LaTeX}, % Content creator field
}
\usepackage{booktabs}
\usepackage[table]{xcolor}
\usepackage{algorithm}
%\usepackage{enumitem}
\usepackage{algpseudocode}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{karnaugh-map}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{amsmath}
\usepackage{etoolbox}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usetikzlibrary{automata}
\usetikzlibrary{arrows.meta}
\usepackage{comment}
\usetikzlibrary{3d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\B}{\mathbb{B}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\prceq}{\preccurlyeq}
\newcommand{\ndiv}{\nmid}
\newcommand{\tx}[1]{
\text{#1}
}
\newcommand{\mb}[1]{
\mathbb{#1}
}
\newcommand{\seq}[3]{
% write sequence expression
% Params: #1 notation, #2,#3 lower and upper boundaries
\ensuremath{\{#1_n\}_{n=#2}^{#3}}
}
% tikz preset for relation
\newcommand{\tikzinitRelation}{
\tikzset{
circlenode/.style={
circle,
draw,
thick,
align=center
},
edge/.style={
->,
>={Latex},
thick
}
}
}
% normal circle node with lable inside
\newcommand{\newnode}[3]{
\node[circlenode] (#1) at (#2,#3) {#1};
}
% single arrow
\newcommand{\arrow}[2]{
\draw[edge] (#1) -- (#2);
}
% arrow to self
\newcommand{\selfloop}[2]{
\draw[edge, loop #2] (#1) to (#1);
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheoremstyle{lemmastyle}
{9pt}
{9pt}
{\slshape}
{}
{\bfseries}
{.}
{5pt}
{}
\theoremstyle{lemmastyle}
\newtheorem{lemma}{Lemma}[chapter]
\newtheoremstyle{solutionStyle}
{5pt}
{5pt}
{\upshape}
{\parindent}
{\bfseries}
{:}
{3pt}
{}
\theoremstyle{solutionStyle}
\newtheorem*{solution}{Solution}
% Define a new theorem style called 'axiom_style'
\newtheoremstyle{axiom_style}% name of the style to be used
{3pt}% Space above
{3pt}% Space below
{\normalfont}% Body font
{}% Indent amount
{\bfseries}% Theorem head font
{.}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning 'normal')
% Apply the theorem style
\theoremstyle{axiom_style}
% Define the 'axiom' theorem with chapter numbering
\newtheorem{axiom}{Axiom}[chapter]
%\addbibresource{sample.bib} % Bibliography file
\definecolor{ocre}{RGB}{243, 102, 25} % Define the color used for highlighting throughout the book
\chapterimage{orange1.jpg} % Chapter heading image
\chapterspaceabove{6.5cm} % Default whitespace from the top of the page to the chapter title on chapter pages
\chapterspacebelow{6.75cm} % Default amount of vertical whitespace from the top margin to the start of the text on chapter pages
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\titlepage % Output the title page
{\includegraphics[width=\paperwidth]{background.pdf}} % Code to output the background image, which should be the same dimensions as the paper to fill the page entirely; leave empty for no background image
{ % Title(s) and author(s)
\centering\sffamily % Font styling
{\Huge\bfseries Math for Computer Science\par} % Book title
\vspace{16pt} % Vertical whitespace
{\LARGE A Journey Through Rigorous Mathematical Foundations} % Subtitle
\vspace{24pt} % Vertical whitespace
{\huge\bfseries \\ Eric Yang Xingyu\par} % Author name
}
%----------------------------------------------------------------------------------------
% COPYRIGHT PAGE
%----------------------------------------------------------------------------------------
\thispagestyle{empty} % Suppress headers and footers on this page
~\vfill % Push the text down to the bottom of the page
\noindent Copyright \copyright\ 2024 Eric Yang Xingyu\\ % Copyright notice
\noindent \textsc{Published by Publisher}\\ % Publisher
This \LaTeX \space template is from
\noindent \textsc{\href{https://www.latextemplates.com/template/legrand-orange-book}{book-website.com}}\\ % URL
\noindent Licensed under the Creative Commons Attribution-NonCommercial 4.0 License (the ``License''). You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{https://creativecommons.org/licenses/by-nc-sa/4.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.\\ % License information, replace this with your own license (if any)
\noindent \textit{First amendment, March 2024} % Printing/edition date
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS
%----------------------------------------------------------------------------------------
\pagestyle{empty} % Disable headers and footers for the following pages
\tableofcontents % Output the table of contents
\listoffigures % Output the list of figures, comment or remove this command if not required
\listoftables % Output the list of tables, comment or remove this command if not required
\pagestyle{fancy} % Enable default headers and footers again
\cleardoublepage % Start the following content on a new page
%----------------------------------------------------------------------------------------
% PART
%----------------------------------------------------------------------------------------
\part{Introductory Topics}
\input{content/part1 Intro/1.proof and proposition.tex}
\input{content/part1 Intro/2.Set, Sequence, Function, and Summation.tex}
\input{content/part1 Intro/3.Algorithm and Number System.tex}
\input{content/part1 Intro/4.Inequality.tex}
\input{content/part1 Intro/5.Complex Number.tex}
\part{Further Discrete Mathematics and Theories}
\input{content/Part2 Discrete math/1.Boolean Algebra.tex}
\input{content/Part2 Discrete math/2.Number Theory.tex}
\input{content/Part2 Discrete math/3.Relation and Order.tex}
\input{content/Part2 Discrete math/4.Graph Theory.tex}
\input{content/Part2 Discrete math/5.Basics of Abstract Algebra.tex}
\input{content/Part2 Discrete math/6.Introductory Topology and Category Theory.tex}
%------------------------------------------------
\part{Single-variable Calculus}
\input{content/Part3 Single-variable Calculus/Chapter1.tex}
\input{content/Part3 Single-variable Calculus/Chapter2.tex}
\input{content/Part3 Single-variable Calculus/Chapter3.tex}
\input{content/Part3 Single-variable Calculus/Chapter4.tex}
\input{content/Part3 Single-variable Calculus/Chapter5.tex}
\input{content/Part3 Single-variable Calculus/Chapter6.tex}
\input{content/Part3 Single-variable Calculus/Chapter7.tex}
%------------------------------------------------
\part{Multi-variable and Vector Calculus}
\input{content/Part4 Multi-variable Calculus/Chapter1.tex}
%------------------------------------------------
\part{Linear Algebra}
\input{content/Part5 Linear Algebra/Chapter1.tex}
%------------------------------------------------
\part{Probability and Combinatorics}
\input{content/Part6 Probability and Combinatorics/1.Counting and Probability Axioms.tex}
\input{content/Part6 Probability and Combinatorics/2.Conditional Probability and Independence.tex}
\input{content/Part6 Probability and Combinatorics/3.Discrete Distribution and Random Variable.tex}
\input{content/Part6 Probability and Combinatorics/4.Continuous Distribution.tex}
\input{content/Part6 Probability and Combinatorics/5.Joint Cumulative Distribution.tex}
\input{content/Part6 Probability and Combinatorics/6.Limit Theory in Probability.tex}
\input{content/Part6 Probability and Combinatorics/7.Stochastic Process.tex}
%------------------------------------------------
\part{Statistics}
\input{content/Part7 Statistics/Chapter1.tex}
%----------------------------------------------------------------------------------------
\part{Information Theory}
\input{content/Part8 Basic Information Theory/Chapter1.tex}
%\stopcontents[part] % Manually stop the 'part' table of contents here so the previous Part page table of contents doesn't list the following chapters
\end{document}