%%% Preamble \documentclass[paper=a4, fontsize=13pt]{scrartcl} \usepackage[T1]{fontenc} %\usepackage{fourier} \usepackage[english]{babel} % English language/hyphenation \usepackage[protrusion=true,expansion=true]{microtype} % Better typography \usepackage{amsmath,amsfonts,amsthm} % Math packages \usepackage[pdftex]{graphicx} % Enable pdflatex \usepackage{url} \usepackage[margin=10pt,font=small,labelfont=bf]{caption} %%% Custom sectioning (sectsty package) \usepackage{sectsty} % Custom sectioning (see below) \allsectionsfont{\centering \normalfont\scshape} % Change font of al section commands %%% Custom headers/footers (fancyhdr package) \usepackage{fancyhdr} \pagestyle{fancyplain} \fancyhead{} % No page header \fancyfoot[C]{\thepage} % Empty \renewcommand{\headrulewidth}{0pt} % Remove header underlines \renewcommand{\footrulewidth}{0pt} % Remove footer underlines \setlength{\headheight}{13.6pt} %%% Equation and float numbering \numberwithin{equation}{section} % Equationnumbering: section.eq# \numberwithin{figure}{section} % Figurenumbering: section.fig# \numberwithin{table}{section} % Tablenumbering: section.tab# %%% Maketitle metadata \newcommand{\horrule}[1]{\rule{\linewidth}{#1}} % Horizontal rule \title{ %\vspace{-1in} \usefont{OT1}{bch}{b}{n} \normalfont \normalsize \textsc{University of Oslo} \\ [25pt] \horrule{0.5pt} \\[0.4cm] \huge UNIK4270 - Exercise \\ \horrule{2pt} \\[0.5cm] } \author{ \normalfont \normalsize Joachim Tingvold\\[-3pt] \normalsize \today } \date{} %%% Begin document \begin{document} \maketitle