forked from Freheims/UiB-LaTeX-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuibstyle.sty
66 lines (56 loc) · 1.95 KB
/
uibstyle.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
\usepackage[utf8]{inputenc} % This defines the font-encoding you prefer to use
\usepackage[english]{babel}
\usepackage{fourier}
\pagestyle{headings}
\usepackage{marvosym}
\usepackage[pdftex]{graphicx}
\usepackage[margin=2.5cm, twoside]{geometry}
\usepackage{rotating}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{url}
\usepackage{todonotes}
\usepackage[bottom]{footmisc}
\usepackage[compatibility=false]{caption}
\usepackage{subcaption}
\usepackage{pdfpages}
\usepackage{subfiles}
\usepackage{natbib}
%\usepackage[numbers]{natbib} % Use this command if you want to refer to the literature by numbers, e.g., [1]
\usepackage{setspace}
\linespread{1.3}
\newenvironment{remark}{\par\mbox{}\par\noindent{\bfseries \emph{Remark}\/}:\normalfont}{\par}
\newenvironment{defin}{\par\mbox{}\par\noindent\bfseries \emph{\Pointinghand\ }\normalfont}{\par}
\setcounter{tocdepth}{4}
\usepackage[colorlinks=true, a4paper=true, pdfstartview=FitV,
linkcolor=black, citecolor=black, urlcolor=blue, breaklinks]{hyperref}
\pdfcompresslevel=9
%NB! To use minted latex must be invoked with the 'shell-escape' flag
%NB! If you are using Overleaf see Readme for instructions on how to resolve issues with Minted in Overleaf
\usepackage[cache=false, chapter]{minted}
\usemintedstyle{friendly}
\AtBeginEnvironment{minted}{%
\renewcommand{\fcolorbox}[4][]{#4}}
\renewcommand\listoflistingscaption{List of source codes}
\setlength{\parindent}{0.0in}
\setlength{\parskip}{.5em}
\newcommand{\blankpage}{\newpage{}\thispagestyle{empty}\mbox{}\newpage{}}
\hypersetup{
pdfauthor={Author},
pdftitle={Title},
pdfkeywords={Keywords}
}
%HEADERS
\setlength{\headheight}{15pt}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
\fancyhead[RO,LE]{\thepage}
}