Update komageneral

This commit is contained in:
Marcus Kammer 2025-01-12 20:16:32 +01:00
parent 75bcf695be
commit a83ef1f3b5
Signed by: marcuskammer
GPG key ID: C374817BE285268F
2 changed files with 21 additions and 42 deletions

View file

@ -6,17 +6,17 @@
(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" "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") ("biblatex" "") ("float" "") ("xcolor" "table") ("booktabs" "") ("grffile" "") ("unicode-math" "") ("adjustbox" "Export") ("graphicx" "") ("etoolbox" "") ("longtable" "") ("wrapfig" "") ("rotating" "") ("ulem" "normalem") ("amsmath" "") ("amssymb" "") ("capt-of" "") ("hyperref" "") ("array" "") ("pdfx" "a-1a") ("listings" "") ("csvsimple" "")))
(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 "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-braces-local "href")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") (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-delims-local "lstinline")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
(TeX-run-style-hooks (TeX-run-style-hooks
"fontspec" "fontspec"
"geometry" "geometry"
@ -24,7 +24,6 @@
"enumitem" "enumitem"
"caption" "caption"
"microtype" "microtype"
"polyglossia"
"biblatex" "biblatex"
"float" "float"
"xcolor" "xcolor"
@ -44,16 +43,14 @@
"hyperref" "hyperref"
"array" "array"
"pdfx" "pdfx"
"listings") "listings"
"csvsimple")
(TeX-add-symbols (TeX-add-symbols
'("TitlePage" 3) '("TitlePage" 3)
'("code" 1) '("code" 1)
'("important" 1)) '("important" 1))
(LaTeX-add-environments (LaTeX-add-environments
"oldtabular") "oldtabular")
(LaTeX-add-polyglossia-langs
'("english" "defaultlanguage" "")
'("german" "otherlanguages" ""))
(LaTeX-add-xcolor-definecolors (LaTeX-add-xcolor-definecolors
"darkgray" "darkgray"
"lightgray") "lightgray")

View file

@ -7,7 +7,6 @@
\usepackage{enumitem} \usepackage{enumitem}
\usepackage{caption} \usepackage{caption}
\usepackage[protrusion=true,expansion=true,final,tracking=true,kerning=true]{microtype} \usepackage[protrusion=true,expansion=true,final,tracking=true,kerning=true]{microtype}
\usepackage{polyglossia}
\usepackage{biblatex} \usepackage{biblatex}
\usepackage{float} \usepackage{float}
\usepackage[table]{xcolor} \usepackage[table]{xcolor}
@ -24,10 +23,11 @@
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{capt-of} \usepackage{capt-of}
\usepackage[pdfusetitle]{hyperref} \usepackage{hyperref}
\usepackage{array} \usepackage{array}
\usepackage[a-1a]{pdfx} \usepackage[a-1a]{pdfx}
\usepackage{listings} \usepackage{listings}
\usepackage{csvsimple}
\KOMAoptions{ \KOMAoptions{
captions=tableheading, captions=tableheading,
@ -40,9 +40,6 @@
\definecolor{darkgray}{RGB}{64,64,64} \definecolor{darkgray}{RGB}{64,64,64}
\definecolor{lightgray}{RGB}{200,200,200} \definecolor{lightgray}{RGB}{200,200,200}
\setdefaultlanguage{english}
\setotherlanguages{german}
\adjustboxset{max size={\textwidth}{0.6\textheight}} \adjustboxset{max size={\textwidth}{0.6\textheight}}
% Font settings % Font settings
@ -107,13 +104,14 @@
\setkomafont{subsection}{\Large\bfseries\sffamily\color{darkgray}} \setkomafont{subsection}{\Large\bfseries\sffamily\color{darkgray}}
\setkomafont{subsubsection}{\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 % Define the spacing between title and content
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.2\baselineskip]{section} % \RedeclareSectionCommand[beforeskip=-1sp,afterskip=0.2\baselineskip]{section}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.3\baselineskip]{subsection} % \RedeclareSectionCommand[beforeskip=-1sp,afterskip=0.3\baselineskip]{subsection}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.4\baselineskip]{subsubsection} % \RedeclareSectionCommand[beforeskip=-1sp,afterskip=0.4\baselineskip]{subsubsection}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.2\baselineskip, afterindent=false]{section}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.3\baselineskip, afterindent=false]{subsection}
\RedeclareSectionCommand[beforeskip=\baselineskip, afterskip=0.4\baselineskip, afterindent=false]{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}}
@ -182,24 +180,6 @@
numbersep=3pt numbersep=3pt
} }
% Enhance your hyperref setup
\hypersetup{
colorlinks=true,
linkcolor=darkgray,
filecolor=darkgray,
urlcolor=darkgray,
citecolor=darkgray,
% pdftitle={Your Document Title},
% pdfauthor={Your Name},
% pdfsubject={Document Subject},
% pdfkeywords={keyword1, keyword2},
pdfstartview={FitV},
pdfview={FitV},
pdfpagemode={UseOutlines},
bookmarksopen=true,
bookmarksnumbered=true
}
\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}
@ -209,3 +189,5 @@
\setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape} \setlist[description]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt, font=\normalfont\itshape}
\setlist[itemize]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt} \setlist[itemize]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt}
\setlist[enumerate]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt} \setlist[enumerate]{topsep=3pt, partopsep=0pt, parsep=0pt, itemsep=2pt}
\renewcommand{\lstlistlistingname}{List of Code Snippets}