improved readability of preamble

main
Isabell Pflug 3 years ago
parent 6d1925891c
commit 1196a412b8

@ -1,57 +1,71 @@
% TEMPLATE ********************************************************************************************************
\documentclass[a4paper,fontsize=12pt,listof=totoc,toc=sectionentrywithdots]{scrartcl} \documentclass[a4paper,fontsize=12pt,listof=totoc,toc=sectionentrywithdots]{scrartcl}
%
% style packages **************************************************************************************************
%
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{lmodern} \usepackage{lmodern}
\usepackage[onehalfspacing]{setspace} \usepackage[onehalfspacing]{setspace}
\setcounter{secnumdepth}{5} % numbered paragraphs \setcounter{secnumdepth}{5} % numbered paragraphs
\usepackage{fancyhdr} \usepackage{fancyhdr}
% page settings *************************************************************************************************** \setlength{\headheight}{15.2pt}
% \pagestyle{fancy}
% custom commands for title, name and sectioning \fancyhf{}
\newcommand{\Assignment}{class name - assignment no. X} % title, for both title and header \fancyhead[R]{\Authorname}
\newcommand{\Task}[1]{ \section*{#1.)} \addcontentsline{toc}{section}{Task #1} \label{sec:task_#1}} \fancyhead[L]{\Assignment}
\newcommand{\Subtask}[1]{ \subsection*{#1)} \addcontentsline{toc}{subsection}{#1 )}} \fancyfoot[C]{\thepage}
\newcommand{\Authorname}{your name here} % your name here
%
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\fancyhf{}
%
\fancyhead[R]{\Authorname}
\fancyhead[L]{\Assignment}
\fancyfoot[C]{\thepage}
%
% %
% math packages *************************************************************************************************** % math packages
% %
\usepackage{mathtools} \usepackage{mathtools}
\usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts} \usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts}
\usepackage{esint} % for circle integrals \usepackage{esint} % for circle integrals
% %
% optimisation **************************************************************************************************** % microtype setting
% %
\usepackage{float} % better control of placements \usepackage{float} % better control of placements
\usepackage{microtype} % package for optimising typographic details \usepackage{microtype} % package for optimising typographic details
%
% tables
%
\usepackage{booktabs} % optimised display of tables \usepackage{booktabs} % optimised display of tables
\usepackage{tabularx} % more modern display of tables with \toprule,\midrule,\bottomrule \usepackage{tabularx} % more modern display of tables with \toprule,\midrule,\bottomrule
\usepackage{multirow} % allows table cells over multiple rows within a column \usepackage{multirow} % allows table cells over multiple rows within a column
% %
% misc packages *************************************************************************************************** % misc packages
% %
\usepackage[extendedchars]{grffile} % for spaces and special chars in file paths \usepackage[extendedchars]{grffile} % for spaces and special chars in file paths
\usepackage{xcolor} % adds colours \usepackage{xcolor} % adds colours
\usepackage[hyphens]{url} % adds hyperlinks \usepackage[hyphens]{url} % adds hyperlinks
\usepackage[]{hyperref} % adds links to toc \usepackage[]{hyperref} % adds links to toc
%
% custom commands
% %
\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
%
\title{\Assignment} \title{\Assignment}
\author{\Authorname} \author{\Authorname}
\date{\today} \date{\today}
% document ********************************************************************************************************
% %
% document
%
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents

@ -1,8 +1,5 @@
% TEMPLATE ********************************************************************************************************
\documentclass[a4paper,fontsize=12pt,listof=totoc,toc=sectionentrywithdots]{scrartcl} \documentclass[a4paper,fontsize=12pt,listof=totoc,toc=sectionentrywithdots]{scrartcl}
%
% style packages **************************************************************************************************
%
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
@ -10,49 +7,65 @@
\usepackage[onehalfspacing]{setspace} \usepackage[onehalfspacing]{setspace}
\setcounter{secnumdepth}{5} % numbered paragraphs \setcounter{secnumdepth}{5} % numbered paragraphs
\usepackage{fancyhdr} \usepackage{fancyhdr}
% page settings *************************************************************************************************** \setlength{\headheight}{15.2pt}
% \pagestyle{fancy}
% custom commands for title, name and sectioning \fancyhf{}
\newcommand{\Hausaufgabe}{Modulname - Hausaufgabe Nr. X} % title, for both title and header \fancyhead[R]{\Authorname}
\newcommand{\Aufgabe}[1]{ \section*{#1.)} \addcontentsline{toc}{section}{Aufgabe #1} \label{sec:aufgabe_#1}} \fancyhead[L]{\Assignment}
\newcommand{\Teilaufgabe}[1]{ \subsection*{#1)} \addcontentsline{toc}{subsection}{#1 )}} \fancyfoot[C]{\thepage}
\newcommand{\Autor}{Max Mustermann} % your name here
%
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\fancyhf{}
%
\fancyhead[R]{\Autor}
\fancyhead[L]{\Hausaufgabe}
\fancyfoot[C]{\thepage}
%
% %
% math packages *************************************************************************************************** % math packages
% %
\usepackage{mathtools} \usepackage{mathtools}
\usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts} \usepackage{amsxtra,amssymb,amsthm,amstext,amsfonts}
\usepackage{esint} % for circle integrals \usepackage{esint} % for circle integrals
% %
% optimisation **************************************************************************************************** % microtype setting
% %
\usepackage{float} % better control of placements \usepackage{float} % better control of placements
\usepackage{microtype} % package for optimising typographic details \usepackage{microtype} % package for optimising typographic details
%
% tables
%
\usepackage{booktabs} % optimised display of tables \usepackage{booktabs} % optimised display of tables
\usepackage{tabularx} % more modern display of tables with \toprule,\midrule,\bottomrule \usepackage{tabularx} % more modern display of tables with \toprule,\midrule,\bottomrule
\usepackage{multirow} % allows table cells over multiple rows within a column \usepackage{multirow} % allows table cells over multiple rows within a column
% %
% misc packages *************************************************************************************************** % misc packages
% %
\usepackage[extendedchars]{grffile} % for spaces and special chars in file paths \usepackage[extendedchars]{grffile} % for spaces and special chars in file paths
\usepackage{xcolor} % adds colours \usepackage{xcolor} % adds colours
\usepackage[hyphens]{url} % adds hyperlinks \usepackage[hyphens]{url} % adds hyperlinks
\usepackage[]{hyperref} % adds links to toc \usepackage[]{hyperref} % adds links to toc
% %
\title{\Assignment} % custom commands
\author{\Authorname} %
\newcommand{\Hausaufgabe}{Modulname - Hausaufgabe Nr. X} % title, for both title and header
\newcommand{\Aufgabe}[1]{ \section*{#1.)} \addcontentsline{toc}{section}{Aufgabe #1} \label{sec:aufgabe_#1}}
\newcommand{\Teilaufgabe}[1]{ \subsection*{#1)} \addcontentsline{toc}{subsection}{#1 )}}
\newcommand{\Autor}{Max Mustermann} % your name here
%
% maketitle
%
\title{\Hausaufgabe}
\author{\Autor}
\date{\today} \date{\today}
% document ********************************************************************************************************
% %
% document
%
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents

Loading…
Cancel
Save