From ab711f07e30f4089ef8d440a698c693028b3d7bd Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sat, 30 Nov 2024 15:41:50 +0100 Subject: [PATCH] Update komageneral --- .../tex/latex/mycustomstyles/komageneral.sty | 37 ++++++------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/texmf/tex/latex/mycustomstyles/komageneral.sty b/texmf/tex/latex/mycustomstyles/komageneral.sty index b5be85dc..88009ae4 100644 --- a/texmf/tex/latex/mycustomstyles/komageneral.sty +++ b/texmf/tex/latex/mycustomstyles/komageneral.sty @@ -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}