Update komageneral

This commit is contained in:
Marcus Kammer 2024-11-30 15:41:50 +01:00
parent e2d6e9365b
commit ab711f07e3

View file

@ -38,7 +38,7 @@
\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}
\linespread{1.1}
% Geometry settings
\geometry{a4paper, left=2cm, right=2cm, top=2cm, bottom=2cm}
@ -57,33 +57,15 @@
\setkomafont{subsection}{\large\bfseries\sffamily}
\setkomafont{subsubsection}{\normalsize\bfseries\sffamily}
\RedeclareSectionCommand[
beforeskip=\baselineskip,
afterskip=0.5\baselineskip
]{section}
\RedeclareSectionCommand[
beforeskip=\baselineskip,
afterskip=0.5\baselineskip
]{subsection}
\RedeclareSectionCommand[
beforeskip=\baselineskip,
afterskip=0.5\baselineskip
]{subsubsection}
% Define the spacing between title and content
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{section}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsection}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsubsection}
% Define the spacing between section number and title
\renewcommand{\sectionformat}{%
\thesection\hspace{1em}%
}
\renewcommand{\subsectionformat}{%
\thesubsection\hspace{1em}%
}
\renewcommand{\subsubsectionformat}{%
\thesubsubsection\hspace{1em}%
}
\renewcommand{\sectionformat}{\thesection\hspace{0.5em}}
\renewcommand{\subsectionformat}{\thesubsection\hspace{0.5em}}
\renewcommand{\subsubsectionformat}{\thesubsubsection\hspace{0.5em}}
% Set global table font to Noto Sans Condensed Light
\AtBeginEnvironment{tabular}{\fontspec{Noto Sans Condensed}}
@ -134,3 +116,6 @@
tabsize=2,
columns=fullflexible
}
% set description items to italic
\setlist[description]{font=\normalfont\itshape}