-
Notifications
You must be signed in to change notification settings - Fork 18
/
preamble.tex
executable file
·46 lines (45 loc) · 1.35 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
\PassOptionsToPackage{list=true}{subcaption}
\usepackage[heading=true,fontset=fandol,UTF8]{ctex}
\usepackage[nottoc]{tocbibind}
\usepackage[toc,lof,lot]{multitoc}
\usepackage{makeidx}
\makeindex
\usepackage[scale=0.85,semibold]{sourcecodepro}
\usepackage[angle=90,text=\textcopyright 黄湘云,color=gray,pos={0.5in,1.5in},scale=0.25]{draftwatermark}
% https://github.com/CTeX-org/ctex-kit/issues/331
\RecustomVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\},formatcom=\xeCJKVerbAddon}
\usepackage{bookmark}
\bookmarksetup{open,numbered,
depth=2, % 设置PDF的书签级别,2显示到subsection,3显示到subsubsection
addtohook={ %
\ifnum\bookmarkget{level}=0 % chapter
\bookmarksetup{bold} %
\fi
\ifnum\bookmarkget{level}=-1 % part
\bookmarksetup{color=orange,bold} %
\fi
}
}
\usepackage{animate}
\usepackage{bm} % \bm
\usepackage{mathrsfs}
% soul's \st doesn't work for CJK
\usepackage{xeCJKfntef}
\ifdefined\st
\renewcommand{\st}[1]{\CJKsout{#1}}
\else
\newcommand{\st}[1]{\CJKsout{#1}}
\fi
% http://tex.stackexchange.com/questions/198140/
% \usepackage[toc,xindy]{glossaries} % 术语表
% \makenoidxglossaries
%
% % 词汇表
% \newglossaryentry{LM}
% {
% name=线性模型,
% description={Linear Models},
% sort={Linear Models},
% }
% \newacronym{gls}{GLS}{Generalized Least Squares}
% \newacronym{ls}{LS}{Least Squares}