forked from muhdavi-pnl/NET17237
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lab_notes.sty
291 lines (269 loc) · 9.45 KB
/
lab_notes.sty
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
%%%%%%%%% MIKHAIL KLASSEN - RESEARCH DIARY HEADER %%%%%%%%%%%%
%% @author: Mikhail Klassen %%
%% @contact: [email protected] %%
%% @author: Sarah Mount %%
%% @contact: [email protected] %%
%% @revised: 27 / May / 2014 %%
%% @license: Creative Commons Share Alike 3.0 %%
%% http://creativecommons.org/licenses/by-sa/3.0/ %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{lab_notes}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bigdelim}
\usepackage{booktabs}
\usepackage{epsfig}
\usepackage{extract}
\usepackage{fancyhdr}
\usepackage{framed}
\usepackage{graphicx}
\graphicspath{{gambar/}}
\usepackage{multibib}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{textcomp}
\usepackage{url}
\usepackage{wrapfig}
\usepackage{comment}
\usepackage{multicol}
% Define a custom color set.
\usepackage{xcolor}
\definecolor{tenPercentGrey}{gray}{0.9}
%\usepackage{caption}
%\DeclareCaptionFont{white}{\color{white}}
%\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
%\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
% Move from main file for format hyperref
\usepackage{hyperref}
\hypersetup{
pdffitwindow=false, % window fit to page
pdfstartview={Fit}, % fits width of page to window
pdftitle={Practice Big Data}, % document title
pdfauthor={Muhammad Davi}, % author name
pdfsubject={}, % document topic(s)
pdfnewwindow=true, % links in new window
colorlinks=true, % coloured links, not boxed
linkcolor=DarkScarletRed, % colour of internal links
citecolor=DarkChameleon, % colour of links to bibliography
filecolor=DarkPlum, % colour of file links
urlcolor=DarkSkyBlue % colour of external links
}
% COLORS (Tango) Mostly by Philip Bunge
% http://pbunge.crimson.ch/
\definecolor{White}{gray}{0.9}
\definecolor{Black}{gray}{0.0}
\definecolor{LightButter}{rgb}{0.98,0.91,0.31}
\definecolor{LightOrange}{rgb}{0.98,0.68,0.24}
\definecolor{LightChocolate}{rgb}{0.91,0.72,0.43}
\definecolor{LightChameleon}{rgb}{0.54,0.88,0.20}
\definecolor{LightSkyBlue}{rgb}{0.45,0.62,0.81}
\definecolor{LightPlum}{rgb}{0.68,0.50,0.66}
\definecolor{LightScarletRed}{rgb}{0.93,0.16,0.16}
\definecolor{Butter}{rgb}{0.93,0.86,0.25}
\definecolor{Orange}{rgb}{0.96,0.47,0.00}
\definecolor{Chocolate}{rgb}{0.75,0.49,0.07}
\definecolor{Chameleon}{rgb}{0.45,0.82,0.09}
\definecolor{SkyBlue}{rgb}{0.20,0.39,0.64}
\definecolor{Plum}{rgb}{0.46,0.31,0.48}
\definecolor{ScarletRed}{rgb}{0.80,0.00,0.00}
\definecolor{DarkButter}{rgb}{0.77,0.62,0.00}
\definecolor{DarkOrange}{rgb}{0.80,0.36,0.00}
\definecolor{DarkChocolate}{rgb}{0.56,0.35,0.01}
\definecolor{DarkChameleon}{rgb}{0.30,0.60,0.02}
\definecolor{DarkSkyBlue}{rgb}{0.12,0.29,0.53}
\definecolor{DarkPlum}{rgb}{0.36,0.21,0.40}
\definecolor{DarkScarletRed}{rgb}{0.64,0.00,0.00}
\definecolor{Aluminium1}{rgb}{0.93,0.93,0.92}
\definecolor{Aluminium2}{rgb}{0.82,0.84,0.81}
\definecolor{Aluminium3}{rgb}{0.73,0.74,0.71}
\definecolor{Aluminium4}{rgb}{0.53,0.54,0.52}
\definecolor{Aluminium5}{rgb}{0.33,0.34,0.32}
\definecolor{Aluminium6}{rgb}{0.18,0.20,0.21}
%%% LISTINGS
\usepackage{listings}
% Define a custom color
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{gray}{rgb}{0.4,0.4,0.4}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}
\definecolor{maroon}{rgb}{0.5,0,0}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{terminal}{rgb}{0.48,0.1,0.36}
% Define a custom style
\lstdefinestyle{myStyle}{
aboveskip=\bigskipamount{},
belowskip=\medskipamount{},
backgroundcolor=\color{tenPercentGrey},
basicstyle=\ttfamily\scriptsize,
breakatwhitespace=false,
breaklines=true,
postbreak=\mbox{\textcolor{Black}{$\hookrightarrow$}\space},
captionpos=b,
frame=tb,
commentstyle=\color{codegreen}\itshape\footnotesize{},
stringstyle=\color{codepurple},
identifierstyle=\color{Black},
lineskip=\smallskipamount{},
rulecolor=\color{Black!30},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
numbers=left,
numbersep=5pt,
keepspaces=true,
showspaces=false,
showstringspaces=false,
showtabs=false,
showspaces=false,
showstringspaces=false,
showtabs=false,
stepnumber=1,
tabsize=4,
% prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
}
% Use \lstset to make myStyle the global default
\lstset{style=myStyle}
%\lstset{
% backgroundcolor=\color{tenPercentGrey}, %
% basicstyle=\color{Black}\ttfamily{}\footnotesize, %
% keywordstyle=[1]\color{DarkSkyBlue}, %
% keywordstyle=[2]\color{DarkScarletRed}, %
% keywordstyle=[3]\bfseries{}, %
% keywordstyle=[4]\color{DarkPlum}, %
% keywordstyle=[5]\color{SkyBlue}, %
% commentstyle=\color{Aluminium4}, %
% stringstyle=\color{Chocolate}, %
% emphstyle=\color{Black}, %
% numbers=left, %
% stepnumber=1, %
% frame=tb, %
% captionpos=b, %
% lineskip=\smallskipamount{}, %
% aboveskip=\bigskipamount{}, %
% belowskip=\medskipamount{}, %
% commentstyle=\itshape\small{}, %
% breaklines=true, %
% rulecolor=\color{Black!30}, %
% showspaces=false, %
% showstringspaces=false, %
% showtabs=false, %
%Formatting
%basicstyle=\scriptsize,
%sensitive=true,
%showstringspaces=false,
%numbers=left,
%numberstyle=\tiny,
%numbersep=3pt,
%extendedchars=true,
%xleftmargin=2em,
%lineskip=1pt,
%breaklines,
%captionpos=t,
%Coloring
%backgroundcolor=\color{lightgray},
%morekeywords={BooleanExpression},
%alsoletter={:,,/,?},
%morestring=[b]{"},
%morecomment=[s]{<!--}{-->},keywordstyle=\color{forestGreen},
%identifierstyle=\color{blue}\ttfamily,
%stringstyle=\color{orangeRed}\ttfamily,
%commentstyle=\color{forestGreen}\ttfamily
%}
\lstdefinelanguage{XML}
{
morestring=[b]",
morestring=[s]{>}{<},
morecomment=[s]{<?}{?>},
stringstyle=\color{black},
identifierstyle=\color{darkblue},
keywordstyle=\color{cyan},
morekeywords={xmlns,version,type}% list your attributes here
}
\lstdefinelanguage{CSV}
{
basicstyle=\ttfamily,
morestring=[s]{"}{"},
morecomment=[s]{?}{?},
morecomment=[s]{!--}{--},
commentstyle=\color{darkgreen},
moredelim=[s][\color{darkgreen}]{,}{,},
stringstyle=\color{blue},
identifierstyle=\color{maroon}
}
\lstdefinelanguage{Terminal}
{
backgroundcolor=\color{terminal},
basicstyle=\ttfamily\bfseries\footnotesize,
escapechar={|},
identifierstyle=\color{white},
numbers=none,
stringstyle=\color{white},
columns=fullflexible,
frame=single,
breaklines=true,
postbreak=\mbox{\textcolor{white}{$\hookrightarrow$}\space},
literate=*{=}{{\textcolor{white}{=}}}1 {.}{{\textcolor{white}{.}}}1 {,}{{\textcolor{white}{,}}}1 {(}{{\textcolor{white}{(}}}1 {)}{{\textcolor{white}{)}}}1 {0}{{{\color{white}0}}}1 {1}{{{\color{white}1}}}1 {2}{{{\color{white}2}}}1 {3}{{{\color{white}3}}}1 {4}{{{\color{white}4}}}1 {5}{{{\color{white}5}}}1 {6}{{{\color{white}6}}}1 {7}{{{\color{white}7}}}1 {8}{{{\color{white}8}}}1 {9}{{{\color{white}9}}}1 {[}{{{\color{white}[}}}1 {]}{{{\color{white}]}}}1 {'}{{{\color{white}'}}}1 {:}{{{\color{white}:}}}1 {"}{{{\color{white}"}}}1 {-}{{{\color{white}-}}}1 {/}{{{\color{white}/}}}1 {>}{{{\color{white}>}}}1 {+}{{{\color{white}+}}}1 {|}{{{\color{white}|}}}1,
}
%%%%%%%%%%%% ASTRONOMY %%%%%%%%%%%%%%%%
% Code from Research Diary Template by Mikhail Klassen
\newcommand{\Msun}{M_\odot}
\newcommand{\Lsun}{L_\odot}
\newcommand{\Rsun}{R_\odot}
\newcommand{\Mearth}{M_\oplus}
\newcommand{\Learth}{L_\oplus}
\newcommand{\Rearth}{R_\oplus}
%%%%%%%%%%% MATHEMATICS %%%%%%%%%%%%%%%
% Code from Research Diary Template by Mikhail Klassen
\newcommand{\grad}{\nabla}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\bea}{\begin{eqnarray}}
\newcommand{\eea}{\end{eqnarray}}
\newcommand{\eqnarr}{\begin{eqnarray}}
\newcommand{\eqnend}{\end{eqnarray}}
\newcommand{\deriv}[2]{\frac{d #1}{d #2}}
\newcommand{\bigO}{\mathcal{O}}
\DeclareMathSymbol{\umu}{\mathalpha}{operators}{0}
%%%%%%%%%%% CHANGE NAME OF TOC %%%%%%%%%%%%%%%
\renewcommand{\tablename}{Tabel}
\renewcommand{\figurename}{Gambar}
\renewcommand{\refname}{Referensi}
%%%%%%%%%%% HEADER / FOOTER %%%%%%%%%%%
\pagestyle{fancy}
\setlength\parindent{0in}
\setlength\parskip{0.1in}
\setlength\headheight{15pt}
\lhead{\textsc{Practice Big Data}}
\chead{\includegraphics[width=0.1\textwidth]{logo-pnl.png}}
\rhead{\workingDate}
\lfoot{\textsc{\userName}}
\cfoot{~~\textit{Tanggal Update: \today}}
\rfoot{\textsc{\thepage}}
\newcommand{\userName}{Muhammad Davi}
\newcommand{\workingDate}{\textsc{September $|$ 2023}}
\newcommand{\institution}{Politeknik Negeri Lhokseumawe}
%%%%%%%%%%% NEW ENVIRONMENTS %%%%%%%%%%
\newenvironment{projects}%
{\section*{Peserta}}%
{\vspace{2mm}\hrule\hspace{\stretch{1}}}
\newenvironment{maybe}%
{\section*{Peraturan \& Ketentuan}}%
{\vspace{2mm}\hrule\hspace{\stretch{1}}}
%%%%%%%%%%% NEW COMMANDS %%%%%%%%%%%%%%
\newcommand{\univlogo}{%
\noindent
\begin{wrapfigure}{r}{0.3\textwidth}
\vspace{-33pt}
\begin{center}
\includegraphics[width=0.3\textwidth]{logo-pnl.png}
\end{center}
\vspace{-105pt}
\end{wrapfigure}
}
\newcommand{\newday}[1]{%
\section*{#1}%
}