From 1bc0d90f1dd541e480eb72f92ad2e8dc22940192 Mon Sep 17 00:00:00 2001
From: jakobst1n <jakob.stendahl@outlook.com>
Date: Mon, 23 Jan 2023 22:10:51 +0000
Subject: Remove unused packages

---
 UiO_profile.cls | 87 +++++++++++++++++++++------------------------------------
 1 file changed, 32 insertions(+), 55 deletions(-)

(limited to 'UiO_profile.cls')

diff --git a/UiO_profile.cls b/UiO_profile.cls
index c2042e5..e4c09a3 100644
--- a/UiO_profile.cls
+++ b/UiO_profile.cls
@@ -4,66 +4,46 @@
 \ProvidesClass{UiO_profile/UiO_profile}[2022/00/06 My custom CV class]
 
 \usepackage[scaled]{helvet}
-\renewcommand\familydefault{\sfdefault} 
+\renewcommand\familydefault{\sfdefault}
 \usepackage[T1]{fontenc}
 
-\RequirePackage{geometry}
-\RequirePackage{graphicx}
-\RequirePackage{url}
-\RequirePackage{array}
-\RequirePackage{hyperref}
-\RequirePackage[table,svgnames]{xcolor}
-\RequirePackage{afterpage}
-\RequirePackage{fix-cm}
-\RequirePackage{lipsum}
-\RequirePackage{sectsty}
-\RequirePackage{tikz}
-\RequirePackage{etoolbox}
-\RequirePackage{pagecolor}
-\RequirePackage{tikzpagenodes}
 \RequirePackage{titling}
-\RequirePackage{anyfontsize}
-\usepackage[export]{adjustbox}
+\RequirePackage{tikz}
+\RequirePackage[export]{adjustbox}
+\RequirePackage{xcolor}
 
 % UiO Brand colors
 % Blue
-\definecolor{UioBlue}{RGB}{67, 101, 226}
-\definecolor{UioDarkBlue}{RGB}{61, 88, 151}
-\definecolor{UioLightBlue}{RGB}{209,226,242}
-% Green
-\definecolor{UioRed}{RGB}{182, 0, 0}
-\definecolor{UioDarkRed}{RGB}{61, 88, 151}
-\definecolor{UioLightRed}{RGB}{251, 102, 102}
+\definecolor{UiOBlue}{RGB}{67, 101, 226}
+\definecolor{UiODarkBlue}{RGB}{124, 155, 206}
+\definecolor{UiOLightBlue}{RGB}{223, 231, 243}
 % Red
+\definecolor{UiORed}{RGB}{182, 0, 0}
+\definecolor{UiODarkRed}{RGB}{251, 102, 102}
+\definecolor{UiOLightRed}{RGB}{253, 224, 225}
+% Green
+\definecolor{UiOGreen}{RGB}{182, 0, 0}
+\definecolor{UiODarkGreen}{RGB}{116, 198, 165}
+\definecolor{UiOLightGreen}{RGB}{197, 228, 207}
 
 \definecolor{UiOFrontpageBackground}{RGB}{255, 255, 255}
 \definecolor{UiOFrontpagePrimary}{RGB}{220, 221, 223}
 \DeclareOption{red}{
-  \definecolor{UiOFrontpageBackground}{RGB}{253, 224, 225}
-  \definecolor{UiOFrontpagePrimary}{RGB}{251, 102, 102}
+  \colorlet{UiOFrontpagePrimary}{UiODarkRed}
+  \colorlet{UiOFrontpageBackground}{UiOLightRed}
 }
 \DeclareOption{blue}{
-  \definecolor{UiOFrontpageBackground}{RGB}{223, 231, 243}
-  \definecolor{UiOFrontpagePrimary}{RGB}{124, 155, 206}
+  \colorlet{UiOFrontpagePrimary}{UiODarkBlue}
+  \colorlet{UiOFrontpageBackground}{UiOLightBlue}
 }
 \DeclareOption{green}{
-  \definecolor{UiOFrontpageBackground}{RGB}{197, 228, 207}
-  \definecolor{UiOFrontpagePrimary}{RGB}{116, 198, 165}
+  \colorlet{UiOFrontpagePrimary}{UiODarkGreen}
+  \colorlet{UiOFrontpageBackground}{UiOLightGreen}
 }
 \newif\iflangno
 \DeclareOption{no}{\langnotrue}
 \ProcessOptions\relax
 
