|
| 1 | +\documentclass[a4paper,english,titlepage]{scrartcl} |
| 2 | +\usepackage{geometry} % Layout of the document |
| 3 | +\geometry{a4paper, % Format |
| 4 | + left=10mm, % Distance to left screen border |
| 5 | + right=10mm, % Distance to right screen border |
| 6 | + top=15mm, % Distance to top screen border |
| 7 | + bottom=15mm, % Distance to bottom screen border |
| 8 | + footskip=8mm % Setting for the page number |
| 9 | + } |
| 10 | +\usepackage{lmodern} % Smoothing of fonts in the .pdf document |
| 11 | +\usepackage{helvet} |
| 12 | +\renewcommand{\familydefault}{\sfdefault} |
| 13 | +\usepackage[T1]{fontenc} % Definition of the character set |
| 14 | +\usepackage[latin1]{inputenc} % Package for detection of umlauts |
| 15 | +\usepackage[english]{babel} % Language |
| 16 | +\usepackage[automark]{scrpage2} % german: http://fff2.at/drupal/content/latex-paket-scrpage2 english: https://www.ctan.org/pkg/scrpage2?lang=en |
| 17 | +\pagestyle{scrheadings} |
| 18 | +\clearscrheadfoot |
| 19 | +%\ifoot[]{\author} % i = inner, c = center, o = outer; head/foot |
| 20 | +\ohead{\headmark} |
| 21 | +\cfoot{- \pagemark\ -} |
| 22 | +\usepackage{caption} |
| 23 | +\captionsetup[figure]{labelformat=empty} % Redefines the caption setup of the figures environment in the beamer class. |
| 24 | +\usepackage{graphicx} % Import image files: .pdf .jpg .png .tif |
| 25 | +\usepackage[export]{adjustbox} |
| 26 | +\usepackage{scrpage2} |
| 27 | +\usepackage{amsmath} % Mathematical formulas |
| 28 | +\usepackage{amsfonts} % i.a. Quantity symbols |
| 29 | +\usepackage{amssymb} % i.a. Symbol "Empty Set" \varnothing |
| 30 | +\usepackage{float} % Force Image Position [H] |
| 31 | +\usepackage{latexsym} % Package for LaTeX-Symbols |
| 32 | +\usepackage{pdflscape} % Presentation and format of the PDF document |
| 33 | +\usepackage{xcolor} % Colors |
| 34 | +\usepackage{colortbl} |
| 35 | +%\usepackage{cite} % Citation |
| 36 | +\frenchspacing % Turns off the extra space, that LaTeX normally inserts after a punctuation mark. |
| 37 | +\usepackage{tabularx} % Package for defining the width of columns in tables \begin{tabularx}{\textwidth}{XX} \end{tabularx} |
| 38 | +\usepackage{longtable} % Package for larger tables across multiple pages |
| 39 | +\usepackage{booktabs} % Package for thick, vertical separators \toprule, \midrule, \bottomrule |
| 40 | +\usepackage{soul} % Package for underlines \ul --> e.g. \setul{1ex}{0.8ex} |
| 41 | +\usepackage{fancybox} % Packages for frames |
| 42 | +\usepackage[strict]{changepage} % For adjustwidth environment |
| 43 | +\usepackage{framed} % For formal definitions |
| 44 | +\usepackage{listings} % Code boxes |
| 45 | +\usepackage{enumitem} |
| 46 | +\usepackage{url} % Display of Internet addresses |
| 47 | +\usepackage[hidelinks]{hyperref} % Advanced referencing options. This package must be loaded last! [pdfpagelayout=SinglePage] |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +% Color - Table of Contents |
| 52 | +\definecolor{LinkColor}{rgb}{0,0,0.5} % Numbers between 0 and 1 |
| 53 | +\hypersetup{% |
| 54 | +colorlinks=true,% |
| 55 | +breaklinks=true, |
| 56 | +linkcolor=LinkColor,% |
| 57 | +%citecolor=LinkColor,% |
| 58 | +%filecolor=LinkColor,% |
| 59 | +%menucolor=LinkColor,% |
| 60 | +%pagecolor=LinkColor,% |
| 61 | +urlcolor=LinkColor, |
| 62 | +%hyperindex=true |
| 63 | +} |
| 64 | + |
| 65 | + |
| 66 | +% Specify Underlines using \setul{depth}{thickness} |
| 67 | +\setul{0.225ex}{0.125ex} |
| 68 | + |
| 69 | + |
| 70 | +% Create new commands to color all links in LinkColor and underline them |
| 71 | +\newcommand{\xhyperref}[2]{\hyperref[#1]{\color{LinkColor}\setulcolor{LinkColor}\ul{#2}}} |
| 72 | +\newcommand{\xnameref}[1]{\color{LinkColor}\underline{\nameref{#1}}\color{black}} |
| 73 | +\newcommand{\xhref}[2]{\href{#1}{\color{LinkColor}\setulcolor{LinkColor}\ul{#2}}} |
| 74 | + |
| 75 | + |
| 76 | +% Color Boxes in Images |
| 77 | +%Turquoise |
| 78 | +%#D0EFFF |
| 79 | +%RGB = 208 - 239 - 255 |
| 80 | +%\color[rgb]{0.813,0.934,1.0} |
| 81 | + |
| 82 | +%Red |
| 83 | +%#FF0000 |
| 84 | +%RGB = 255 - 0 - 0 |
| 85 | +%\color[rgb]{1.0,0.0,0.0} |
| 86 | + |
| 87 | +%Blue |
| 88 | +%#325FA0 |
| 89 | +%RGB = 50 - 95 - 160 |
| 90 | +%\color[rgb]{0.195,0.371,0.625} |
| 91 | + |
| 92 | + |
| 93 | +% Design of Code Boxes |
| 94 | +% http://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings#Style_definition |
| 95 | +\lstdefinestyle{customc}{ |
| 96 | + belowcaptionskip=1\baselineskip, |
| 97 | + breaklines=true, |
| 98 | + frame=L, |
| 99 | + xleftmargin=\parindent, |
| 100 | + language=C, |
| 101 | + showstringspaces=false, |
| 102 | + basicstyle=\footnotesize\ttfamily, |
| 103 | + keywordstyle=\bfseries\color{green!40!black}, |
| 104 | + commentstyle=\itshape\color{purple!40!black}, |
| 105 | + identifierstyle=\color{blue}, |
| 106 | + stringstyle=\color{orange}, |
| 107 | +} |
| 108 | +\lstdefinestyle{customasm}{ |
| 109 | + belowcaptionskip=1\baselineskip, |
| 110 | + frame=L, |
| 111 | + xleftmargin=\parindent, |
| 112 | + language=[x86masm]Assembler, |
| 113 | + basicstyle=\footnotesize\ttfamily, |
| 114 | + commentstyle=\itshape\color{purple!40!black}, |
| 115 | +} |
| 116 | +\lstset{escapechar=@,style=customc} |
| 117 | + |
| 118 | + |
| 119 | +% Inclusion of \paragraph and \subparagraph in den TOC |
| 120 | +\setcounter{tocdepth}{2} % Inclusion in the table of contents |
| 121 | +\setcounter{secnumdepth}{4} % Deepen numbering ({5} for subparagraph) |
| 122 | + |
| 123 | +% Distance of itemize-listpoints |
| 124 | +\newcommand{\CustomItemGap}{-0.5em} |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | +% environment derived from framed.sty: see leftbar environment definition |
| 130 | +% http://www.jevon.org/wiki/Fancy_Quotation_Boxes_in_Latex |
| 131 | +% see \usepackage[strict]{changepage} and \usepackage{framed} |
| 132 | +% |
| 133 | +\definecolor{bluebar}{rgb}{0.129,0.161,0.549} |
| 134 | +\definecolor{formalshade}{rgb}{0.95,0.95,1} |
| 135 | + |
| 136 | +\newenvironment{formal}{% |
| 137 | + \def\FrameCommand{% |
| 138 | + \hspace{1pt}% |
| 139 | + {\color{bluebar}\vrule width 2pt}% |
| 140 | + {\color{formalshade}\vrule width 4pt}% |
| 141 | + \colorbox{formalshade}% |
| 142 | + }% |
| 143 | + \MakeFramed{\advance\hsize-\width\FrameRestore}% |
| 144 | + \noindent\hspace{-4.55pt}% disable indenting first paragraph |
| 145 | + \begin{adjustwidth}{}{7pt}% |
| 146 | + \vspace{2pt}\vspace{2pt}% |
| 147 | +} |
| 148 | +{% |
| 149 | + \vspace{2pt}\end{adjustwidth}\endMakeFramed% |
| 150 | +} |
| 151 | + |
| 152 | + |
| 153 | +% Change TOC title |
| 154 | +\addto\captionsenglish{ |
| 155 | + \renewcommand{\contentsname} |
| 156 | + {Table of Contents} |
| 157 | +} |
| 158 | + |
| 159 | + |
| 160 | +% Specify the used file extension for all images within the document |
| 161 | +\newcommand{\CFE}{jpg} % CFE = Color File Extension |
0 commit comments