Update komageneral

This commit is contained in:
Marcus Kammer 2024-10-28 16:49:56 +01:00
parent fd72f51721
commit a7fb411b49

View file

@ -8,19 +8,40 @@
\usepackage{enumitem}
\usepackage{caption}
\usepackage{fancyhdr}
\usepackage{microtype}
\usepackage[expansion,protrusion=true]{microtype}
\usepackage{biblatex}
\usepackage{float}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{polyglossia}
\usepackage{grffile}
\usepackage{unicode-math}
\usepackage[Export]{adjustbox}
\usepackage{graphicx} % Added for including images
\addbibresource{yourbibliography.bib}
% \addbibresource{yourbibliography.bib}
\adjustboxset{max size={\textwidth}{0.6\textheight}}
\KOMAoptions{toc=flat,toc=listof}
% Font settings
\defaultfontfeatures{Ligatures=TeX, RawFeature={+zero, +liga}}
\setmainfont{Noto Serif Regular}[BoldFont={Noto Serif Bold}, ItalicFont={Noto Serif Italic}]
\setsansfont{Noto Sans Regular}[BoldFont={Noto Sans Bold}, ItalicFont={Noto Sans Italic}]
\setmonofont{Noto Sans Mono}[BoldFont={Noto Sans Mono Bold}, Scale=0.8]
\linespread{1.25}
% Geometry settings
\geometry{a4paper, left=2cm, right=2cm, top=1.6cm, bottom=1.6cm}
\geometry{a4paper, left=2cm, right=2cm, top=2cm, bottom=2cm}
% Header and footer settings with fancyhdr
\pagestyle{fancy}
@ -49,15 +70,41 @@
\newcommand{\code}[1]{\texttt{#1}}
% Title page settings
\newcommand{\TitlePage}[2]{ % #1 - Logo file, #2 - Company name
\newcommand{\TitlePage}[3]{ % #1 - Logo file, #2 - Company name
\begin{titlepage}
\centering
\vspace*{1cm}
\includegraphics[width=0.3\textwidth]{#1}\par\vspace{1cm}
{\Huge\bfseries\sffamily #2\par}
{\Huge #2\par}
\vspace{2cm}
{\Large\itshape An Elegant and Professional Document\par}
{\Large #3\par}
\vfill
{\large \today\par}
\end{titlepage}
}
% List items
\setlist[itemize]{wide=0pt, leftmargin=*, nosep}
\setlist[itemize,2]{label=\textbullet}
\setlist[itemize,3]{label=$\circ$}
% Global listing settings
\lstset{
basicstyle={\ttfamily\color[rgb]{0.30, 0.34, 0.42}},
showstringspaces=false,
keywordstyle={\color[rgb]{0.23, 0.26, 0.32}\textbf},
commentstyle={\color[rgb]{0.26, 0.30, 0.37}},
stringstyle={\color[rgb]{0.18, 0.20, 0.25}},
frame=single,
numbers=left,
numbersep=5pt,
numberstyle={\ttfamily\color[rgb]{0.30, 0.34, 0.42}},
keepspaces=true,
showspaces=false,
showstringspaces=false,
showtabs=false,
breaklines=true,
breakatwhitespace=false,
tabsize=2,
columns=fullflexible
}