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

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