Use \raggedright for headings in PDF to avoid awkward spacing

This commit is contained in:
RunasSudo 2021-02-22 19:02:48 +11:00
parent f3ea38e9db
commit afc151913f
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@
\geometry{paperwidth=\dimexpr\trimwidth-\gutteradd\relax,paperheight=\trimheight,margin=\stdmargin,bottom=\dimexpr\stdmargin+\bottomadd\relax} % Deduct 4mm from width to account for gutter
\fi
% Heading style
\titleformat{\section}{\Large\raggedright\py@HeaderFamily}{\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor} % Add \raggedright
% Footnote style
\usepackage[hang,bottom]{footmisc}
\setlength{\footnotemargin}{0.4cm}