-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetting.tex
139 lines (133 loc) · 4.77 KB
/
setting.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
%------------------------------------------------------------------------------
% Ctex
%------------------------------------------------------------------------------
\newcommand{\paragraphnamebox}[1]{\makebox[2em][l]{#1}}
\newcommand{\subparagraphnamebox}[1]{\makebox[2em][l]{#1}}
\setcounter{secnumdepth}{7}
\ctexset{
section = {
format = \Large\bfseries\raggedright
},
paragraph = {
name = {(,)},
number = \arabic{paragraph},
numbering = true,
aftername = {},
nameformat = \paragraphnamebox
},
subparagraph = {
name = {(,)},
number = \roman{subparagraph},
numbering = true,
beforeskip = 0pt,
aftername = {},
nameformat = \subparagraphnamebox
}
}
%------------------------------------------------------------------------------
% Unicode math
%------------------------------------------------------------------------------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{unicode-math}
\setmainfont{XITS}
\setmathfont[bold-style = ISO]{XITS Math}
%------------------------------------------------------------------------------
% Minted
%------------------------------------------------------------------------------
\usepackage{minted}
\setminted{
autogobble = true,
linenos=true,
frame=lines,
framesep=2mm,
fontsize=\scriptsize,
breaklines=true
}
\setminted[py]{
python3=true,
}
\setmintedinline{
fontsize=\normalsize
}
%------------------------------------------------------------------------------
% Add new functions
%------------------------------------------------------------------------------
\usepackage{graphicx}
\usepackage{subfig}
% \usepackage{tikz}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcolumntype{Z}{>{\raggedleft\arraybackslash}X}
\usepackage{ltxtable}
\usepackage{makecell}
% \renewcommand{\cellalign}{cl}
\renewcommand{\theadfont}{\bfseries}
% 正态总体均值和方差的区间估计表
\newcommand{\mylongtablecell}[1]{\makecell[{{p{0.35\linewidth}}}]{{#1}}}
% 正态总体假设检验表
\newcommand{\denydomaincell}[1]{\parbox{\hsize minus 0.01em}{{#1}}}
\newcommand{\teststatiscell}[1]{\parbox{\hsize minus 0.01em}{{#1}}}
% 可线性化的非线性回归表
\newcommand{\nonlineartype}[1]{\makecell[{{p{0.2\textwidth}}}]{\centering {#1}}}
\newcommand{\nonlinearexp}[1]{\makecell[{{p{0.15\textwidth}}}]{{#1}}}
\newcommand{\nonlineartrans}[1]{\makecell[{{p{0.4\textwidth}}}]{{#1}}}
\newcommand{\nonlinearlinearexp}[1]{\makecell[{{p{0.15\textwidth}}}]{{#1}}}
%
\newcolumntype{D}{>{\displaystyle\arraybackslash}l}
%------------------------------------------------------------------------------
% Define new macros
%------------------------------------------------------------------------------
\newcommand{\diff}{\symrm{d }}
\newcommand{\ds}{\displaystyle}
\newcommand{\cpi}{\symrm{\pi}}
\newcommand{\trans}{^\symrm{T}}
\newcommand{\highlight}[1]{\textcolor{blue}{\textbf{\kaishu{#1}}}}
\newcommand{\done}{\ooalign{$\square$ \cr \raisebox{3pt}{\scriptsize{$√$}}}}
\newcommand{\undone}{\ooalign{$\square$ \cr \raisebox{3pt}{}}}
\newcommand{\Cov}{\mathrm{Cov}}
\newcommand{\Var}{\mathrm{Var}}
\newcommand{\ddfrac}[2]{\displaystyle{\frac{\displaystyle{#1}}{\displaystyle{#2}}}}
\newlength{\subparitemindent}
\newlength{\paritemindent}
\setlength{\paritemindent}{3em}
\setlength{\subparitemindent}{5em}
\newenvironment{paritemize}{
\begin{itemize}[leftmargin=\paritemindent]
}{
\end{itemize}
\hangafter=1\setlength{\hangindent}{2em}
}
\newenvironment{subparitemize}{
\begin{itemize}[leftmargin=\subparitemindent]
}{
\end{itemize}
\hangafter=1\setlength{\hangindent}{4em}
}
\newcommand{\hparagraph}[1]{\paragraph{#1} \hangafter=1\setlength{\hangindent}{2em}}
\newcommand{\hsubparagraph}[1]{\subparagraph{#1} \hangafter=1\setlength{\hangindent}{4em}}
\newcommand{\hsubparagraphcontinue}{\setlength{\leftskip}{3em}\hangafter=1\setlength{\hangindent}{1em}}
\newcommand{\hfrac}[2]{\left. {#1} \middle/ {#2} \right.}
%------------------------------------------------------------------------------
% Format setting
%------------------------------------------------------------------------------
\usepackage[left=1.91cm, right=1.91cm, top=1.91cm, bottom=1.91cm]{geometry}
\hypersetup{colorlinks=true,bookmarksnumbered=true}
% \allowdisplaybreaks
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\usepackage[inline]{enumitem}
\setlist{topsep=0pt,partopsep=0pt,parsep=0pt,itemsep=0pt,itemjoin=\quad\quad}
%% 脚注每页重新标号
\usepackage[perpage]{footmisc}
% \setcounter{secnumdepth}{3}
% 积分号样式
\usepackage[fourier]{varint}
% 表格行距
\renewcommand\arraystretch{1.3}
% 题注格式
\usepackage{caption}
\captionsetup{labelfont=bf,labelsep=quad}