diff --git a/README.md b/README.md index 4866395..32d5d44 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# handoutWithNotes.sty 2022/02/02 v1.2 +# handoutWithNotes.sty 2022/02/22 v1.3 Create Handouts with notes from your LaTeX beamer presentation. @@ -49,6 +49,7 @@ Additionally we support the following package options: Additionally the pgfpages options can be used. for more detailed information use the pdf documentation. ## Version History +* v1.3 (2022-02-22) Clear leftover boxes with notes * v1.2 (2022-02-02) Add support for DVI–PS–PDF workflows * v1.1 (2021-11-07) - convert the sources for l3build including simple tests diff --git a/handoutWithNotes.dtx b/handoutWithNotes.dtx index 9fbe264..6594cce 100644 --- a/handoutWithNotes.dtx +++ b/handoutWithNotes.dtx @@ -34,7 +34,7 @@ %\NeedsTeXFormat{LaTeX2e}[2020/10/01] %\ProvidesPackage{handoutWithNotes} %<*package> - [2022/02/02 v1.2 pgfpages layouts to print beamer slides with notes] + [2022/02/22 v1.3 pgfpages layouts to print beamer slides with notes] % % %<*driver> @@ -883,6 +883,12 @@ \int_compare:nTF {\g_handoutWithNotes_current_note_page_int=\the\pgf@lastshipout} { +% \end{macrocode} +% \changes{1.2}{2022/02/22}{Clear leftover beamer Notes when starting a new page} +% \begin{macrocode} + \int_step_variable:nNn {\pgf@lastshipout} \l_tmpa_int { + \box_gclear:c { pgfpages@box@ \int_eval:n {\l_tmpa_int + \the\pgf@lastshipout}} + } \int_gset:Nn \g_handoutWithNotes_current_note_page_int {1} } { \int_gincr:N \g_handoutWithNotes_current_note_page_int