aboutsummaryrefslogtreecommitdiff
path: root/Common/tex/latex/misc/StdOblig.cls
blob: a9c8f3d4b02f4e7204b54bdf9828d00a80e4f323 (plain) (blame)
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{StdOblig}[Standar Oblig Class]

\LoadClass[norsk,11pt,a4paper]{article}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage[norsk]{babel}

\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy} 

\usepackage{hyperref}
\usepackage[all]{hypcap}

\usepackage[normalem]{ulem}

\RequirePackage{xcolor}
\RequirePackage{soul}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{float}
\usepackage{multicol}
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{svg}
\usepackage{tabularx}

\usepackage{attachfile}
\usepackage{pdfpages}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage[small,euler-digits]{eulervm}
\usepackage{braket}

\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}

\newcommand{\headlinecolor}{\normalcolor}

% Page X of Y
\cfoot{\thepage\ of \pageref{LastPage}}

% Simple indent for subitems
\newcommand{\SubItem}[1]{
    {\setlength\itemindent{15pt} \item[-] #1}
}

% Make quotes around some text
\newcommand{\quotes}[1]{"#1"}
\newcommand{\q}[1]{"#1"}

% Hyber-linkable sections
\newcommand{\hsec}[2]{{\pagebreak\section{#1}\label{sec:#2}}}
\newcommand*{\refsec}[1]{\hyperref[{sec:#1}]{\ref*{sec:#1} \nameref*{sec:#1}}}
% Hyber-linkable sub_sections
\newcommand{\hsubsec}[2]{{\subsection{#1}\label{sssec:#2}}}
\newcommand*{\refsubsec}[1]{{\ref{sssec:#1}}}

% Make a tuple-command
\newcommand{\tuple}[1]{\langle #1 \rangle}

% Highlightcommand 
\DeclareRobustCommand{\hl}[1]{{\colorbox{yellow}{#1}}}
\DeclareRobustCommand{\hlc}[2]{{\colorbox{#1}{#2}}}

% Make new thing for draftonly
\newif\ifdraft
\draftfalse