Swedish computerscience report
Author
Anon
Last Updated
11 лет назад
License
Creative Commons CC BY 4.0
Аннотация
Template för rapport inom datavetenskap
\documentclass[10pt, titlepage, oneside, a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\usepackage{amssymb, graphicx, fancyheadings}
\addtolength{\textheight}{20mm}
\addtolength{\voffset}{-5mm}
\renewcommand{\sectionmark}[1]{\markleft{#1}}
\newcommand{\Section}[1]{\section{#1}\vspace{-8pt}}
\newcommand{\Subsection}[1]{\vspace{-4pt}\subsection{#1}\vspace{-8pt}}
\newcommand{\Subsubsection}[1]{\vspace{-4pt}\subsubsection{#1}\vspace{-8pt}}
\newcounter{appendixpage}
\newenvironment{appendices}{
\setcounter{appendixpage}{\arabic{page}}
\stepcounter{appendixpage}
}{
}
\newcommand{\appitem}[2]{
\stepcounter{section}
\addtocontents{toc}{\protect\contentsline{section}{\numberline{\Alph{section}}#1}{\arabic{appendixpage}}}
\addtocounter{appendixpage}{#2}
}
\newcommand{\appsubitem}[2]{
\stepcounter{subsection}
\addtocontents{toc}{\protect\contentsline{subsection}{\numberline{\Alph{section}.\arabic{subsection}}#1}{\arabic{appendixpage}}}
\addtocounter{appendixpage}{#2}
}
\def\typeofdoc{TYP AV DOC}
\def\course{KURS}
\def\pretitle{RAPPORT}
\def\title{TITLE}
\def\name{DITT NAMN}
\def\username{USRNAME}
\def\email{\username{}@DOMÄN}
\def\graders{HANDLEDARE}
\def\university{UNIVERSITY}
\def\fullpath{\raisebox{1pt}{$\scriptstyle \sim$}\username/\path}
\begin{document}
\begin{titlepage}
\thispagestyle{empty}
\begin{large}
\begin{tabular}{@{}p{\textwidth}@{}}
\textbf{\university \hfill \today} \\
\textbf{\typeofdoc} \\
\end{tabular}
\end{large}
\vspace{10mm}
\begin{center}
\LARGE{\pretitle} \\
\huge{\textbf{\course}}\\
\vspace{10mm}
\LARGE{\title} \\
\vspace{15mm}
\begin{large}
\begin{tabular}{ll}
\textbf{Namn} & \name \\
\textbf{E-mail} & \texttt{\email} \\
\end{tabular}
\end{large}
\vfill
\large{\textbf{Handledare}}\\
\mbox{\large{\graders}}
\end{center}
\end{titlepage}
\lfoot{\footnotesize{\name, \email}}
\rfoot{\footnotesize{\today}}
\lhead{\sc\footnotesize\title}
\rhead{\nouppercase{\sc\footnotesize\leftmark}}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.2pt}
\pagenumbering{roman}
\tableofcontents
\newpage
\pagenumbering{arabic}
\setlength{\parindent}{0pt}
\setlength{\parskip}{10pt}
\Section{Problemspecifikation}
\Section{Systembeskrivning}
\Section{Algoritmbeskrivning}
\section{Testkörningar}
\Section{Lösningens begränsningar}
\Section{Problem och reflektioner}
\end{document}