-
Notifications
You must be signed in to change notification settings - Fork 0
/
docsetup.tex
95 lines (88 loc) · 2.56 KB
/
docsetup.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
\usepackage[utf8]{inputenc}
\usepackage[norsk]{babel}
\usepackage[]{parskip}
\usepackage{setspace}
\usepackage{graphicx} % Figurer
\usepackage{amssymb} % Symboler
\usepackage{mathrsfs} % Matte
\usepackage{amsmath} % Matte
\usepackage{color}
\usepackage{listings}
\usepackage{rotating} % Sideveis figurer
\usepackage{tikz} % Graf
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=4
}
\lstdefinestyle{xml}{
escapechar=@,
belowcaptionskip=1\baselineskip,
breaklines=true,
frame=single,
language=C,
captionpos=t,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{orange},
tabsize=4
}
\usepackage[Lenny]{fncychap}
\usepackage[pdftex,bookmarks=true]{hyperref}
\usepackage[pdftex]{hyperref}
\hypersetup{
colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black
}
\usepackage[tableposition=top,font=small,labelfont=bf]{caption}
\usepackage{fancyhdr}
\usepackage{times}
%\usepackage[intoc]{nomencl}
%\renewcommand{\nomname}{List of Abbreviations}
%\makenomenclature
\usepackage[round]{natbib}
\usepackage{float}
%\floatstyle{boxed}
\restylefloat{figure}
\usepackage[number=none]{glossary}
\makeglossary
\newglossarytype[abr]{abbr}{abt}{abl}
\newglossarytype[alg]{acronyms}{acr}{acn}
\newcommand{\abbrname}{Abbreviations}
\newcommand{\shortabbrname}{Abbreviations}
%\makeabbr
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\renewcommand*\contentsname{Table of Contents}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\renewcommand{\headrulewidth}{0.1ex}
\renewcommand{\footrulewidth}{0.1ex}
\fancypagestyle{plain}{\fancyhf{}\fancyfoot[LE,RO]{\thepage}\renewcommand{\headrulewidth}{0ex}}
\addto\captionsnorsk{\renewcommand{\chaptername}{Kapittel}}
\renewcommand{\lstlistingname}{Kodeoppføring}
\renewcommand{\lstlistlistingname}{Kodeoppføringer}