-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.tex
More file actions
85 lines (74 loc) · 2.25 KB
/
head.tex
File metadata and controls
85 lines (74 loc) · 2.25 KB
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
\documentclass[a4paper,10pt]{ctexbook}
\usepackage{xeCJK}
\usepackage{fontspec}
\usepackage{minted}
\usepackage[CJKbookmarks,colorlinks,linkcolor=red]{hyperref}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[format=hang,font=small,textfont=it]{caption}
\usepackage{float}
\usepackage{subfigure}
\usepackage[nottoc]{tocbibind}
\usepackage{bm}
\usepackage[table, x11names, dvipsnames]{xcolor}
\usepackage{color}
\usepackage{array, booktabs, boldline}
\usepackage{cellspace}
\usepackage{longtable}
\usepackage{enumitem}
\usepackage[linesnumbered,ruled]{algorithm2e}
\setmainfont{Times New Roman}
\setsansfont{Helvetica}
\setmonofont{Courier New}
\setCJKmainfont[BoldFont={SimHei},ItalicFont={SimHei}]{SimSun}
\setCJKsansfont{SimSun}
\setCJKmonofont{SimSun}
%\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\geometry{left=3.0cm,right=3.0cm,top=2.5cm,bottom=2.5cm}
%\bibliographystyle{plain}
\bibliographystyle{apalike}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% minted setting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usemintedstyle{monokai}
\definecolor{codebg}{HTML}{282828} % from https://github.com/kevinsawicki/monokai
%\defaultfontfeatures{}
\newfontfamily\noligsmonofamily[NFSSFamily=noligsmonofamily]{Courier}
\setminted{fontfamily=noligsmonofamily}
\renewcommand{\theFancyVerbLine}{%
\sffamily \textcolor{Dandelion}{\scriptsize \oldstylenums{\arabic{FancyVerbLine}}}}
\newenvironment{jcode}[3]
{%
\VerbatimEnvironment
\begin{listing}[H]%
\caption{#2}%
\label{#3}%
\begin{minted}[xleftmargin=18pt,
mathescape,
linenos,
numbersep=5pt,
bgcolor=codebg,
%frame=lines,
%framesep=2mm,
fontsize=\footnotesize]{#1}%
}
{%
\end{minted}
\vspace{-25pt}%
\end{listing}%
}
\renewcommand{\listingscaption}{代码}%from minted
\renewcommand{\listoflistingscaption}{代码列表}% from minted
\newenvironment{myquote}{\begin{quote}\kaishu\zihao{-5}}{\end{quote}}
\newcommand\degree{^\circ}
\newtheorem{thm}{定理}
\newcommand\tableheadcolor{\rowcolor{SeaGreen3!30!}}
% Set itemize paragraph indent
\setlist{
listparindent=\parindent,
parsep=0pt,
}
\begin{document}
\maketitle
\tableofcontents
\listoflistings