forked from soulmachine/leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleetcode-cpp.tex
57 lines (45 loc) · 1.23 KB
/
leetcode-cpp.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
\documentclass[10pt,adobefonts,fancyhdr,hyperref,UTF8]{ctexbook}
\usepackage{multirow}
% for \soul 删除线
\usepackage{ulem}
% 表头斜线
\usepackage{diagbox}
\makeatletter
\input{format.cls}
\makeatother
\begin{document}
\sloppy
\newcommand\BookTitle{LeetCode题解}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE]{\normalfont\small\rmfamily\nouppercase{\leftmark}}
\fancyhead[LO]{\normalfont\small\rmfamily\nouppercase{\rightmark}}
\fancyhead[LE,RO]{\thepage}
%\fancyfoot[LE,LO]{\small\normalfont\youyuan\BookTitle}
%\fancyfoot[RE,RO]{\textsf{\small \color{blue} https://github.com/soulmachine/leetcode}}
\makeatletter
\@openrightfalse
\makeatother
\frontmatter % 开始前言目录,页码用罗马数字
\include{title}
\tableofcontents
\mainmatter % 开始正文,页码用阿拉伯数字
\graphicspath{{images/}}
\include{chapTrick}
\include{chapLinearList}
\include{chapString}
\include{chapStackAndQueue}
\include{chapTree}
\include{chapSorting}
\include{chapSearching}
\include{chapBruteforce}
\include{chapBFS}
\include{chapDFS}
\include{chapDivideAndConquer}
\include{chapGreedy}
\include{chapDynamicProgramming}
\include{chapGraph}
\include{chapImplement}
\appendix % 开始附录,章用字母编号
\printindex
\end{document}