-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages.tex
136 lines (101 loc) · 2.24 KB
/
packages.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
%% font encoding.
\usepackage[utf8]{inputenc}
%% Fonts
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{couriers}
%% Bibliography.
\usepackage[bahasa]{babel}
\usepackage{csquotes}
\usepackage[
style=apa
]{biblatex}
\DeclareLanguageMapping{bahasa}{bahasa-apa}
%% Customize chapters.
\usepackage{titlesec}
%% \includegraphics{name}
\usepackage{graphicx}
%% \url{something}
\usepackage{url}
%% \multirow{package}{width}{text}
\usepackage{multirow}
%% \cellcolor
\usepackage[table]{xcolor}
%% \caption{title}
\usepackage{caption}
\captionsetup{format=hang}
\usepackage{subcaption}
%% \forloop
\usepackage{forloop}
%% fix underfull on footnote with URL.
\usepackage{ragged2e}
%% source code listing
\usepackage{listings}
\lstdefinelanguage{go}
{
morekeywords={package,import,const,func,for,type,var,struct}
, sensitive=true
, morecomment=[l]{//}
, morecomment=[s]{/*}{*/}
}
\lstdefinestyle{go}{%
language=go
, keywordstyle=\color{black}\bfseries
, commentstyle=\color{gray}
, breakatwhitespace=true
, lineskip={-2.5pt}
}
\lstdefinestyle{data}{%
breakatwhitespace=false
, breakautoindent=false
, literate={\,}{}{0\discretionary{,}{}{,}},
}
%% \printindex
\usepackage{makeidx}
%% table of content
\usepackage{tocloft}
%% text emphasis, including strikeout.
\usepackage[normalem]{ulem}
%% mathematics
\usepackage{mathtools}
%% arithmetic
\usepackage{calc}
%% algorithm
\usepackage{algorithm}
\usepackage{algpseudocode}
\makeatletter
\renewcommand{\ALG@name}{Algoritma}
\makeatother
%% multiple columns
\usepackage{multicol}
%% Package for changin page margin
\usepackage[a4paper]{geometry}
%%
\usepackage{parskip}
%% Package for reading CSV to database.
\usepackage{datatool}
%% Package for scatter and line plot.
\usepackage{dataplot}
%% Long table
\usepackage{longtable}
%% Tikz
\usepackage{tikz}
\usetikzlibrary{backgrounds, shapes.geometric, positioning, patterns, external}
\tikzexternalize
\usepackage{pgfplots}
%% Font: MnSymbol
\usepackage{MnSymbol}
%% Compact list.
\usepackage{paralist}
%% Line spacing
\usepackage{setspace}
%% For changing internal packages.
\usepackage{xpatch}
%% Create clickable TOC
\usepackage[hidelinks]{hyperref}
\hypersetup{
colorlinks
, allcolors=black
}
%% Package to remove space between item
\usepackage{enumitem}