Compare commits

...

7 Commits

6 changed files with 179 additions and 14 deletions

View File

@ -49,6 +49,9 @@
% but may interfere with automatic management. % but may interfere with automatic management.
% ============================================================================== % ==============================================================================
% Ensure content starts on a new page
\clearpage
% --- CHAPTER LIST START --- (Do not remove this marker) % --- CHAPTER LIST START --- (Do not remove this marker)
% --- CHAPTER LIST END --- (Do not remove this marker) % --- CHAPTER LIST END --- (Do not remove this marker)

View File

@ -15,6 +15,7 @@
% Create a new chapter for the bibliography % Create a new chapter for the bibliography
% This appears in the table of contents as "Literaturverzeichnis" % This appears in the table of contents as "Literaturverzeichnis"
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
\clearpage
\chapter{Literaturverzeichnis} \chapter{Literaturverzeichnis}
\label{chap:bibliography} \label{chap:bibliography}

View File

@ -31,6 +31,20 @@
% (This allows continuous equation numbering throughout the document) % (This allows continuous equation numbering throughout the document)
\counterwithout{equation}{chapter} \counterwithout{equation}{chapter}
% ==============================================================================
% Equation Formatting Configuration
% ==============================================================================
% Set equation indentation to 1cm from margin
% Note: Equation indentation requires document class configuration
% This will be handled via custom equation environments if needed
% Configure vertical spacing around equations
% Two lines spacing before and after equations as per requirements
\setlength{\abovedisplayskip}{24pt plus 6pt minus 6pt}
\setlength{\belowdisplayskip}{24pt plus 6pt minus 6pt}
\setlength{\abovedisplayshortskip}{12pt plus 3pt minus 3pt}
\setlength{\belowdisplayshortskip}{12pt plus 3pt minus 3pt}
% ============================================================================== % ==============================================================================
% End of Equations Configuration Module % End of Equations Configuration Module
% ============================================================================== % ==============================================================================

View File

