commit: e8eaa166a519369a740f95b08461e3fc5aa20a46
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: Mon Dec 9 20:05:42 2024 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=e8eaa166
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