Beamer template: added code to prevent slide breaks inside paragraphs.

This will matter, in pracitce, only when `allowframebreaks` is used.

It is especially helpful for bibliography slides.

Closes #2442. Thanks to Nick Bart for the solution.
This commit is contained in:
John MacFarlane 2015-10-30 11:04:48 -07:00
parent a3c8439ad6
commit 12a0110a0a

View file

@ -122,6 +122,10 @@ $if(graphics)$
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
$endif$ $endif$
% Prevent slide breaks in the middle of a paragraph:
\widowpenalties 1 10000
\raggedbottom
% Comment these out if you don't want a slide with just the % Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title: % part/section/subsection/subsubsection title:
\AtBeginPart{ \AtBeginPart{