72 lines
2.8 KiB
TeX
72 lines
2.8 KiB
TeX
% !TEX root = ../HSRTReport.cls
|
|
% ==============================================================================
|
|
% 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}
|
|
|
|
% ==============================================================================
|
|
% Line and Paragraph Spacing
|
|
% ==============================================================================
|
|
% Line spacing
|
|
\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
|
|
% ==============================================================================
|