forked from YimianDai/iNSFC
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpreamble.tex
75 lines (65 loc) · 2.42 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
%# mathematical packages
\usepackage{amsmath,amssymb,amsthm,amscd}
\usepackage{mathtools}
\usepackage{dsfont} % for \mathds{N}
\usepackage{bm} % for mathematical vector
\usepackage[binary-units=true]{siunitx}
\sisetup{table-align-text-post=false, retain-unity-mantissa=false, exponent-product = \cdot}
%# table packages
\usepackage{multirow}
\usepackage{caption}
\usepackage[font=footnotesize]{subcaption}
\usepackage{booktabs} % for \toprule \midrule \bottomrule
\usepackage{blkarray} % environment blockarray
\usepackage{pdflscape}
\usepackage{longtable}
%# graphical packages
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{graphicx}
% reference
\usepackage[hidelinks]{hyperref}
%\usepackage[colorlinks=true, citecolor=blue, linkcolor=blue]{hyperref}
\usepackage[square, numbers, sort&compress]{natbib} % For Reference
\usepackage{varioref} % vref vpageref
\usepackage{cleveref} %
\usepackage{chapterbib} % referece in each chapter
%# list, which is better than itemize enumerate description
\usepackage{paralist} % \asparaitem \compactitem \asparaenum \compactenum
\usepackage{verbatim} % for literal text input
% underlining package
\usepackage[normalem]{ulem}
% Misc packages
\usepackage{fancybox}
\usepackage{eurosym}
\usepackage[running]{lineno}
\usepackage{afterpage}
\usepackage{xspace}
\usepackage{fontspec}
\usepackage{setspace}
%# nomenclature
% a bug in this package: | is not allowed to use
\usepackage[compatible]{nomencl}
\setlength{\nomlabelwidth}{1.8cm}
%# new commands
% Cite mark [1] on the top right
\newcommand{\cites}[1]{\textsuperscript{\cite{#1}}}
\newcommand{\jiacu}[1]{{\bfseries\heiti #1}}
\newcommand{\jiadian}[1]{{\kaishu \dotuline{#1}}}
\newcommand{\dd}{\mathrm{d}} % for differential operator d
\newcommand{\mi}{\mathrm{i}} % for math e
\newcommand{\me}{\mathrm{e}} % for math i
\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\mean}[1]{\left\langle#1\right\rangle}
\newcommand{\pbk}[1]{\left(#1\right)}
\newcommand{\cbk}[1]{\left\lbrace#1\right\rbrace}
\newcommand{\sbk}[1]{\left\lbrack#1\right\rbrack}
\newcommand{\ie}{\textit{i.e.}\@\xspace}
\newcommand{\eg}{\textit{e.g.}\@\xspace}
\newcommand{\D}{\displaystyle} % for math display
%\newcommand{\HE}{\hbox{H\kern-.12em\lower.48ex\hbox{E}}}
\def\leaderfill{\leaders\hbox to 1em{\hss.\hss}\hfill}
%\DeclareMathOperator{\OP}{OP}
\DeclareSIUnit\molar{\mole\per\cubic\metre}
\DeclareSIUnit\Molar{\textsc{M}}