-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble.tex
55 lines (54 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
47
48
49
50
51
52
53
54
55
% Enlarge the text area
\usepackage{fullpage}
% ctex enables Chinese fonts
\usepackage[UTF8, heading = false]{ctex}
% Customize CJK Fonts
\usepackage{fontspec}
\setCJKmainfont{Noto Serif CJK SC}
\setCJKmonofont{Noto Sans Mono CJK SC}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
% For Greek letter outside the math environment $...$
\usepackage{upgreek}
% For vector and matrix
\usepackage{physics}
% For Units and Physical Constants
\usepackage{siunitx}
% For includegraphics
\usepackage{graphicx}
% Customize figure path
\graphicspath{{../figures/}}
% Customize the style of enumerate environment
\usepackage{enumitem}
% Centering the caption of a figure or table
\usepackage[justification=centering]{caption}
% Enable subfigures
\usepackage{subcaption}
% Include full PDF pages
\usepackage{pdfpages}
% Indent very first line of a paragraph
\usepackage{indentfirst}
\setlength{\parindent}{2em}
% Customize Linespread
\linespread{1.5}
\usepackage{cite}
\usepackage{pdfsync}
% Affilation
\usepackage{authblk}
% Enable hyperlinks
\usepackage[
colorlinks,
linkcolor=blue,
anchorcolor=yellow,
citecolor=red,
bookmarks=true
bookmarkopen
] {hyperref}
% Constant E
\newcommand*{\ee}{\mathrm{e}}
% Diff operator
\newcommand*{\diff}{\mathop{}\!\mathrm{d}}
% CPP
\newcommand{\CPP}{C\nolinebreak\raisebox{.1ex}{\small ++}}
% C#
\newcommand{\CS}{C\nolinebreak\raisebox{.1ex}{\small \#}}