Skip to content

Commit

Permalink
clear leftover notes to resolve #10
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXhackse committed Feb 22, 2022
1 parent 63b3736 commit 328910e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion handoutWithNotes.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
%<package>\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]
%</package>
%
%<*driver>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 328910e

Please sign in to comment.