-
Notifications
You must be signed in to change notification settings - Fork 0
/
usepackages.tex
137 lines (118 loc) · 3.55 KB
/
usepackages.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
% page layout
\usepackage[top=2.5cm, bottom=2.5cm, left=2.0cm, right=2.5cm]{geometry}
% appendix
\usepackage{appendix}
%bib format
\usepackage[sort&compress,comma,square,numbers]{natbib}
\usepackage{apalike}
% Long Table and decimal aligned columns
\usepackage{dcolumn}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{morefloats}
\usepackage{makecell}
\usepackage{minibox}
\usepackage{tabularx} %\table
\usepackage{booktabs}% \toprule \midrule \bottomrule
\usepackage{xltabular}
\usepackage{array}
\usepackage{enumitem}
% define color canvas
\usepackage[table]{xcolor}
\usepackage{colortbl}
\definecolor{mygray}{gray}{.9}
\definecolor{mypink}{rgb}{.99,.91,.95}
\definecolor{mycyan}{cmyk}{.3,0,0,0}
% Mathematics support
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amscd}
\usepackage{verbatim}
% algorithms algorithm2e &algopseudocode
\makeatletter
\newif\if@restonecol
\makeatother
\let\algorithm\relax
\let\endalgorithm\relax
\usepackage[boxed,ruled,noline,linesnumbered,commentsnumbered]{algorithm2e}
\usepackage{algpseudocode}
% tikz
\usepackage{tikz}
\usetikzlibrary{bending,intersections,calc,graphs,arrows,arrows.meta,decorations.pathmorphing,backgrounds,positioning,fit,petri,matrix,shapes}
% Text Control
\usepackage{xspace}
\usepackage{textcase}
\usepackage[english]{babel}
% \usepackage[T1]{fontenc}
% \usepackage{txfonts}
% Theorem initialization
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{definition}{Definition}
% Graphics
\usepackage{wasysym}
\usepackage{graphics}
\usepackage{graphicx} % A package to allow insertion of external image files
\DeclareGraphicsExtensions{.pdf, .jpg, .tif, .png, .gif}
\usepackage{wrapfig}
\usepackage{rotating}
% \usepackage{subfigure}
\usepackage{subfig}
\usepackage{epsfig}
\usepackage{overpic}
% text colour
\usepackage{color}
% \PassOptionsToPackage{usenames,dvipsnames,table}{xcolor}
% \usepackage[usenames,dvipsnames]{xcolor}
% ref
\usepackage[colorlinks,linkcolor=black,anchorcolor=red,filecolor=magenta,urlcolor=cyan,citecolor=blue]{hyperref}
\usepackage{nameref}
% bookmarks
\usepackage{setspace}
% code listing
\usepackage{listings}
\lstset{
tabsize=2,
numbers=left,
numberstyle= \tiny,
rulesepcolor=\color{red!20!green!20!blue!20},
keywordstyle=\color{blue!90}\bfseries ,
commentstyle=\color{red!10!green!70}\textit ,
showspaces=false,
showstringspaces=false,
frame=shadowbox,
breaklines=true,
extendedchars=false,
% title=\lstname ,
% morekeywords={*,...} % if you want to add more keywords to the set
}
\usepackage{minted}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&
%% minted usage & compile
% \inputminted[firstline=2, lastline=12]{tex}{titlepage.sty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% new environment setting
% \newmintinline{<lanuage>}{<setting>}
% setting: \newmintinline{cpp}{breakanywhere,breaklines,linenos}
% usage:\cppinline{code}
% \newminted{cpp}{breakanywhere,breaklines,linenos}
% \begin{cppcode}\end{cppcode}
% \newmintedfile{cpp}{breakanywhere,breaklines,linenos}
% \cppfile{file.py}
% compile : use flag -shell-escape for latex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% pdf & title
\usepackage{epstopdf} % epstopdf page: Drivers other than `pdftex' and `luatex' are not supported.
\usepackage{tabu}
\usepackage{wallpaper}
\usepackage[center]{titlesec}
\usepackage{fancyhdr}
\usepackage{pdfpages}
\usepackage{titlesec}
% traditional chinese font
\usepackage{textcomp}
\usepackage{xeCJK,CJKnumb,CJK}
\usepackage{fontspec}