-%\usepackage{fontspec}
-%\setromanfont{BaxterSans}[
-%    Path=./Baxter/,
-%    Extension = .otf,
-%    UprightFont=*-Regular,
-%    BoldFont=*-Bold,
-%    ItalicFont=*-RegularItalic,
-%    BoldItalicFont=*-BoldItalic
-%    ]
-
 %\sectionfont{\color{UioBlue}}
 %\subsectionfont{\color{UioBlue}}
 
@@ -90,7 +70,7 @@
     \begin{tikzpicture}[remember picture,overlay]
       % Bakgrunn
       \node (back names) [shape=rectangle, fill=UiOFrontpageBackground, minimum height=\paperheight, minimum width=\paperwidth, anchor=south west] at (current page.south west) {};
-      
+
       % Segl
       \node[inner sep=0pt, anchor=south east] (uioname) at ([shift={(-10mm,10mm)}]back names.south east) {
         \includegraphics[width=23.7mm,right]{UiO_profile/profiles/03_uio_segl_pos.png}
@@ -102,11 +82,11 @@
           \thedate
         \else
         \fi
-      };    
-      
+      };
+
       % "Ribbon" bakgrunn
       \node (names) [shape=rectangle, fill=UiOFrontpagePrimary, minimum height=.25\paperheight, minimum width=\paperwidth, anchor=north west] at (current page.north west) {};
-    
+
       % Navnetrekk
       \node[inner sep=0pt, anchor=north west] (uioname) at ([shift={(10mm,-10mm)}]names.north west) {
         \iflangno
@@ -115,7 +95,7 @@
           \includegraphics[width=63mm]{UiO_profile/profiles/03_uio_navnetrekk_eng_pos.png}
         \fi
       };
-    
+
       % Chip 1
       \node[anchor=north west, fill=black, text=white, inner sep=5pt] (chip1) at ([shift={(10mm,15mm)}]names.south west) {
         \ifdefined\@deliverableversion
@@ -123,8 +103,8 @@
         \else
         \fi
       };
-  
-      % Tittel  
+
+      % Tittel
       \node[anchor=north west] (title) at ([shift={(10mm,-10mm)}]names.south west) {
         \ifdefined\thetitle
           \Huge\thetitle
@@ -139,12 +119,12 @@
         \else
         \fi
       };
-    
-      % Forfatter  
+
+      % Forfatter
       \node[anchor=north west] (author) at ([shift={(0,-5mm)}]\ifdefined\@subtitle subtitle\else title\fi.south west) {
         \theauthor
       };
-    
+
       % Studieprogram
       \node[anchor=north west] (program) at ([shift={(0,-5mm)}]\ifdefined\theauthor author\else subtitle\fi.south west) {
         \ifdefined\@programname
@@ -152,7 +132,7 @@
         \else
         \fi
       };
-    
+
       % Studiepoeng
       \node[anchor=north west] (points) at ([shift={(0,0)}]program.south west) {
         \ifdefined\@studypoints
@@ -160,7 +140,7 @@
         \else
         \fi
       };
-    
+
       % Institutt
       \node[anchor=north west] (institute) at ([shift={(0,-5mm)}]\ifdefined\@studypoints points\else program\fi.south west) {
         \ifdefined\@institute
@@ -177,10 +157,7 @@
         \fi
       };
 
-    
     \end{tikzpicture}
     \newpage
   \end{titlepage}
 }
-
-%\renewcommand*{\maketitle}{\uiotitlepage}
-- 
cgit v1.2.3

