Update komageneral style file

This commit is contained in:
Marcus Kammer 2024-12-30 09:50:39 +01:00
parent df14101d84
commit cd805e9b0b
Signed by: marcuskammer
GPG key ID: C374817BE285268F
2 changed files with 61 additions and 21 deletions

View file

@ -6,7 +6,7 @@
(setq TeX-command-extra-options (setq TeX-command-extra-options
"-shell-escape") "-shell-escape")
(TeX-add-to-alist 'LaTeX-provided-package-options (TeX-add-to-alist 'LaTeX-provided-package-options
'(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "") ("enumitem" "") ("caption" "") ("microtype" "protrusion=true" "expansion=true" "final" "tracking=true" "kerning=true") ("polyglossia" "") ("biblatex" "") ("float" "") ("xcolor" "table") ("listings" "") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("longtable" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("hyperref" "pdfusetitle") ("array" "") ("pdfx" "a-1b"))) '(("fontspec" "") ("geometry" "") ("scrlayer-scrpage" "") ("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 "path") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
@ -28,7 +28,6 @@
"biblatex" "biblatex"
"float" "float"
"xcolor" "xcolor"
"listings"
"booktabs" "booktabs"
"grffile" "grffile"
"unicode-math" "unicode-math"
@ -44,7 +43,8 @@
"capt-of" "capt-of"
"hyperref" "hyperref"
"array" "array"
"pdfx") "pdfx"
"listings")
(TeX-add-symbols (TeX-add-symbols
'("TitlePage" 3) '("TitlePage" 3)
'("code" 1) '("code" 1)
@ -56,6 +56,10 @@
'("german" "otherlanguages" "")) '("german" "otherlanguages" ""))
(LaTeX-add-xcolor-definecolors (LaTeX-add-xcolor-definecolors
"darkgray" "darkgray"
"lightgray")) "lightgray")
(LaTeX-add-array-newcolumntypes
"P")
(LaTeX-add-listings-lstdefinestyles
"numbers"))
:latex) :latex)

View file

@ -11,7 +11,6 @@
\usepackage{biblatex} \usepackage{biblatex}
\usepackage{float} \usepackage{float}
\usepackage[table]{xcolor} \usepackage[table]{xcolor}
\usepackage{listings}
\usepackage{booktabs} \usepackage{booktabs}
\usepackage{grffile} \usepackage{grffile}
\usepackage{unicode-math} \usepackage{unicode-math}
@ -27,7 +26,8 @@
\usepackage{capt-of} \usepackage{capt-of}
\usepackage[pdfusetitle]{hyperref} \usepackage[pdfusetitle]{hyperref}
\usepackage{array} \usepackage{array}
\usepackage[a-1b]{pdfx} \usepackage[a-1a]{pdfx}
\usepackage{listings}
\definecolor{darkgray}{RGB}{64,64,64} \definecolor{darkgray}{RGB}{64,64,64}
\definecolor{lightgray}{RGB}{200,200,200} \definecolor{lightgray}{RGB}{200,200,200}
@ -41,14 +41,45 @@
% Font settings % Font settings
\defaultfontfeatures{RawFeature={+zero, +liga}} \defaultfontfeatures{RawFeature={+zero, +liga}}
\setmainfont{Noto Serif}[BoldFont={Noto Serif Bold},ItalicFont={Noto Serif Italic}] \setmainfont{Noto Serif}[
\setsansfont{Noto Sans}[BoldFont={Noto Sans Bold},ItalicFont={Noto Sans Italic}] UprightFont = Noto Serif Regular,
\setmonofont{MonoLisa}[BoldFont={MonoLisa Bold},ItalicFont={MonoLisa Italic}Scale=0.8] BoldFont = Noto Serif Bold,
ItalicFont = Noto Serif Italic,
BoldItalicFont = Noto Serif Bold Italic,
Scale = 1.0,
Ligatures = {Common, TeX},
Numbers = {Lowercase, Proportional},
SmallCapsFeatures = {Letters = SmallCaps},
WordSpace = 1.1,
PunctuationSpace = 2
]
\setsansfont{Noto Sans}[
UprightFont = Noto Sans Regular,
BoldFont = Noto Sans Bold,
ItalicFont = Noto Sans Italic,
BoldItalicFont = Noto Sans Bold Italic,
Scale = 1.0,
Ligatures = {Common, TeX},
Numbers = {Lowercase, Proportional},
SmallCapsFeatures = {Letters = SmallCaps},
WordSpace = 1.1,
PunctuationSpace = 2
]
\setmonofont{Noto Sans Mono Condensed Light}[
Scale = 0.8
]
\linespread{1.15} \linespread{1.15}
% Geometry settings % Geometry settings
\geometry{a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm, marginparwidth=1.5cm} \geometry{
a4paper,
left=2.5cm,
right=2.5cm,
top=2.5cm,
bottom=2.5cm,
marginparwidth=1.5cm
}
% Header and footer settings with scrlayer-scrpage % Header and footer settings with scrlayer-scrpage
\pagestyle{scrheadings} \pagestyle{scrheadings}
@ -111,16 +142,10 @@
\lstset{ \lstset{
basicstyle=\small\ttfamily, basicstyle=\small\ttfamily,
breaklines=true, breaklines=true,
backgroundcolor=\color{lightgray!30}, backgroundcolor=\color{lightgray!10},
frame=single, frame=single,
rulecolor=\color{lightgray}, rulecolor=\color{lightgray},
numbers=left,
numberstyle=\tiny\color{gray},
numbersep=5pt,
showstringspaces=false, showstringspaces=false,
keywordstyle={\color[rgb]{0.23, 0.26, 0.32}\bfseries},
commentstyle={\color[rgb]{0.26, 0.30, 0.37}},
stringstyle={\color[rgb]{0.18, 0.20, 0.25}},
keepspaces=true, keepspaces=true,
showspaces=false, showspaces=false,
showtabs=false, showtabs=false,
@ -129,10 +154,21 @@
columns=fullflexible, columns=fullflexible,
aboveskip=1em, aboveskip=1em,
belowskip=1em, belowskip=1em,
morecomment=[l]{\#}, morecomment=[l]{;},
morecomment=[s]{"}{"}, morestring=[b]",
moredelim=[is][\color[rgb]{0.26, 0.30, 0.37}]{"}{"}, literate={-}{{-}}1 {'}{{'}}{1},
literate={"}{"}2 {"}{"}2 keywordstyle=\color{blue}\bfseries,
commentstyle=\color{green!60!black}\itshape,
stringstyle=\color{red!80!black},
emphstyle=\color{purple}\bfseries,
emph={defun, setq, let, if, cond, loop, car, cdr, cons}
}
\lstdefinestyle{numbers}{
numbers=left,
stepnumber=1,
numberstyle=\tiny,
numbersep=3pt
} }
% Set description items to italic % Set description items to italic