From 01db575606e2939bf2403d12c104424019336193 Mon Sep 17 00:00:00 2001 From: samcarter Date: Tue, 18 Jun 2024 21:25:22 +0200 Subject: [PATCH] fixed missing `\newline` if ragged2e is used together with beamerarticle (#901) --- CHANGELOG.md | 1 + base/beamerbasecompatibility.sty | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ae9e71..0e16e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ a major and minor version only. - fixed problem if inmargin theme is used with the `usepdftitle=false` class option (see #885) - fixed spacing problem for right-aligned frametitles without background colour +- fixed missing `\newline` if ragged2e is used together with beamerarticle (#900) ## [v3.71] diff --git a/base/beamerbasecompatibility.sty b/base/beamerbasecompatibility.sty index 63525e7..e09f639 100644 --- a/base/beamerbasecompatibility.sty +++ b/base/beamerbasecompatibility.sty @@ -284,6 +284,21 @@ } } +% +% Fix for ragged2e in article mode (#900) +% +\mode +
+{ + \def\@raggedtwoe@centercrNoindent{% + \AddToHookNext{para/begin}{% + \ifx\@raggedtwoe@everyselectfont\relax\else + \OmitIndent + \fi + }% + \beamer@origbreakcenter + }% +} % % Obsolete commands from old versions of beamer