From a372ff0da63f07a4609454d045d2031013f863fd Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Tue, 7 Jan 2025 14:49:00 +0100 Subject: [PATCH] Update komageneral --- .../latex/mycustomstyles/auto/komageneral.el | 14 +++---- .../tex/latex/mycustomstyles/komageneral.sty | 41 ++++++++++++------- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/texmf/tex/latex/mycustomstyles/auto/komageneral.el b/texmf/tex/latex/mycustomstyles/auto/komageneral.el index fb6c9dbe..442a62d3 100644 --- a/texmf/tex/latex/mycustomstyles/auto/komageneral.el +++ b/texmf/tex/latex/mycustomstyles/auto/komageneral.el @@ -8,15 +8,15 @@ (TeX-add-to-alist 'LaTeX-provided-package-options '(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "autooneside=false") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("polyglossia" "") ("biblatex" "") ("float" "") ("xcolor" "table") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("longtable" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("hyperref" "pdfusetitle") ("array" "") ("pdfx" "a-1a") ("listings" ""))) (add-to-list 'LaTeX-verbatim-environments-local "lstlisting") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline") - (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") - (add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") + (add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline") (TeX-run-style-hooks "fontspec" "geometry" diff --git a/texmf/tex/latex/mycustomstyles/komageneral.sty b/texmf/tex/latex/mycustomstyles/komageneral.sty index da9f3a56..bf5de911 100644 --- a/texmf/tex/latex/mycustomstyles/komageneral.sty +++ b/texmf/tex/latex/mycustomstyles/komageneral.sty @@ -29,6 +29,14 @@ \usepackage[a-1a]{pdfx} \usepackage{listings} +\KOMAoptions{ + captions=tableheading, + twoside=true, + toc=listof, + titlepage=false, + headings=normal +} + \definecolor{darkgray}{RGB}{64,64,64} \definecolor{lightgray}{RGB}{200,200,200} @@ -37,8 +45,6 @@ \adjustboxset{max size={\textwidth}{0.6\textheight}} -\KOMAoptions{toc=listof} - % Font settings \defaultfontfeatures{RawFeature={+zero, +liga}} \setmainfont{Noto Serif}[ @@ -81,14 +87,15 @@ marginparwidth=1.5cm } - % % Header and footer settings with scrlayer-scrpage \pagestyle{scrheadings} \clearpairofpagestyles \automark[subsection]{section} % \automark[]{} -\ihead{\pagemark} -\chead{\Ifthispageodd{}{\@author}} -\ohead{\Ifthispageodd{\leftmark}{\@title}} +\ohead{\pagemark} +\ihead{\leftmark} +% \ihead{\pagemark} +% \chead{\Ifthispageodd{}{\@author}} +% \ohead{\Ifthispageodd{\leftmark}{\@title}} \setkomafont{pageheadfoot}{\normalfont} \setkomafont{pagehead}{\normalfont} @@ -97,13 +104,16 @@ % Section formatting with KOMA-Script features \setkomafont{section}{\LARGE\bfseries\sffamily\color{darkgray}} -\setkomafont{subsection}{\large\bfseries\sffamily\color{darkgray}} -\setkomafont{subsubsection}{\normalsize\bfseries\sffamily\color{darkgray}} +\setkomafont{subsection}{\Large\bfseries\sffamily\color{darkgray}} +\setkomafont{subsubsection}{\large\bfseries\sffamily\color{darkgray}} + +% \setkomafont{section}{\fontsize{14pt}{17pt}\selectfont\bfseries\sffamily\color{darkgray}} +% \setkomafont{subsection}{\fontsize{12pt}{14pt}\selectfont\bfseries\sffamily\color{darkgray}} % 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} +\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.2\baselineskip]{section} +\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.3\baselineskip]{subsection} +\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.4\baselineskip]{subsubsection} % Define the spacing between section number and title \renewcommand{\sectionformat}{\thesection\hspace{0.5em}} @@ -172,9 +182,6 @@ numbersep=3pt } -% Set description items to italic -\setlist[description]{font=\normalfont\itshape} - % Enhance your hyperref setup \hypersetup{ colorlinks=true, @@ -196,3 +203,9 @@ \let\oldtabular\tabular \let\endoldtabular\endtabular \renewenvironment{tabular}{\rowcolors{2}{white}{lightgray}\oldtabular}{\endoldtabular} + +% Set consistent spacing for all list types +% \setlist{nosep} % Removes vertical spacing +\setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape} +\setlist[itemize]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt} +\setlist[enumerate]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt}