Skip to content

Commit

Permalink
avoid frame breaks between block title and body for rectangular blocks
Browse files Browse the repository at this point in the history
Test file:
```
\documentclass{beamer}

\usecolortheme{orchid}

\begin{document}

\begin{frame}[allowframebreaks]
  \begin{block}{title}
  \vspace{5cm}
  \end{block}
  \begin{block}{title}
   \vspace{5cm}
  \end{block}
\end{frame}

\end{document}
```
  • Loading branch information
samcarter committed Aug 30, 2024
1 parent 45e0b7c commit 8af7e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ a major and minor version only.
- unified usage of `(sub)section in head/foot` template in headlines
- simplify decision tree for `\beamer@howtotreatframe` (see #874)
- added `\maketitle`, `\title`, `\author`, `\institute` and `\date` to the exceptions for `ignorenonframetext`
- avoid frame breaks between block title and body for rectangular blocks

### Fixed

Expand Down
6 changes: 3 additions & 3 deletions base/themes/inner/beamerinnerthemedefault.sty
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=.75ex]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
\end{beamercolorbox}\noframebreak%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title}
{}
Expand All @@ -409,7 +409,7 @@
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=.75ex]{block title alerted}
\usebeamerfont*{block title alerted}\insertblocktitle%
\end{beamercolorbox}%
\end{beamercolorbox}\noframebreak%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title alerted}
{}
Expand All @@ -428,7 +428,7 @@
\par\vskip\medskipamount%
\begin{beamercolorbox}[colsep*=.75ex]{block title example}
\usebeamerfont*{block title example}\insertblocktitle%
\end{beamercolorbox}%
\end{beamercolorbox}\noframebreak%
{\parskip0pt\par}%
\ifbeamercolorempty[bg]{block title example}
{}
Expand Down

0 comments on commit 8af7e4e

Please sign in to comment.