commit: 42727c20f2d4a0a9c171fe285c741719b800b106 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun Dec 1 11:28:53 2024 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Jan 9 17:36:33 2025 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=42727c20
pms.cls: Fine-tune page breaking and float placement Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> pms.cls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pms.cls b/pms.cls index 571232f..006aed3 100644 --- a/pms.cls +++ b/pms.cls @@ -177,6 +177,15 @@ \setlength\hfuzz{0.2pt} % was 0.1pt \setlength\emergencystretch{1em} % was 0 +% Avoid widows and orphans +\widowpenalty=500 % was 150 +\clubpenalty=500 % was 150 + +% Allow more floats on one page because we have many small tables +\setcounter{topnumber}{5} % was 2 +\setcounter{bottomnumber}{2} % was 1 +\setcounter{totalnumber}{5} % was 3 + % Don't add extra vertical space, to avoid underfull boxes. Only affects % two-sided layout, for one-sided it is already the default \raggedbottom