Update komageneral

This commit is contained in:
Marcus Kammer 2025-01-07 14:49:00 +01:00
parent 0548484e6f
commit a372ff0da6
Signed by: marcuskammer
GPG key ID: C374817BE285268F
2 changed files with 34 additions and 21 deletions

View file

@ -8,15 +8,15 @@
(TeX-add-to-alist 'LaTeX-provided-package-options (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" ""))) '(("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-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-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 "path")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline")
(TeX-run-style-hooks (TeX-run-style-hooks
"fontspec" "fontspec"
"geometry" "geometry"

View file

@ -29,6 +29,14 @@
\usepackage[a-1a]{pdfx} \usepackage[a-1a]{pdfx}
\usepackage{listings} \usepackage{listings}
\KOMAoptions{
captions=tableheading,
twoside=true,
toc=listof,
titlepage=false,
headings=normal
}
\definecolor{darkgray}{RGB}{64,64,64} \definecolor{darkgray}{RGB}{64,64,64}
\definecolor{lightgray}{RGB}{200,200,200} \definecolor{lightgray}{RGB}{200,200,200}
@ -37,8 +45,6 @@
\adjustboxset{max size={\textwidth}{0.6\textheight}} \adjustboxset{max size={\textwidth}{0.6\textheight}}
\KOMAoptions{toc=listof}
% Font settings % Font settings
\defaultfontfeatures{RawFeature={+zero, +liga}} \defaultfontfeatures{RawFeature={+zero, +liga}}
\setmainfont{Noto Serif}[ \setmainfont{Noto Serif}[
@ -81,14 +87,15 @@
marginparwidth=1.5cm marginparwidth=1.5cm
} }
% % Header and footer settings with scrlayer-scrpage % % Header and footer settings with scrlayer-scrpage
\pagestyle{scrheadings} \pagestyle{scrheadings}
\clearpairofpagestyles \clearpairofpagestyles
\automark[subsection]{section} % \automark[<right_level>]{<left_level>} \automark[subsection]{section} % \automark[<right_level>]{<left_level>}
\ihead{\pagemark} \ohead{\pagemark}
\chead{\Ifthispageodd{}{\@author}} \ihead{\leftmark}
\ohead{\Ifthispageodd{\leftmark}{\@title}} % \ihead{\pagemark}
% \chead{\Ifthispageodd{}{\@author}}
% \ohead{\Ifthispageodd{\leftmark}{\@title}}
\setkomafont{pageheadfoot}{\normalfont} \setkomafont{pageheadfoot}{\normalfont}
\setkomafont{pagehead}{\normalfont} \setkomafont{pagehead}{\normalfont}
@ -97,13 +104,16 @@
% Section formatting with KOMA-Script features % Section formatting with KOMA-Script features
\setkomafont{section}{\LARGE\bfseries\sffamily\color{darkgray}} \setkomafont{section}{\LARGE\bfseries\sffamily\color{darkgray}}
\setkomafont{subsection}{\large\bfseries\sffamily\color{darkgray}} \setkomafont{subsection}{\Large\bfseries\sffamily\color{darkgray}}
\setkomafont{subsubsection}{\normalsize\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 % Define the spacing between title and content
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{section} \RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.2\baselineskip]{section}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsection} \RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.3\baselineskip]{subsection}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.5\baselineskip]{subsubsection} \RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.4\baselineskip]{subsubsection}
% Define the spacing between section number and title % Define the spacing between section number and title
\renewcommand{\sectionformat}{\thesection\hspace{0.5em}} \renewcommand{\sectionformat}{\thesection\hspace{0.5em}}
@ -172,9 +182,6 @@
numbersep=3pt numbersep=3pt
} }
% Set description items to italic
\setlist[description]{font=\normalfont\itshape}
% Enhance your hyperref setup % Enhance your hyperref setup
\hypersetup{ \hypersetup{
colorlinks=true, colorlinks=true,
@ -196,3 +203,9 @@
\let\oldtabular\tabular \let\oldtabular\tabular
\let\endoldtabular\endtabular \let\endoldtabular\endtabular
\renewenvironment{tabular}{\rowcolors{2}{white}{lightgray}\oldtabular}{\endoldtabular} \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}