From ab50e8e02598adff16d95266ef18878345dba135 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 20 Aug 2026 00:11:19 +0900 Subject: [PATCH] Extend frames for overlay-specified notes, as beamer does A frame whose only <2> sat on a \note lost its second slide: beamer counts note specs toward the slide count, and talk-notes did not. Feed the spec through the class's overlay test, discarding the result; its side effect asks for the slides the spec names. Co-Authored-By: Claude Fable 5 --- slides_template/talk-notes.sty | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/slides_template/talk-notes.sty b/slides_template/talk-notes.sty index 456b668..9b46620 100644 --- a/slides_template/talk-notes.sty +++ b/slides_template/talk-notes.sty @@ -70,6 +70,14 @@ % output lines. \NewDocumentCommand \note { d<> o +m } { + % Run the spec through the class's overlay test, discarding the result: + % its side effect asks for the slides the spec names, so a frame whose + % only <2> is on a note still gets two slides, as under beamer. + \IfNoValueF {#1} + { + \cs_if_exist:NT \__talk_if_overlay:nT + { \__talk_if_overlay:nT {#1} { } } + } \iow_now:Nx \g__talknotes_iow { NOTE ~ FRAME ~ \int_use:N \g__talk_frame_int |