-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon_preamble.tex
153 lines (122 loc) · 4.43 KB
/
common_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
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
147
148
149
150
151
152
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer Presentation
% LaTeX Template
% Version 1.0 (10/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% this file contains common preambles for the notes/articles, etc. (other than beamer)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND THEMES
%----------------------------------------------------------------------------------------
\documentclass[UTF8, 12pt]{article}
\usepackage{graphicx} % Allows including images
\usepackage{pst-func}
\usepackage{float}
\usepackage[justification = centering]{caption}
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
% \usepackage[UTF8]{ctex}
% \usepackage{fontspec}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\usepackage[slantfont,boldfont]{xeCJK}
\usepackage{fontspec}
% set font
\setmainfont[Path = fonts/, BoldFont = timesbd.ttf, ItalicFont= timesi.ttf]{times.ttf}
\setsansfont[Path = fonts/, BoldFont = timesbd.ttf, ItalicFont= timesi.ttf]{times.ttf}
\setCJKmainfont[Path = fonts/, BoldFont = JDLangZhengTi.ttf]{simfang.ttf}
\setCJKsansfont[Path = fonts/, BoldFont = JDLangZhengTi.ttf]{simfang.ttf}
\usepackage{latexsym,amscd,color}
\usepackage{amsmath,amsfonts,amssymb,mathrsfs}
\usepackage{enumerate,euscript}
\usepackage{url,xspace}
\usepackage{tikz-cd}
\usepackage[all,cmtip]{xy}
\usepackage{dashbox}
\usepackage{tikz}
\usetikzlibrary{trees,arrows,decorations.pathmorphing,shapes,backgrounds,positioning,calc,tikzmark}
\usepackage{xcolor}
\usepackage{hyperref}
% \usepackage[cmintegrals,cmbraces]{newtxmath}
% \usepackage{ebgaramond-maths}
\usepackage{datetime2}
\usepackage[ruled,noend]{algorithm2e}
% \usepackage{tcolorbox}
% \newtcolorbox{mybox}[2]{
% arc=0pt,
% boxrule=#2pt,
% colback=#1,
% halign=center,
% }
% \newcommand{\tikzmark}[1]{\tikz[baseline,remember picture] \coordinate (#1) {};}
% \usepackage{natbib} % bibliography package
\usepackage{bibentry} % full citation in the body of the text (turn off natbib if use it)
\nobibliography* % no bib at the end
% https://tex.stackexchange.com/questions/30720/footnote-without-a-marker
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
% \usepackage[hang,flushmargin]{footmisc}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
\newcommand{\fieldc}{\mathbb{C}}
\newcommand{\fieldr}{\mathbb{R}}
\newcommand{\fieldq}{\mathbb{Q}}
\newcommand{\ringz}{\mathbb{Z}}
\newcommand{\fp}[1]{\mathbb{F}_{{#1}}}
\newcommand{\vs}{vector space}
\newcommand{\sheafl}{\mathscr{L}}
\newcommand{\GL}{\operatorname{GL}}
\newcommand{\SL}{\operatorname{SL}}
\newcommand{\gl}{\operatorname{\mathfrak{g}\mathfrak{l}}}
\newcommand{\End}{\operatorname{End}}
\newcommand{\Spec}{\operatorname{Spec}}
\newcommand{\Ind}{\operatorname{Ind}}
\newcommand{\Res}{\operatorname{Res}}
\newcommand{\Hom}{\operatorname{Hom}}
\newcommand{\Irr}{\operatorname{Irr}}
\newcommand{\Inf}{\operatorname{Inf}}
\DeclareMathOperator{\spec}{Spec}
\DeclareMathOperator{\SPEC}{\mathbf{Spec}}
\DeclareMathOperator{\proj}{Proj}
\DeclareMathOperator{\PROJ}{\mathbf{Proj}}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\expectation}{\mathbb{E}}
\newtheorem{thm_cn}{定理}[section]
\newtheorem{prop_cn}[thm_cn]{命题}
\newtheorem{Def_cn}[thm_cn]{定义}
\newtheorem{lem_cn}[thm_cn]{引理}
\newtheorem{conj_cn}[thm_cn]{猜想}
\newtheorem{cor_cn}[thm_cn]{推论}
\newtheorem{remark_cn}[thm_cn]{注记}
\newtheorem{eg_cn}[thm_cn]{例}
\newtheorem{recall_cn}[thm_cn]{回忆}
\newtheorem{question_cn}[thm_cn]{问题}
\newtheorem{observation_cn}[thm_cn]{观察}
\newtheorem{thm}{Theorem}[section]
\newtheorem{prop}[thm]{Proposition}
\newtheorem{Def}[thm]{Definition}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{conj}[thm]{Conjecture}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{remark}[thm]{Remark}
\newtheorem{eg}[thm]{Example}
\newtheorem{recall}[thm]{Recall}
\newtheorem{question}[thm]{Question}
\newtheorem{observation}[thm]{Observation}
\allowdisplaybreaks