-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathply-template.tex
45 lines (38 loc) · 1.11 KB
/
ply-template.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
\documentclass[a4paper,11pt]{article}
\usepackage{zh_CN-Adobefonts_external} % Simplified Chinese Support using external fonts (./fonts/zh_CN-Adobe/)
\usepackage{fancyhdr} % 页眉页脚
\usepackage{minted} % 代码高亮
\usepackage[colorlinks]{hyperref} % 目录可跳转
\setlength{\headheight}{15pt}
% 定义页眉页脚
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{Algorithm Library by palayutm}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\author{palayutm}
\title{Algorithm Library}
\begin{document}
\maketitle % 封面
\newpage % 换页
\tableofcontents % 目录
\newpage
\section{Graph Theory} % 一级标题
\subsection{Minimum Spanning Tree} % 二级标题
\subsubsection{Kruskal} % 三级标题
\inputminted[breaklines]{c++}{graph/kruskal.cc} % 插入代码文件
% 中文测试
\subsection{单源最短路}
\subsubsection{SPFA}
\inputminted[breaklines]{c++}{graph/spfa.cc}
\twocolumn % 分页显示
\newpage
\section{String}
\subsection{KMP}
\inputminted[breaklines]{c++}{string/kmp.cc}
\subsection{Suffix Automaton}
\inputminted[breaklines]{c++}{string/suffix-automaton.cc}
%\newpage
%\section{Others}
\end{document}