-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlintang.tex
356 lines (299 loc) · 8.77 KB
/
lintang.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
\documentclass{article}
\title{This is my LaTeX tutorial} % judul
\author{Lintang Wisesa} % author
\date{6 September 2020} % tanggal
% import packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{setspace}
\begin{document}
% set spacing using "setspace" package
\doublespacing
% create table of content
\tableofcontents
\newpage
% create list of figures & tables
\listoffigures
\listoftables
\pagenumbering{gobble}
\maketitle
Hello World
\newpage
\pagenumbering{arabic}
\section{Ini Section Pertama}
Lorem ipsum bla bla bla
\subsection{Ini Subsection Pertama}
Lorem ipsum bla bla bla
\subsubsection{Ini Subsubsection Pertama}
Lorem ipsum bla bla bla
\section{Ini Section Kedua}
\paragraph{Lorem}
ipsum bla bla bla
\subparagraph{Lorem}
ipsum bla bla bla
% Math Equation
\section{Equation}
Lorem ipsum x + y = 24 dolor $x + y = 24$ sit amet, consectetur adipiscing elit. Phasellus dignissim luctus nibh ut finibus. Praesent ultricies congue placerat. Suspendisse sagittis augue id est fermentum, in condimentum orci interdum. Vestibulum bibendum auctor neque quis consequat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec at ex ut nibh interdum mollis mattis vitae nulla. Fusce vel tincidunt ligula. Fusce vehicula enim risus, eu aliquet purus molestie non. Cras gravida bibendum tincidunt. Proin vitae est in mauris finibus bibendum. Nulla ante est, elementum at mauris sed, imperdiet pretium arcu. Fusce feugiat, massa non facilisis venenatis, mauris urna pellentesque velit, nec tempus tellus eros at elit. Donec dictum orci eu purus commodo eleifend.
\begin{equation}
2x + y = 12
\end{equation}
\begin{equation*}
3a + 2c = 12
\end{equation*}
\begin{align*}
2s + 3d = 25\\
z - 8a = 28
\end{align*}
\begin{equation*}
a + b = c
\end{equation*}
\begin{equation*}
3a = 20
\end{equation*}
\begin{align*}
a + b &= c\\
3a &= 20
\end{align*}
% Symbols
\newpage
\section{Symbol}
\subsection{Text Formatting}
{\tiny Hello} {\small Hello}
{\normalsize Hello} Hello
{\large Hello} {\huge Hello}
\textbf{World}
\textit{World}
\texttt{World}
\underline{World}
\textrm{World}
\LaTeX
Inline $x + y = 12$
\begin{equation}
x - y = 0
\end{equation}
\begin{align}
a + b = c
\end{align}
$$a + c = 12$$
$2 Mangga + 3 Apel = Rp 15.000$
$2 \: \textrm{Mangga} + 3 \: \textrm{Apel}
= \textrm{Rp.} 15.000$
$Aa123 \: \mathrm{Aa123} \:
\mathit{Aa123} \: \mathnormal{Aa123}$
\subsection{Math Symbol}
$\textrm{Accent} \: x, \: x^2, \: x_n,
\bar{x}, \: \hat{x}, \: \vec{x}, \:
\dot{x}, \: \ddot{x}$
$\textrm{Operator} \: + \: - \: \pm
\: * \: \ast \: \times \: \cdot \:
/ \: \div \: \frac{a}{b} \: ^a/_b$
$\textrm{Relation} \: = \: \equiv \:
\sim \: \simeq \: \approx \: > \: < \:
\geq \: \leq \: \neq \: \cup \: \cap \:
\in \: \notin \: \forall \: \exists$
$\textrm{Greek} \: \alpha \: \beta \:
\gamma \: \Gamma \: \delta \: \Delta \:
\epsilon \: \zeta \: \eta \: \theta \:
\Theta \: \lambda \: \mu \: \pi \: \rho$
$\textrm{Arrows} \: \leftarrow \:
\Leftarrow \: \longleftarrow \: \rightarrow
\: \Rightarrow \: \longrightarrow \:
\leftrightarrow \: \Leftrightarrow \:
\longleftrightarrow \: \uparrow \: \Uparrow
\: \downarrow \: \Downarrow$
$\textrm{Others} \: \infty \: \nabla
\: \angle \: \angle{A} \: \diamondsuit
\: \heartsuit \: \clubsuit \:
\spadesuit$
$\textrm{Matrix} \\ \\
\begin{matrix}
1 & 0\\
0 & 1
\end{matrix}
\\
\begin{bmatrix}
1 & 0\\
0 & 1
\end{bmatrix}
\\
\begin{pmatrix}
1 & 0\\
0 & 1
\end{pmatrix}
\\
\begin{vmatrix}
1 & 0\\
0 & 1
\end{vmatrix}
\\
\det{
\begin{vmatrix}
1 & 0\\
0 & 1
\end{vmatrix}
}
$
% Math Function
\newpage
\section{Functions}
$\textrm{Roots} \: \: \sqrt{x^2} \: \:
\sqrt[3]{x^3}
$
$\textrm{Trigonometri} \: \:
\sin(\theta) \: \:
\cos(\theta) \: \:
\tan(\theta) \: \:
\sec(\theta) \: \:
\csc(\theta) \: \:
\cot(\theta) \: \:
$
$\textrm{Limit} \: \:
\lim \textrm{e}^{-x} \: \:
\lim\limits_{x \to \infty} \textrm{e}^{-x}
$
$\textrm{Logarithmic} \: \:
\log{x} \: \:
^{10} \log{x} \: \:
^{2} \log {4} \: \:
^{\textrm{e}} \log {x} \: \:
\ln {x}
$
$\textrm{Sums} \: \:
\sum x \: \:
\sum_{i=1}^{10} t_i
$
$\textrm{Derivative} \: \:
\frac{dx}{dt} \: \:
\frac{\partial x}{\partial t}
$
$\textrm{Integral} \: \:
\int f(x) dx \: \:
\int_a^b f(x) dx \: \:
\iint f(x, y) dx dy \: \:
\iiint f(x, y, z) dx dy dz \: \:
$
% List
\section{List}
\subsection{Unordered List}
\begin{itemize}
\item[+] Apel
\begin{itemize}
\item[*] Belimbing Wuluh
\item Beri
\item Bengkoang
\end{itemize}
\item[$\times$] Ceri
\end{itemize}
\subsection{Ordered List}
\begin{enumerate}
\item Andi
\begin{enumerate}
\item[$\alpha$] Budi
\item[$\beta$] Bambang
\item[$\gamma$] Bebi
\end{enumerate}
\item Caca
\end{enumerate}
% Images
\newpage
\section{Images}
\begin{figure}[h!]
% \begin{center}
\centering
% h:here !:force t:top b:bottom p:page
\includegraphics[width=0.5\linewidth]{A.png}
\caption{Captain America}
\label{fig:capt}
% \end{center}
\end{figure}
Gambar \ref{fig:capt} menampilkan foto Captain America.
\begin{figure}[h!]
\centering
\begin{subfigure}[h!]{0.4\linewidth}
\includegraphics[width=\linewidth]{B.png}
\caption{Iron Man}
\end{subfigure}
\begin{subfigure}[h!]{0.4\linewidth}
\includegraphics[width=\linewidth]{C.png}
\caption{Batman}
\end{subfigure}
\caption{Multi Figure}
\label{fig:multi2}
\end{figure}
\begin{figure}[h!]
\centering
\begin{subfigure}[h!]{0.3\linewidth}
\includegraphics[width=\linewidth]{B.png}
\caption{Iron Man}
\end{subfigure}
\begin{subfigure}[h!]{0.3\linewidth}
\includegraphics[width=\linewidth]{C.png}
\caption{Batman}
\end{subfigure}
\begin{subfigure}[h!]{0.3\linewidth}
\includegraphics[width=\linewidth]{D.png}
\caption{Spiderman}
\end{subfigure}
\caption{Multi Figure 3}
\label{fig:multi3}
\end{figure}
% Table
\newpage
\section{Tables}
\begin{table}[h!]
\centering
\begin{tabular}{|l|c|r|}
% alignment l:left c:center r:right
\hline
\textbf{No} & \textbf{Nama} & \textbf{Usia} \\
\hline
1 & Andi & 21\\
2 & Budi & 22\\
3 & Caca & 23\\
\hline
\end{tabular}
\caption{Ini tabelku}
\label{tab:tabelku}
\end{table}
Sesuai pada tabel \ref{tab:tabelku}, maka diketahui usia Andi adalah $21$.
\begin{table}[h!]
\centering
\begin{tabular}{|l|c|r|}
% alignment value = l:left c:center r:right
\toprule
\textbf{No} & \textbf{Nama} & \textbf{Usia} \\
\midrule
1 & Andi & 21\\
2 & Budi & 22\\
3 & Caca & 23\\
\bottomrule
\end{tabular}
\caption{Ini tabelku}
\label{tab:tabeldua}
\end{table}
% Sideways table using "rotating" package
\begin{sidewaystable}[p!]
\centering
\begin{tabular}{|l|c|r|}
% alignment l:left c:center r:right
\toprule
\textbf{No} & \textbf{Nama} & \textbf{Usia} \\
\midrule
1 & Andi & 21\\
2 & Budi & 22\\
3 & Caca & 23\\
\bottomrule
\end{tabular}
\caption{Ini tabelku}
\label{tab:tabel3}
\end{sidewaystable}
\newpage
Matematika itu asyik \cite{ARTICLE:1} tes 1 2 3 \cite{BOOK:1} Halo halo Bandung \cite{BOOK:2}
% create bibliography
\bibliography{pustaka}
\bibliographystyle{ieeetr}
% IEEE Transaction: Institute of Electrical & Electronics Engineering
\end{document}