Skip to content

Commit de65fd0

Browse files
jensmaurertkoeppe
authored andcommitted
[macros] Prefer a page break after note or example.
1 parent d12066a commit de65fd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/macros.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@
303303
{\noteoutro{#3}}
304304
\newenvironment{#1}
305305
{\begin{tail#1}}
306-
{\end{tail#1}\small\par} % \small\par is for C++20 post-DIS compatibility
306+
% \small\par is for C++20 post-DIS compatibility
307+
{\end{tail#1}\small\par\penalty -200}
308+
307309
}
308310

309311
\newnoteenvironment{note}{Note \arabic{note}}{end note}

0 commit comments

Comments
 (0)