Instead of \geometry use komaoptions; Define TitlePage

This commit is contained in:
Marcus Kammer 2025-01-16 20:28:12 +01:00
parent db44646300
commit 8290c1e170
Signed by: marcuskammer
GPG key ID: C374817BE285268F
2 changed files with 29 additions and 17 deletions

View file

@ -46,7 +46,7 @@
"listings" "listings"
"csvsimple") "csvsimple")
(TeX-add-symbols (TeX-add-symbols
'("TitlePage" 3) '("TitlePage" 1)
'("code" 1) '("code" 1)
'("important" 1)) '("important" 1))
(LaTeX-add-environments (LaTeX-add-environments

View file

@ -30,15 +30,24 @@
\usepackage{csvsimple} \usepackage{csvsimple}
\KOMAoptions{ \KOMAoptions{
DIV=12,
BCOR=10mm,
twoside=true, twoside=true,
toc=listof, toc=listof,
titlepage=false, titlepage=false,
headings=normal headings=normal,
headsepline=true,
footsepline=false,
headinclude=false,
footinclude=false,
mpinclude=false,
titlepage=true
} }
\definecolor{darkgray}{RGB}{64,64,64} \definecolor{darkgray}{RGB}{64,64,64}
\definecolor{lightgray}{RGB}{200,200,200} \definecolor{lightgray}{RGB}{200,200,200}
% necessary to set max height and width for images
\adjustboxset{max size={\textwidth}{0.6\textheight}} \adjustboxset{max size={\textwidth}{0.6\textheight}}
% Font settings % Font settings
@ -71,17 +80,18 @@
Scale = 1.0 Scale = 1.0
] ]
% better readability on screen
\linespread{1.15} \linespread{1.15}
% Geometry settings % Geometry settings
\geometry{ % \geometry{
a4paper, % a4paper,
left=2.5cm, % left=2.5cm,
right=2.5cm, % right=2.5cm,
top=2.5cm, % top=2.5cm,
bottom=2.5cm, % bottom=2.5cm,
marginparwidth=1.5cm % marginparwidth=1.5cm
} % }
% % Header and footer settings with scrlayer-scrpage % % Header and footer settings with scrlayer-scrpage
\pagestyle{scrheadings} \pagestyle{scrheadings}
@ -96,7 +106,7 @@
\setkomafont{pagehead}{\normalfont} \setkomafont{pagehead}{\normalfont}
% Add lines under the header and above the footer % Add lines under the header and above the footer
\setheadsepline{0.2pt} % Thickness of the header line % \setheadsepline{0.2pt} % Thickness of the header line
% 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}}
@ -133,16 +143,18 @@
\newcommand{\code}[1]{\texttt{#1}} \newcommand{\code}[1]{\texttt{#1}}
% Title page settings % Title page settings
\newcommand{\TitlePage}[3]{ % #1 - Logo file, #2 - Company name, #3 - Title \newcommand{\TitlePage}[1]{
\begin{titlepage} \begin{titlepage}
\centering \centering
\vspace*{1cm} \vspace*{1cm}
\includegraphics[width=0.3\textwidth]{#1}\par\vspace{1cm} \includegraphics[width=0.3\textwidth]{#1}\par
{\Huge #2\par}
\vspace{2cm} \vspace{2cm}
{\Large #3\par} {\huge\bfseries \@title\par}
\vfill {\Large \@subtitle\par}
{\large \today\par} \vspace{2cm}
{\large \@author\par}
\vspace{0.5cm}
{\normalsize \@date\par}
\end{titlepage} \end{titlepage}
} }