@ -7,6 +7,12 @@
% License: Creative Commons CC BY 4.0 % License: Creative Commons CC BY 4.0
% ============================================================================== % ==============================================================================
% ==============================================================================
% Required Packages
% ==============================================================================
\usepackage{lastpage} % For "Page X of Y" functionality
\usepackage{fancyhdr} % Already loaded, but ensure it's available
% ============================================================================== % ==============================================================================
% Page Style Configuration % Page Style Configuration
% ============================================================================== % ==============================================================================
@ -28,22 +34,89 @@
% Clear all header and footer fields % Clear all header and footer fields
\fancyhf{} \fancyhf{}
% Configure header % ------------------------------------------------------------------------------
\fancyhead[L]{\color{gray}\blenderfont \@title} % Document title on left % Header Configuration
\fancyhead[R]{\pagemark} % Page number on right % ------------------------------------------------------------------------------
% Left header: Chapter number and title
% Right header: Empty (no page number in header as per requirements)
\fancyhead[L]{%
\color{gray}\blenderfont%
\ifnum\value{chapter}>0%
\thechapter\quad\leftmark%
\fi%
}
\fancyhead[R]{} % Empty right header
% Clear footer % Update chapter marks to show only chapter name without "Chapter" prefix
\fancyfoot[C]{} \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{} % Don't show sections in header
% ------------------------------------------------------------------------------
% Footer Configuration
% ------------------------------------------------------------------------------
% Footer format: Author Name | Module Name | Page X of Y
% The footer is centered and uses proper spacing
\fancyfoot[C]{%
\color{gray}\blenderfont%
\@author%
\quad|\quad%
\ifdef{\modulename}{\modulename}{Modul-Name}%
\quad|\quad%
Seite~\thepage~von~\pageref{LastPage}%
}
% ==============================================================================
% Plain Page Style (for chapter pages)
% ==============================================================================
% Define the plain page style (used on chapter start pages)
\fancypagestyle{plain}{
\fancyhf{}
% No header on chapter start pages
\fancyhead[L]{}
\fancyhead[R]{}
% Same footer as regular pages
\fancyfoot[C]{%
\color{gray}\blenderfont%
\@author%
\quad|\quad%
\ifdef{\modulename}{\modulename}{Modul-Name}%
\quad|\quad%
Seite~\thepage~von~\pageref{LastPage}%
}
\renewcommand{\headrulewidth}{0pt}
}
% ============================================================================== % ==============================================================================
% Fancy Page Style Definition % Fancy Page Style Definition
% ============================================================================== % ==============================================================================
% Define the fancy page style explicitly % Explicitly define the fancy page style
\fancypagestyle{fancy}{ \fancypagestyle{fancy}{
\fancyhf{} \fancyhf{}
\fancyhead[L]{\color{gray}\blenderfont \@title} \fancyhead[L]{%
\fancyhead[R]{\pagemark} \color{gray}\blenderfont%
\fancyfoot[C]{} \ifnum\value{chapter}>0%
\thechapter\quad\leftmark%
\fi%
}
\fancyhead[R]{}
\fancyfoot[C]{%
\color{gray}\blenderfont%
\@author%
\quad|\quad%
\ifdef{\modulename}{\modulename}{Modul-Name}%
\quad|\quad%
Seite~\thepage~von~\pageref{LastPage}%
}
}
% ==============================================================================
% Chapter Start Configuration
% ==============================================================================
% Ensure chapters start on a new page
\let\originalchapter\chapter
\renewcommand{\chapter}[1]{%
\clearpage%
\originalchapter{#1}%
} }
% ============================================================================== % ==============================================================================

View File

@ -1,6 +1,71 @@
% !TEX root = ../../Main.tex % !TEX root = ../HSRTReport.cls
% ==== Page Style ==== % ==============================================================================
% Typography Configuration Module
% ==============================================================================
% Description: Typography settings including text alignment, spacing, and formatting
% Author: Frederik Beimgraben
% License: Creative Commons CC BY 4.0
% ==============================================================================
% ==============================================================================
% Page Style Configuration
% ==============================================================================
\pagestyle{fancy} \pagestyle{fancy}
% ==============================================================================
% Line and Paragraph Spacing
% ==============================================================================
% Line spacing % Line spacing
\renewcommand{\baselinestretch}{1.5} \renewcommand{\baselinestretch}{1.5}
% ==============================================================================
% Text Alignment
% ==============================================================================
% Use justified text (Blocksatz) - this is the default in LaTeX
% No \raggedright command needed
% Enable hyphenation for better text distribution in justified text
% Lower penalties encourage more hyphenation for better spacing
\hyphenpenalty=500
\exhyphenpenalty=500
\tolerance=1000
\emergencystretch=3em
% Prevent excessive word spacing in justified text
\spaceskip=0.3em plus 0.2em minus 0.1em
\xspaceskip=0.6em plus 0.3em minus 0.15em
% ==============================================================================
% Widow and Orphan Control
% ==============================================================================
% Prevent single lines at the beginning or end of a page
% High penalties discourage but don't absolutely prevent widows/orphans
\widowpenalty=10000
\clubpenalty=10000
\displaywidowpenalty=10000
% Prevent page breaks right after section headings
\@beginparpenalty=10000
\@endparpenalty=10000
% ==============================================================================
% List Formatting
% ==============================================================================
% Define a list paragraph style with no spacing between items
% This will be used for compact lists as required
\newenvironment{listenabsatz}{%
\begin{itemize}[nosep,left=0pt,labelwidth=*,itemsep=0pt,parsep=0pt,topsep=0pt]%
}{%
\end{itemize}%
}
% Also provide enumerated version
\newenvironment{listenabsatz*}{%
\begin{enumerate}[nosep,left=0pt,labelwidth=*,itemsep=0pt,parsep=0pt,topsep=0pt]%
}{%
\end{enumerate}%
}
% ==============================================================================
% End of Typography Configuration Module
% ==============================================================================

View File

@ -136,6 +136,15 @@
Seminararbeit, wissenschaftliche Ausarbeitung, Bachelor-Thesis, Studium, Plagiat Seminararbeit, wissenschaftliche Ausarbeitung, Bachelor-Thesis, Studium, Plagiat
} }
% ------------------------------------------------------------------------------
% Module Name
% ------------------------------------------------------------------------------
% The module name for this document (appears in footer)
% This is typically the course or module code and name
% Example: \newcommand{\modulename}{SAT - Seminararbeit Technik}
% ------------------------------------------------------------------------------
\newcommand{\modulename}{Modulname}
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% List of Equations Configuration % List of Equations Configuration
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
@ -161,8 +170,8 @@
\setlength{\parindent}{0pt} \setlength{\parindent}{0pt}
% Paragraph spacing (space between paragraphs) % Paragraph spacing (space between paragraphs)
% Default is usually appropriate, but can be adjusted if needed % Set to 6pt as per document requirements
% Example: \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\parskip}{6pt}
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Optional: Custom Author Commands % Optional: Custom Author Commands