-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tex
57 lines (50 loc) · 2.2 KB
/
config.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
\usepackage{amsmath, amssymb, amsthm, commath, diagbox, xparse, mathtools,scalerel, thmtools}
\usepackage[inline]{enumitem}
\usepackage{makeidx, imakeidx}
\usepackage{etoolbox}
\usepackage{tikz, graphicx, float, subcaption, pgfplots}
\usepackage[nonumberlist]{glossaries}
\usepackage{hyperref, subfiles} % Best loaded last in the preamble
\pgfplotsset{compat=1.18}
\newcommand{\term}[1]{\textbf{#1} \index{#1}}
\newcommand{\C}{\ensuremath{\mathbf{C}}}
\newcommand{\N}{\ensuremath{\mathbf{N}}}
\newcommand{\Q}{\ensuremath{\mathbf{Q}}}
\newcommand{\R}{\ensuremath{\mathbf{R}}}
\newcommand{\Z}{\ensuremath{\mathbf{Z}}}
\newcommand{\sequence}[2][\ensuremath{+\infty}]{\left<#2\right>^{#1}}
\newcommand{\txtas}{\text{a.s.}}
\DeclareMathOperator*{\bigplus}{\scalerel*{+}{\sum}}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\probP}{\mathrm{P}}
\DeclareMathOperator{\E}{E}
\DeclareMathOperator{\Var}{var}
\DeclareMathOperator{\indicator}{1}
\let\oldemptyset\emptyset
\let\emptyset\varnothing
\setlist[enumerate,1]{label*=(\roman*), itemjoin=。, itemjoin*={;和}}
\declaretheorem[name=定理,numberwithin=section,refname=定理]{theorem}
\declaretheorem[name=引理,numberwithin=section,sibling=theorem]{lemma}
\declaretheorem[name=定义,numberwithin=sectio,sibling=theorem]{definition}
\declaretheorem[name=注,numbered=no,style=remark]{remark}
\declaretheorem[name=断言,numbered=no,style=plain]{claim}
\AtBeginEnvironment{theorem}{
\setlist[enumerate]{label={(\roman*)}, itemjoin=;, itemjoin*={;和}}
}
\AtBeginEnvironment{lemma}{
\setlist[enumerate]{label={(\roman*)}, itemjoin=;, itemjoin*={;和}}
}
\AtBeginEnvironment{proof}{
\setlist[enumerate]{label={(\roman*)}}
}
\declaretheorem[name=例,numberwithin=section,sibling=theorem,style=definition]{example}
\numberwithin{equation}{section}
\newlist{exercise}{enumerate}{3}
\setlist[exercise,2]{label={(\roman*)}, itemjoin=;}
\setlist[exercise,3]{label={(\alph*)}}
\setlist[exercise,1]{label=\textbf{习题\thesection.\arabic*},ref=\bf 习题\thesection.\arabic*}
\renewcommand{\thmref}[1]{定理~\ref{#1}}
\renewcommand{\exref}[1]{例~\ref{#1}}
\renewcommand{\defnref}[1]{定义~\ref{#1}}
\renewcommand{\secref}[1]{\ref{#1}~节}
\renewcommand{\lemref}[1]{引理~\ref{#1}}