-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
131 lines (123 loc) · 4.74 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
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
\usepackage{standalone}
\usepackage[dvipsnames,svgnames,x11names]{xcolor}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{stmaryrd}
\usepackage{extarrows}
\usepackage{enumerate}
\usepackage{tensor}
\usepackage{physics2}
\usephysicsmodule{ab,xmat}
\usepackage{fixdif}
\newcommand{\dd}{\d}
\usepackage{derivative}
\newcommand{\dv}{\odv}
\newcommand{\pd}[1]{\pdv{}{#1}}
\newcommand{\eval}[1]{#1\big|}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{tikz}
\usepackage{tikz-3dplot}
% \usepackage{tikz-cd}
% \usepackage{quiver}
% ========== Block quiver.sty ========== %
\usepackage{tikz-cd}
% \usepackage{amssymb}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}
\tikzset{curve/.style={settings={#1},to path={(\tikztostart)
.. controls ($(\tikztostart)!\pv{pos}!(\tikztotarget)!\pv{height}!270:(\tikztotarget)$)
and ($(\tikztostart)!1-\pv{pos}!(\tikztotarget)!\pv{height}!270:(\tikztotarget)$)
.. (\tikztotarget)\tikztonodes}},
settings/.code={\tikzset{quiver/.cd,#1}
\def\pv##1{\pgfkeysvalueof{/tikz/quiver/##1}}},
quiver/.cd,pos/.initial=0.35,height/.initial=0}
\tikzset{tail reversed/.code={\pgfsetarrowsstart{tikzcd to}}}
\tikzset{2tail/.code={\pgfsetarrowsstart{Implies[reversed]}}}
\tikzset{2tail reversed/.code={\pgfsetarrowsstart{Implies}}}
\tikzset{no body/.style={/tikz/dash pattern=on 0 off 1mm}}
% =========== End block ========== %
\tikzset{every picture/.style={line width=0.75pt}}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}
\usepackage{cleveref}
% \usepackage[hyperref=true,backend=biber,style=alphabetic,backref=true,url=false]{biblatex}
\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\usepackage[default,amsbb]{fontsetup}
\setmathfont[StylisticSet=1,range=\mathscr]{NewCMMath-Book.otf}
\usepackage{fancyhdr}
\usepackage{import}
\newcommand{\Id}{\mathbb{1}}
\newcommand{\lap}{\increment}
\DeclareMathOperator{\sign}{sign}
\DeclareMathOperator{\dom}{dom}
\DeclareMathOperator{\ran}{ran}
\DeclareMathOperator{\ord}{ord}
\DeclareMathOperator{\Span}{span}
\DeclareMathOperator{\img}{Im}
\DeclareMathOperator{\Ric}{Ric}
\newcommand{\card}{\texttt{\#}}
\newcommand{\ie}{\emph{i.e.}}
\newcommand{\st}{\emph{s.t.}}
\newcommand{\eps}{\varepsilon}
\newcommand{\vphi}{\varphi}
\newcommand{\vthe}{\vartheta}
\newcommand{\II}{I\!I}
\renewcommand{\emptyset}{⌀}
\newcommand{\acts}{\curvearrowright}
\newcommand{\xrr}{\xlongrightarrow}
\newcommand{\lrr}{\longrightarrow}
\newcommand{\lmt}{\longmapsto}
\newcommand{\into}{\hookrightarrow}
\newcommand{\op}{\operatorname}
\let\originalleft\left
\let\originalright\right
\renewcommand{\left}{\mathopen{}\mathclose\bgroup\originalleft}
\renewcommand{\right}{\aftergroup\egroup\originalright}
\theoremstyle{plain}\newtheorem{theorem}{Theorem}
\theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
\theoremstyle{definition}\newtheorem{example}[theorem]{Example}
\theoremstyle{definition}\newtheorem{problem}[theorem]{Problem}
\theoremstyle{plain}\newtheorem{axiom}[theorem]{Axiom}
\theoremstyle{plain}\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{plain}\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{plain}\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{plain}\newtheorem{prop}[theorem]{Proposition}
\theoremstyle{plain}\newtheorem{conjecture}[theorem]{Conjecture}
\theoremstyle{plain}\newtheorem{conj}[theorem]{Conjecture}
\theoremstyle{remark}\newtheorem{notation}[theorem]{Notation}
\theoremstyle{definition}\newtheorem*{question}{Question}
\theoremstyle{definition}\newtheorem*{answer}{Answer}
\theoremstyle{definition}\newtheorem*{goal}{Goal}
\theoremstyle{definition}\newtheorem*{application}{Application}
\theoremstyle{plain}\newtheorem*{exercise}{Exercise}
\theoremstyle{remark}\newtheorem*{remark}{Remark}
\theoremstyle{remark}\newtheorem*{note}{\small{Note}}
\numberwithin{equation}{section}
\numberwithin{theorem}{section}
\numberwithin{figure}{section}
\usepackage{xeCJK}
\setCJKmainfont{FZShuSong-Z01}[BoldFont=FZXiaoBiaoSong-B05,ItalicFont=FZKai-Z03]
\setCJKsansfont{FZXiHeiI-Z08}[BoldFont=FZHei-B01]
\setCJKmonofont{FZFangSong-Z02}
\setCJKfamilyfont{zhsong}{FZShuSong-Z01}[BoldFont=FZXiaoBiaoSong-B05]
\setCJKfamilyfont{zhhei}{FZHei-B01}
\setCJKfamilyfont{zhkai}{FZKai-Z03}
\setCJKfamilyfont{zhfs}{FZFangSong-Z02}
\setCJKfamilyfont{zhli}{FZLiShu-S01}
\setCJKfamilyfont{zhyou}{FZXiYuan-M01}[BoldFont=FZZhunYuan-M02]
\allowdisplaybreaks{}
\newcommand{\isFullBook}[2]{
\ifnum\pdfstrcmp{\FullBook}{True}=0
\ifnum\pdfstrcmp{}{#1}=0\unskip\else#1\fi
\else
\ifnum\pdfstrcmp{}{#2}=0\unskip\else#2\fi
\fi\ignorespaces{}
}