From beb4f402ab1fb8a68d6d274dfb7ad80f72da469b Mon Sep 17 00:00:00 2001 From: samcarter Date: Thu, 14 Nov 2024 12:48:51 +0100 Subject: [PATCH] added `\gdef\@currentHref{#2}` to labels (close #917 , close #903) (#918) --- CHANGELOG.md | 1 + base/beamerbaseoverlay.sty | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ff74b9..bd6fc77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ a major and minor version only. - 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 +- added `\gdef\@currentHref{#2}` to labels (see #917) ### Fixed diff --git a/base/beamerbaseoverlay.sty b/base/beamerbaseoverlay.sty index 18e247c..4876b95 100644 --- a/base/beamerbaseoverlay.sty +++ b/base/beamerbaseoverlay.sty @@ -848,7 +848,7 @@ \def\label@in@display{\@ifnextchar<{\beamer@label@in@display}{\beamer@label@in@display<1>}} } -\def\beamer@label<#1>#2{\alt<#1>{\beamer@origlabel{#2}\beamer@nameslide{#2}}{\beamer@dummynameslide}} +\def\beamer@label<#1>#2{\alt<#1>{\gdef\@currentHref{#2}\beamer@origlabel{#2}\beamer@nameslide{#2}}{\beamer@dummynameslide}} \def\beamer@label@in@display<#1>#2{\alt<#1>{\beamer@origlabel@in@display{#2}\beamer@nameslide{#2}}{\beamer@dummynameslide}} \mode