Korrigiere Textausrichtung auf Blocksatz mit Silbentrennung
This commit is contained in:
parent
a51e2a84d9
commit
5a3d532c85
@ -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}%
|
||||||
}
|
}
|
||||||
|
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
|
|||||||
@ -21,14 +21,19 @@
|
|||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
% Text Alignment
|
% Text Alignment
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
% Set left-justified text with ragged right edge (Flattersatz)
|
% Use justified text (Blocksatz) - this is the default in LaTeX
|
||||||
% This applies to the main text body
|
% No \raggedright command needed
|
||||||
\raggedright
|
|
||||||
|
|
||||||
% Enable hyphenation for better text distribution
|
% Enable hyphenation for better text distribution in justified text
|
||||||
% Even with ragged right, hyphenation improves readability
|
% Lower penalties encourage more hyphenation for better spacing
|
||||||
\hyphenpenalty=750
|
\hyphenpenalty=500
|
||||||
\exhyphenpenalty=750
|
\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
|
% Widow and Orphan Control
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user