-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreamble.tex
98 lines (88 loc) · 2.31 KB
/
preamble.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
\usepackage{amsmath, amssymb}
\usepackage{ulem}
\usepackage{mathptmx}
\usepackage{ctex}
\usepackage{tcolorbox}
\usepackage{epigraph}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{multicol}
\setkeys{Gin}{width=0.75\textwidth}
\usepackage{listings}
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma}
\usepackage{tikz}
\usepackage{pifont}
\usepackage{threeparttable}
\usepackage{tabularx}
% \usepackage{algorithm}
\usepackage[lined,boxed,ruled]{algorithm2e}
\usepackage{bm}
% 在part页添加内容
\makeatletter
\let\old@endpart\@endpart
\renewcommand\@endpart[1][]{%
\begin{quote}#1\end{quote}%
\old@endpart}
\makeatother
\newcommand\tips[1]{\textcolor{green!50!black}{#1}}
\newcommand\notes[1]{\textcolor{blue!50!black}{#1}}
\newcommand\important[1]{\textcolor{red!90!black}{#1}}
\newcommand\warning[1]{\textcolor{orange!90!black}{#1}}
\newcommand\figures[2]{
\begin{figure}
\centering
\includegraphics{../img/#1.png}
\caption{#2}
\label{#1}
\end{figure}
}
\usepackage{enumitem}
% 去掉enumerate、itemize、description中的间隙
\setlist{noitemsep, topsep=0pt}
\tcbuselibrary{breakable}
\tcbset{breakable}
% \newtcblisting[auto counter, number within =chapter]{py}[1]{listing engine=minted,
% minted style=colorful,
% minted language=python,
% minted options={breaklines,autogobble,linenos,numbersep=3mm},
% colback=red!5!white,colframe=orange!50!blue,listing only, left=5mm,enhanced,
% title=Examples~\thetcbcounter~#1,
% breakable,
% enhanced
% % overlay={
% % \begin{tcbclipinterior}
% % \fill[red!30!white] (frame.south west)
% % rectangle ([xshift=5mm]frame.north west);
% % \end{tcbclipinterior}}
% }
\usepackage[
top=1.23in,
bottom=1in,
right=1in,
left=1in]
{geometry}
\usepackage{hyperref}
% 将引用的chapter改写为Chapter
\usepackage[english]{babel}
\addto\extrasenglish{
\def\chapterautorefname{Chapter}
}
\addto\extrasenglish{
\def\sectionautorefname{Section}
}
\usepackage{orcidlink}
\definecolor{SWJTU}{HTML}{025483}
% 全局取消段前缩进
% \setlength{\parindent}{0pt}
% \setlength{\parskip}{5pt}
\hypersetup{
colorlinks=true,
linkcolor=SWJTU,
filecolor=SWJTU,
urlcolor=SWJTU,
citecolor=SWJTU,
}