You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.7 KiB
TeX
78 lines
1.7 KiB
TeX
2 years ago
|
\documentclass[a4paper,fontsize=12pt,listof=totoc,toc=sectionentrywithdots]{scrartcl}
|
||
2 years ago
|
|
||
2 years ago
|
\usepackage[T1]{fontenc}
|
||
|
\usepackage[utf8]{inputenc}
|
||
|
\usepackage{lmodern}
|
||
|
\usepackage[onehalfspacing]{setspace}
|
||
|
\setcounter{secnumdepth}{5} % numbered paragraphs
|
||
|
\usepackage{fancyhdr}
|
||
2 years ago
|
\setlength{\headheight}{15.2pt}
|
||
|
\pagestyle{fancy}
|
||
|
\fancyhf{}
|
||
|
\fancyhead[R]{\Authorname}
|
||
|
\fancyhead[L]{\Assignment}
|
||
|
\fancyfoot[C]{\thepage}
|
||
|
|
||
2 years ago
|
%
|
||
2 years ago
|
% math packages
|
||
2 years ago
|
%
|
||
2 years ago
|
|
||
2 years ago
|
\usepackage{mathtools}
|
||
|
\usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts}
|
||
|
\usepackage{esint} % for circle integrals
|
||
2 years ago
|
|
||
2 years ago
|
%
|
||
2 years ago
|
% microtype setting
|
||
2 years ago
|
%
|
||
2 years ago
|
|
||
2 years ago
|
\usepackage{float} % better control of placements
|
||
|
\usepackage{microtype} % package for optimising typographic details
|
||
2 years ago
|
|
||
|
%
|
||
|
% tables
|
||
|
%
|
||
|
|
||
2 years ago
|
\usepackage{booktabs} % optimised display of tables
|
||
|
\usepackage{tabularx} % more modern display of tables with \toprule,\midrule,\bottomrule
|
||
|
\usepackage{multirow} % allows table cells over multiple rows within a column
|
||
2 years ago
|
|
||
2 years ago
|
%
|
||
2 years ago
|
% misc packages
|
||
2 years ago
|
%
|
||
2 years ago
|
|
||
2 years ago
|
\usepackage[extendedchars]{grffile} % for spaces and special chars in file paths
|
||
|
\usepackage{xcolor} % adds colours
|
||
|
\usepackage[hyphens]{url} % adds hyperlinks
|
||
|
\usepackage[]{hyperref} % adds links to toc
|
||
2 years ago
|
|
||
|
%
|
||
|
% custom commands
|
||
2 years ago
|
%
|
||
2 years ago
|
|
||
|
\newcommand{\Assignment}{class name - assignment no. X} % title, for both title and header
|
||
|
\newcommand{\Authorname}{your name here} % your name here
|
||
|
\newcommand{\Task}[1]{ \section*{#1.)} \addcontentsline{toc}{section}{Task #1} \label{sec:task_#1}}
|
||
|
\newcommand{\Subtask}[1]{ \subsection*{#1)} \addcontentsline{toc}{subsection}{#1 )}}
|
||
|
|
||
|
%
|
||
|
% maketitle
|
||
|
%
|
||
|
|
||
2 years ago
|
\title{\Assignment}
|
||
|
\author{\Authorname}
|
||
|
\date{\today}
|
||
2 years ago
|
|
||
2 years ago
|
%
|
||
2 years ago
|
% document
|
||
|
%
|
||
|
|
||
2 years ago
|
\begin{document}
|
||
|
\maketitle
|
||
|
\tableofcontents
|
||
|
|
||
|
\Task{1}
|
||
|
\Subtask{a}
|
||
|
example
|
||
|
|
||
|
\end{document}
|