2023-12-14 15:56:17 +01:00
|
|
|
\ProvidesPackage{komageneral}
|
|
|
|
% Font settings
|
|
|
|
\usepackage{fontspec}
|
|
|
|
\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}]
|
2024-01-17 14:53:30 +01:00
|
|
|
\setmonofont{Noto Sans Mono Condensed}[BoldFont={Noto Sans Mono Condensed Bold},Scale=0.8]
|
2023-12-14 15:56:17 +01:00
|
|
|
% Geometry settings
|
|
|
|
\usepackage{geometry}
|
|
|
|
\geometry{a4paper,left=2cm,right=2cm,top=1.6cm,bottom=1.6cm}
|
|
|
|
% Header and section settings
|
|
|
|
\usepackage{scrlayer-scrpage}
|
|
|
|
\pagestyle{scrheadings}
|
|
|
|
\clearpairofpagestyles
|
|
|
|
\automark{section}
|
|
|
|
\ihead{\headmark}
|
|
|
|
\ohead{\thepage}
|
|
|
|
% Section command redeclarations
|
|
|
|
\setkomafont{section}{\Large\bfseries\sffamily}
|
|
|
|
\setkomafont{subsection}{\large\bfseries\sffamily}
|
|
|
|
\setkomafont{subsubsection}{\normalsize\bfseries\sffamily}
|
2024-01-17 14:53:30 +01:00
|
|
|
\RedeclareSectionCommand[beforeskip=-2\baselineskip,afterskip=0.5\baselineskip]{section}
|
|
|
|
\RedeclareSectionCommand[beforeskip=-1.5\baselineskip,afterskip=0.25\baselineskip]{subsection}
|
|
|
|
\RedeclareSectionCommand[beforeskip=-1\baselineskip,afterskip=0.1\baselineskip]{subsubsection}
|