-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMain.tex
146 lines (139 loc) · 4.8 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
\documentclass[10pt,b5paper,openany]{book}
%Font&Lang
\usepackage[AutoFakeBold=true,AutoFakeSlant=true,CheckSingle=true,PlainEquation=true,PunctStyle=kaiming]{xeCJK}
\usepackage{fontspec}
\usepackage{xunicode,xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\setCJKmainfont[BoldFont=SourceHanSansCN-Bold.otf,
ItalicFont=SourceHanSansCN-Light.otf]
{SourceHanSerifCN-Regular.otf}
\setCJKmonofont{Source Han Sans CN}
\setCJKsansfont{Source Han Sans CN}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
%Page
\usepackage[includehead,includefoot]{geometry}
\geometry{left=2.0cm,right=2.0cm,top=1.0cm,bottom=1.0cm,heightrounded}
\makeatletter
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
\makeatother
\setlength{\parindent}{2em}
\setcounter{secnumdepth}{3}
\usepackage{minitoc}
\setcounter{minitocdepth}{2}
\setlength{\mtcindent}{24pt}
\renewcommand{\mtcfont}{\small\rm}
\renewcommand{\mtcSSfont}{\small\bf}
\dominitoc[n]
\usepackage{shorttoc}
%Feature
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{CJKfntef}
\newfontfamily\CodeFont{Consolas}
\usepackage{listings}
\lstset{
columns=fixed,
frame=none,
numbers=left,
numbersep=5pt,
stepnumber=10,
firstnumber=0,
backgroundcolor=\color[RGB]{255,255,255},
keywordstyle=\color[RGB]{0,0,255},
commentstyle=\color[RGB]{0,128,0},
stringstyle=\color[RGB]{172,21,96},
%numberstyle=\color[RGB]{9,136,90},
basicstyle=\CodeFont,
showstringspaces=false,
escapeinside=``,
language=c++,
tabsize=4,
morekeywords={alignas,continue,friend,register,true,alignof,decltype,goto,
reinterpret_cast,try,asm,default,if,return,typedef,auto,delete,inline,short,
typeid,bool,do,int,signed,typename,break,double,long,sizeof,union,case,
dynamic_cast,mutable,static,unsigned,catch,else,namespace,static_assert,using,
char,enum,new,static_cast,virtual,char16_t,char32_t,explict,noexcept,struct,
void,export,nullptr,switch,volatile,class,extern,operator,template,wchar_t,
const,false,private,this,while,constexpr,float,protected,thread_local,
const_cast,for,public,throw},
}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[unicode,pdftitle=OI知识点复习笔记,pdfauthor=dtcxzyw,colorlinks=true,linkcolor=black,hyperfootnotes=true,CJKbookmarks=true]{hyperref}
\usepackage{tabularx}
\usepackage{url}
\usepackage{makeidx}
\usepackage[numbib,numindex,chapter]{tocbibind}
\usepackage{lastpage}
\usepackage{array}
\makeindex
\pagestyle{headings}
\begin{document}
\input{MathSymbol}
\title{OI知识点复习笔记}
\author{dtcxzyw}
\frontmatter
\maketitle
\chapter{前言}
本人写复习笔记的目的有\CJKsout{两个}五个:
\begin{itemize}
\item 系统地复习知识点并挖掘一些有用的性质。
\item 学会使用\LaTeX{}。
\item 预先踩坑并记录,而不是在考场上首次掉坑,整场都在Debug。
\item 以此纪念我短暂的OI生涯,并为将来的ACM做准备。
\item \CJKsout{给学弟留下一些有用的东西。}
\end{itemize}
当前共\pageref{LastPage}页,\input{../latex/charcnt}字。
项目地址:\url{https://github.com/dtcxzyw/OI-Source}
\paragraph{声明}
{\bfseries
\begin{itemize}
\item 禁止将其用于商业目的。
\item 如需转载请标明出处,包括文末引用的链接/书籍/论文
\item 本人不承担因文中内容错误而导致损失的责任
\end{itemize}
}
欢迎学弟(似乎并没有)与其他OIer指出文中错误或贡献更多新内容。
本笔记在准确性、普及度、分类等方面自然比不上24OI的OI-Wiki
\footnote{Wiki for OI / ICPC. (某大型游戏线上攻略,内含炫酷算术魔法)
\url{https://oi-wiki.org/}
\url{https://github.com/24OI/OI-wiki}}。毕竟到目前为止这份笔记只有我一人
维护,而OI-Wiki却有上百活跃贡献者。现阶段本笔记仅限于自用,因此我没有介绍简单的算法
/数据结构。就算将来有学弟要用我也不会再补上这些内容,我希望他们在读这份笔记之前已经有
能力获得NOIP提高组一等奖。
\shorttoc{快速跳转}{0}
\renewcommand\contentsname{目录}
\tableofcontents
\mainmatter
\adjustmtc
\include{GameTheory/GameTheory}
\include{NetworkFlows/NetworkFlows}
\include{DataStructure/DataStructure}
\include{NumberTheory/NumberTheory}
\include{SetAndGroupTheory/SetAndGroupTheory}
\include{Combinatorics/Combinatorics}
\include{Polynomial/Polynomial}
\include{LinearAlgebra/LinearAlgebra}
\include{Math/Math}
\include{DP/DP}
\include{Tree/Tree}
\include{Path/Path}
\include{SpanningTree/SpanningTree}
\include{Graph/Graph}
\include{String/String}
\include{CG/CG}
\include{Optmize/Optmize}
\include{Theory/Theory}
\include{Other/Other}
\include{Summary/Summary}
\appendix
\include{Recommendation}
\printindex
\include{Bib}
\backmatter
\include{Backmatter}
\end{document}