summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-05-18 21:43:12 +0200
committerUlrich Müller <ulm@gentoo.org>2021-05-21 06:42:39 +0200
commit3e558f678cf36228c51eaf36d59a48577c3e25e3 (patch)
tree7f2bcb8fa0ddc09291dc9c789d94473685759f55 /pms.cls
parentpms.cls: Require version 1 of parskip.sty (diff)
downloadpms-3e558f678cf36228c51eaf36d59a48577c3e25e3.tar.gz
pms-3e558f678cf36228c51eaf36d59a48577c3e25e3.tar.bz2
pms-3e558f678cf36228c51eaf36d59a48577c3e25e3.zip
Fix bad page breaks before lists
Taken from https://tex.stackexchange.com/a/2645. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'pms.cls')
-rw-r--r--pms.cls3
1 files changed, 3 insertions, 0 deletions
diff --git a/pms.cls b/pms.cls
index 1a09407..2e2e9bf 100644
--- a/pms.cls
+++ b/pms.cls
@@ -131,6 +131,9 @@
\floatname{listing}{Listing}
\newcommand{\listoflistings}{\listof{listing}{List of Listings}}
+% Prevent page break before a list
+\newcommand{\nobreakpar}{\par\nobreak\@afterheading}
+
% Silence hyperref messages (see hint 11.3 in the hyperref manual)
\providecommand*{\toclevel@algorithm}{0}
\providecommand*{\toclevel@listing}{0}