summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-07 21:26:56 +0000
committerKarl Berry <karl@freefriends.org>2021-11-07 21:26:56 +0000
commit8570de9740a5811688140f451d3b90cc21dae166 (patch)
treef828fd8c846052d7b676e3c9fcb3c9b909c5a892 /Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
parent6b3de0661fae7e58da12a5ad0766d830d42316bd (diff)
handoutwithnotes (7nov21)
git-svn-id: svn://tug.org/texlive/trunk@60986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty1051
1 files changed, 512 insertions, 539 deletions
diff --git a/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty b/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
index e2a6d7bf10f..4a03ae6df92 100644
--- a/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
+++ b/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
@@ -1,7 +1,16 @@
-% Copyright (C) 2009–2018 by Guido Diepen <guido@guidodiepen.nl>
-% Parts provided by Edson Valle
-% Copyright (C) 2021 Marei Peischl <marei@peitex.de>
-%
+%%
+%% This is file `handoutWithNotes.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% handoutWithNotes.dtx (with options: `package')
+%% ============================================================================
+%%
+%% Copyright (C) 2009–2018 by Guido Diepen <guido@guidodiepen.nl>
+%% Parts provided by Edson Valle
+%% Copyright (C) 2021 Marei Peischl <marei@peitex.de>
+%%
%% ============================================================================
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -10,169 +19,213 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
-%%
+%%
%% This work has the LPPL maintenance status `maintained'.
-%%
+%%
%% The Current Maintainers of this work are
-%% Marei Peischl <marei@peitex.de>
-%% Guido Diepen <guido@guidodiepen.nl>
-%%
+%% Marei Peischl <marei@peitex.de>
+%% Guido Diepen <guido@guidodiepen.nl>
+%%
%% The development respository can be found at
%% https://github.com/gdiepen/latexbeamer-handoutWithNotes
%% Please use the issue tracker for feedback!
-%%
+%%
%% ============================================================================
-%%
-
-\ProvidesPackage{handoutWithNotes}[2021/10/21 v1.0 pgfpages layouts to print beamer slides with notes]
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{handoutWithNotes}
+ [2021/11/10 v1.1 pgfpages layouts to print beamer slides with notes]
+\ProvidesPackage{handoutWithNotes}[2021/11/07 v1.1
+ pgfpages layouts to print beamer slides with notes]
\RequirePackage{l3keys2e}
\ExplSyntaxOn
+\dim_new:N \g_handoutWithNotes_gridsize_dim
+\dim_gset:Nn \g_handoutWithNotes_gridsize_dim {5mm}
\keys_define:nn {handoutWithNotes} {
- slide-frame .bool_gset:N = \g__handoutWithNotes_print_slide_frame_bool,
- slide-frame .initial:n = false,
- slide-frame .default:n = true,
- note-frame .bool_gset:N = \g__handoutWithNotes_print_note_frame_bool,
- note-frame .initial:n = false,
- note-frame .default:n = true,
- beamer-notes .bool_gset:N = \g__handoutWithNotes_beamer_notes_bool,
- beamer-notes .initial:n = false,
- beamer-notes .default:n = true,
- lines .int_gset:N = \g_handoutWithNotes_lines_int,
- lines .initial:n = 8
+ slide-frame .bool_gset:N = \g_handoutWithNotes_print_slide_frame_bool,
+ slide-frame .initial:n = false,
+ slide-frame .default:n = true,
+ note-frame .bool_gset:N = \g_handoutWithNotes_print_note_frame_bool,
+ note-frame .initial:n = false,
+ note-frame .default:n = true,
+ beamer-notes .bool_gset:N = \g_handoutWithNotes_beamer_notes_bool,
+ beamer-notes .initial:n = false,
+ beamer-notes .default:n = true,
+ lines .int_gset:N = \g_handoutWithNotes_lines_int,
+ lines .initial:n = 8,
+ rule .dim_gset:N = \g_handoutWithNotes_rule_dim,
+ rule .initial:n = \fboxrule,
+ graph .bool_gset:N = \g_handoutWithNotes_graph_bool,
+ graph .default:n = true,
+ graph .initial:n = false,
+ graph / unknown .code:n = \bool_gset:N \g_handoutWithNotes_graph_bool
+ \dim_gset:Nn \g_handoutWithNotes_gridsize_dim {#1},
}
-
\ProcessKeysOptions{handoutWithNotes}
-
-\newcommand*{\handoutwithNotes@conditionalFrame}[1]{
- \bool_if:cT {g__handoutWithNotes_print_#1_frame_bool} {\pgfusepath{stroke}}
+\newcommand*{\handoutWithNotes@@conditionalFrame}[1]{
+ \bool_if:cT {g_handoutWithNotes_print_#1_frame_bool} {\pgfusepath{stroke}}
}
\ExplSyntaxOff
-
\RequirePackage{pgfpages}
\RequirePackage{translator}
-
\providetranslation[to=English]{Notes}{Notes}
\providetranslation[to=German]{Notes}{Notizen}
\providetranslation[to=French]{Notes}{Notes}
-
-
\ExplSyntaxOn
-
\cs_if_exist:NTF \pageheight {
- \cs_set:Nn \handoutWithNotes_pageheight: {\pageheight}
+ \cs_set:Nn \__handoutWithNotes_pageheight: {\pageheight}
} {
- \cs_set:Nn \handoutWithNotes_pageheight: {\pdfpageheight}
+ \cs_set:Nn \__handoutWithNotes_pageheight: {\pdfpageheight}
}
-
-\box_new:N \g__handoutWithNotes_notes_box
+\box_new:N \g_handoutWithNotes_notes_box
\tl_new:N \l_handoutWithNotes_title_tl
\hook_new:n {handoutWithNotes/notesbox}
\hook_new:n {handoutWithNotes/notesbox/title}
\hook_new:n {handoutWithNotes/notesbox/content}
-
-\newcommand{\handoutWithNotes@initNotesBox}[1]{
- \bool_if:NTF \g__handoutWithNotes_beamer_notes_bool {
- \beamer@twoscreensnotestrue
- \setbeameroption{show~notes}
- \gdef\beamer@currentmode{handout}
- \setbeamertemplate{note~page}[plain]
- \let\beamer@outsideframenote\handoutWithNotes@beamer@outsideframenote
- \msg_new:nnn {handoutWithNotes} {patch-beamer@outsideframenote} {I~am~patching~the~note~mechanism~to~be~able~to~place~multiple~note~pages~on~one~physical~page.}
- \msg_info:nn {handoutWithNotes} {patch-beamer@outsideframenote}
- }{
- \vbox_set:Nn \g__handoutWithNotes_notes_box {
- \hsize=\paperwidth
- \skip_vertical:n {-1in}
- \skip_horizontal:n {-1in}
- \vbox_to_ht:nn {\handoutWithNotes_pageheight:} {
- \skip_vertical:n {\topskip}
- \translatelet{\l_handoutWithNotes_title_tl}{Notes}%
- \hook_use:n {handoutWithNotes/notesbox}
- \tl_if_empty:NF \l_handoutWithNotes_title_tl {\hook_use:n {handoutWithNotes/notesbox/title}\l_handoutWithNotes_title_tl}
- \hook_use:n {handoutWithNotes/notesbox/content}
- \skip_vertical:n {\fill}
- \int_step_inline:nn {\g_handoutWithNotes_lines_int} {\hrule width\paperwidth\skip_vertical:n {\fill}}
- }
- }
- \int_step_inline:nnn {#1+1} {2*#1} {\pgfpagesshipoutlogicalpage{##1}\box_use:N \g__handoutWithNotes_notes_box}
- }
+\dim_new:N \l_handoutWithNotes_notes_dim
+\dim_new:N \l_handoutWithNotes_scaled_gridsize_dim
+\newcommand{\__handoutWithNotes@initNotesBox}[1]{
+ \bool_if:NTF \g_handoutWithNotes_beamer_notes_bool {
+ \beamer@twoscreensnotestrue
+ \setbeameroption{show~notes}
+ \gdef\beamer@currentmode{handout}
+ \setbeamertemplate{note~page}[plain]
+ \let\beamer@outsideframenote
+ \__handoutWithNotes@beamer@outsideframenote
+ \msg_new:nnn {handoutWithNotes} {patch-beamer@outsideframenote}
+ {I~am~patching~the~note~mechanism~to~be~able~to~place
+ ~multiple~note~pages~on~one~physical~page.}
+ \msg_info:nn {handoutWithNotes} {patch-beamer@outsideframenote}
+ }{
+ \dim_set:Nn \l_tmpa_dim {\pgfpageoptionwidth}
+ \dim_set:Nn \l_tmpb_dim {\pgfpageoptionborder}
+ \dim_set:Nn \l_handoutWithNotes_scaled_gridsize_dim {
+ \g_handoutWithNotes_gridsize_dim
+ * \dim_ratio:nn {\paperwidth}{.5\l_tmpa_dim - 2\l_tmpb_dim}
+ }
+ \vbox_gset:Nn \g_handoutWithNotes_notes_box {
+ \hsize=\paperwidth
+ \translatelet{\l_handoutWithNotes_title_tl}{Notes}%
+ \hook_use:n {handoutWithNotes/notesbox}
+ \tl_if_empty:NF \l_handoutWithNotes_title_tl {
+ \noindent\hook_use:n {handoutWithNotes/notesbox/title}
+ \l_handoutWithNotes_title_tl
+ }
+ }
+ \dim_set:Nn \l_handoutWithNotes_notes_dim {
+ \__handoutWithNotes_pageheight:
+ -\box_ht:N \g_handoutWithNotes_notes_box
+ -\box_dp:N \g_handoutWithNotes_notes_box
+ -\topskip
+ -\medskipamount
+ }
+ \vbox_gset:Nn \g_handoutWithNotes_notes_box {
+ \vbox_to_ht:nn {\__handoutWithNotes_pageheight:} {
+ \hsize=\paperwidth
+ \skip_vertical:n {-1in}
+ \skip_horizontal:n {-1in}
+ \vbox_to_ht:nn {\__handoutWithNotes_pageheight:} {
+ \skip_vertical:n {\topskip}
+ \hook_use:n {handoutWithNotes/notesbox}
+ \vbox_unpack_drop:N \g_handoutWithNotes_notes_box
+ \skip_vertical:n {\fill}
+ \hook_use:n {handoutWithNotes/notesbox/content}
+ \skip_vertical:n {\fill}
+ \bool_if:NTF \g_handoutWithNotes_graph_bool {
+ \vbox_to_ht:nn {\l_handoutWithNotes_notes_dim} {
+ \smash{
+ \rule[-\l_handoutWithNotes_notes_dim]
+ {\g_handoutWithNotes_rule_dim}
+ {\l_handoutWithNotes_notes_dim}
+ \dim_step_inline:nnnn
+ {
+ \l_handoutWithNotes_scaled_gridsize_dim
+ +\g_handoutWithNotes_rule_dim
+ }
+ {\l_handoutWithNotes_scaled_gridsize_dim+1sp}
+ {\paperwidth}
+ {
+ \skip_horizontal:n {
+ \l_handoutWithNotes_scaled_gridsize_dim
+ -\g_handoutWithNotes_rule_dim
+ }
+ \rule[-\l_handoutWithNotes_notes_dim]
+ {\g_handoutWithNotes_rule_dim}
+ {\l_handoutWithNotes_notes_dim}
+ }
+ }
+ \par\nointerlineskip
+ \rule{\paperwidth}{\g_handoutWithNotes_rule_dim}\par
+ \dim_step_inline:nnnn
+ {
+ \g_handoutWithNotes_rule_dim
+ +\l_handoutWithNotes_scaled_gridsize_dim
+ +1sp
+ }
+ {\l_handoutWithNotes_scaled_gridsize_dim+1sp}
+ {\l_handoutWithNotes_notes_dim}
+ {
+ \nointerlineskip
+ \skip_vertical:n {
+ \l_handoutWithNotes_scaled_gridsize_dim
+ -\g_handoutWithNotes_rule_dim
+ }
+ \rule{\paperwidth}{\g_handoutWithNotes_rule_dim}
+ \par\nointerlineskip
+ }
+ \skip_vertical:n {\fill}
+ }
+ }{
+ \int_step_inline:nn {\g_handoutWithNotes_lines_int} {
+ \hrule width\paperwidth\skip_vertical:n {\fill}
+ }
+ }
+ }
+ }
+ }
+ \int_step_inline:nnn {#1+1} {2*#1} {
+ \pgfpagesshipoutlogicalpage{##1}
+ \box_use:N \g_handoutWithNotes_notes_box
+ }
+ }
}
-
-%backwards compatibility
-\let\notesbox\g__handoutWithNotes_notes_box
+\let\notesbox\g_handoutWithNotes_notes_box
\ExplSyntaxOff
-
-% 1 on 1 with notes landscape
-% ----------------------------------------
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% ----------------------------------------
\pgfpagesdeclarelayout{1 on 1 with notes landscape} {
- \edef\pgfpageoptionheight{\the\paperwidth}
- \edef\pgfpageoptionwidth{\the\paperheight}
- \edef\pgfpageoptionborder{0pt}
+ \edef\pgfpageoptionheight{\the\paperwidth}
+ \edef\pgfpageoptionwidth{\the\paperheight}
+ \edef\pgfpageoptionborder{0pt}
}
{
- \setkeys{pgfpagesuselayoutoption}{landscape}
- \pgfpagesphysicalpageoptions
- {%
- logical pages=2,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=1%
- }
-
- \pgfpageslogicalpageoptions{1}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.5\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{2}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.5\pgfphysicalheight},%
- copy from=2,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
+ \setkeys{pgfpagesuselayoutoption}{landscape}
+ \pgfpagesphysicalpageoptions
+ {%
+ logical pages=2,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=1%
+ }
+ \pgfpageslogicalpageoptions{1}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.5\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.5\pgfphysicalheight},%
+ copy from=2,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
\AtBeginDocument{
- \handoutWithNotes@initNotesBox{1}
- }
+ \__handoutWithNotes@initNotesBox{1}
+ }
}
-
-
-% 4 on 1 with notes
-% --------------------------
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% --------------------------
\pgfpagesdeclarelayout{4 on 1 with notes} {
\edef\pgfpageoptionheight{\the\paperheight}
\edef\pgfpageoptionwidth{\the\paperwidth}
@@ -181,275 +234,217 @@
{
\pgfpagesphysicalpageoptions
{%
- logical pages=8,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=4%
+ logical pages=8,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=4%
}
-
+
\pgfpageslogicalpageoptions{1}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.875\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.875\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
}%
\pgfpageslogicalpageoptions{2}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.625\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.625\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
}%
-
\pgfpageslogicalpageoptions{3}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.375\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.375\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
}%
-
\pgfpageslogicalpageoptions{4}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.125\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.125\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
}%
-
-
- \pgfpageslogicalpageoptions{5}
+
+ \pgfpageslogicalpageoptions{5}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.875\pgfphysicalheight},%
- copy from=5,%
- border code=\handoutwithNotes@conditionalFrame{note},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.875\pgfphysicalheight},%
+ copy from=5,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
}%
\pgfpageslogicalpageoptions{6}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.625\pgfphysicalheight},%
- copy from=6,%
- border code=\handoutwithNotes@conditionalFrame{note},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.625\pgfphysicalheight},%
+ copy from=6,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
}%
\pgfpageslogicalpageoptions{7}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.375\pgfphysicalheight},%
- copy from=7,%
- border code=\handoutwithNotes@conditionalFrame{note},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.375\pgfphysicalheight},%
+ copy from=7,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
}%
\pgfpageslogicalpageoptions{8}
{%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.25\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.125\pgfphysicalheight},%
- copy from=8,%
- border code=\handoutwithNotes@conditionalFrame{note},%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.125\pgfphysicalheight},%
+ copy from=8,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
}%
-
- \AtBeginDocument{
- \handoutWithNotes@initNotesBox{4}
- }
-}
-
-% 2 on 1 with notes
-% --------------------------
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% --------------------------
+ \AtBeginDocument{
+ \csname __handoutWithNotes@initNotesBox\endcsname{4}
+ }
+}
\pgfpagesdeclarelayout{2 on 1 with notes} {
- \edef\pgfpageoptionheight{\the\paperheight}
- \edef\pgfpageoptionwidth{\the\paperwidth}
- \edef\pgfpageoptionborder{0pt}
+ \edef\pgfpageoptionheight{\the\paperheight}
+ \edef\pgfpageoptionwidth{\the\paperwidth}
+ \edef\pgfpageoptionborder{0pt}
}
{
- \pgfpagesphysicalpageoptions
- {%
- logical pages=4,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=2%
- }
-
- \pgfpageslogicalpageoptions{1}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{2}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{3}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight},%
- copy from=3,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \pgfpageslogicalpageoptions{4}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.25\pgfphysicalheight},%
- copy from=4,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \AtBeginDocument{
- \handoutWithNotes@initNotesBox{2}
- }
+ \pgfpagesphysicalpageoptions
+ {%
+ logical pages=4,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=2%
+ }
+
+ \pgfpageslogicalpageoptions{1}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{3}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight},%
+ copy from=3,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \pgfpageslogicalpageoptions{4}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ copy from=4,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \csname __handoutWithNotes@initNotesBox\endcsname{2}
+ }
}
-
-
-% 3 on 1 with notes
-% --------------------------
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% | %%%%%%%%%%% ___________ |
-% --------------------------
\pgfpagesdeclarelayout{3 on 1 with notes} {
- \edef\pgfpageoptionheight{\the\paperheight}
- \edef\pgfpageoptionwidth{\the\paperwidth}
- \edef\pgfpageoptionborder{0pt}
+ \edef\pgfpageoptionheight{\the\paperheight}
+ \edef\pgfpageoptionwidth{\the\paperwidth}
+ \edef\pgfpageoptionborder{0pt}
}
{
- \pgfpagesphysicalpageoptions
- {%
- logical pages=6,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=3%
- }
-
- \pgfpageslogicalpageoptions{1}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.83\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{2}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{3}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.17\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{4}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.83\pgfphysicalheight},%
- copy from=4,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \pgfpageslogicalpageoptions{5}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.50\pgfphysicalheight},%
- copy from=5,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \pgfpageslogicalpageoptions{6}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.33\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.17\pgfphysicalheight},%
- copy from=6,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \AtBeginDocument{
- \handoutWithNotes@initNotesBox{3}
- }
+ \pgfpagesphysicalpageoptions
+ {%
+ logical pages=6,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=3%
+ }
+
+ \pgfpageslogicalpageoptions{1}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.83\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{3}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.17\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{4}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.83\pgfphysicalheight},%
+ copy from=4,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \pgfpageslogicalpageoptions{5}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.50\pgfphysicalheight},%
+ copy from=5,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \pgfpageslogicalpageoptions{6}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.17\pgfphysicalheight},%
+ copy from=6,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \csname __handoutWithNotes@initNotesBox\endcsname{3}
+ }
}
-
-
-% 2 on 1 with notes landscape
-% ----------------------------------------
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | |
-% | |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% | %%%%%%%%%%%%%%%%%% __________________ |
-% ----------------------------------------
\pgfpagesdeclarelayout{2 on 1 with notes landscape} {
\edef\pgfpageoptionheight{\the\paperheight}
\edef\pgfpageoptionwidth{\the\paperwidth}
@@ -457,183 +452,161 @@
}
{
\setkeys{pgfpagesuselayoutoption}{landscape}
-
+
\pgfpagesphysicalpageoptions
{%
- logical pages=4,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=2%
+ logical pages=4,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=2%
}
-
- \pgfpageslogicalpageoptions{1}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{2}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{3}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight},%
- copy from=3,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \pgfpageslogicalpageoptions{4}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=.5\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.75\pgfphysicalwidth}{.25\pgfphysicalheight},%
- copy from=4,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
- \AtBeginDocument{
- \handoutWithNotes@initNotesBox{2}
- }
+ \pgfpageslogicalpageoptions{1}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.75\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{3}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.75\pgfphysicalheight},%
+ copy from=3,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \pgfpageslogicalpageoptions{4}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.75\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ copy from=4,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+ \AtBeginDocument{
+ \csname __handoutWithNotes@initNotesBox\endcsname{2}
+ }
}
-
-
-% 1 on 1 with notes
-% --------------------------
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | %%%%%%%%%%%%%%%%%%%%%%%% |
-% | |
-% | ________________________ |
-% | ________________________ |
-% | ________________________ |
-% | ________________________ |
-% | ________________________ |
-% | ________________________ |
-% | ________________________ |
-% --------------------------
\pgfpagesdeclarelayout{1 on 1 with notes} {
- \edef\pgfpageoptionheight{\the\paperwidth}
- \edef\pgfpageoptionwidth{\the\paperheight}
- \edef\pgfpageoptionborder{0pt}
+ \edef\pgfpageoptionheight{\the\paperwidth}
+ \edef\pgfpageoptionwidth{\the\paperheight}
+ \edef\pgfpageoptionborder{0pt}
}
{
- \pgfpagesphysicalpageoptions
- {%
- logical pages=2,%
- physical height=\pgfpageoptionheight,%
- physical width=\pgfpageoptionwidth,%
- last logical shipout=1%
- }
-
- \pgfpageslogicalpageoptions{1}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight},%
- border code=\handoutwithNotes@conditionalFrame{slide},%
- }%
-
- \pgfpageslogicalpageoptions{2}
- {%
- border shrink=\pgfpageoptionborder,%
- resized width=\pgfphysicalwidth,%
- resized height=.5\pgfphysicalheight,%
- center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight},%
- copy from=2,%
- border code=\handoutwithNotes@conditionalFrame{note},%
- }%
-
- \AtBeginDocument{
- \handoutWithNotes@initNotesBox{1}
- }
+ \pgfpagesphysicalpageoptions
+ {%
+ logical pages=2,%
+ physical height=\pgfpageoptionheight,%
+ physical width=\pgfpageoptionwidth,%
+ last logical shipout=1%
+ }
+
+ \pgfpageslogicalpageoptions{1}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight},%
+ border code=\handoutWithNotes@@conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ copy from=2,%
+ border code=\handoutWithNotes@@conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \csname __handoutWithNotes@initNotesBox\endcsname{1}
+ }
}
-
-
-
-% if print-beamer-notes is enable the note frame has to be patched
\ExplSyntaxOn
-\int_new:N \g__handoutWithNotes_last_shipout_int
-\int_new:N \g__handoutWithNotes_current_note_page_int
-
-%Modified variant of beamer@outsideframenote
-%the patch allows multi page layouts with pgfpages
-%based on the definition in beamerbasenotes.sty
-% Copyright 2003--2007 by Till Tantau
-% Copyright 2010 by Vedran Mileti\'c
-% Copyright 2012,2015 by Vedran Mileti\'c, Joseph Wright
-% Copyright 2017,2018 by Louis Stuart, Joseph Wright
-\newcommand\handoutWithNotes@beamer@outsideframenote[2][]{%
- \beamer@savemode%
- \ifbeamer@inlecture%
- \def\beamer@noteenvstart{}%
- \def\beamer@noteenvend{}%
- \setkeys{beamernotes}{#1}%
- \ifbeamer@notes
- \begingroup
- \setbeamertemplate{itemize~item}{\textbullet}
- \setbeamertemplate{itemize~subitem}{--}
- \setbeamertemplate{enumerate~item}{\insertenumlabel.}
- \setbeamertemplate{enumerate~subitem}{\insertenumlabel.\insertsubenumlabel}
- \def\@oddhead{}
- \def\@oddfoot{}
- \let\@evenhead\@oddhead
- \let\@evenfoot\@oddfoot
- \def\beamer@backgroundtemplate{}%
- \setbeamercolor{item}{fg=black,bg=white}
- \color{black}%
- \nointerlineskip
- \hbox{\hskip-\Gm@lmargin\hskip1cm\vbox to\textheight{%
- %pretend to have ``standard'' margins
- \edef\beamer@origlmargin{\Gm@lmargin}%
- \edef\beamer@origrmargin{\Gm@rmargin}%
- \def\Gm@lmargin{1cm}%
- \def\Gm@rmargin{1cm}%
- \textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax%
- \hsize=\textwidth%
- \@arrayparboxrestore%
- \vskip-\headheight%
- \def\insertnote{\vbox{}%
- \beamer@noteenvstart#2\beamer@noteenvend%
- }%
- \usebeamertemplate*{note~page}%
- \vfil%
- \vskip-4pt% foot separator
- \vskip-\footheight}\hskip-\Gm@lmargin\hskip1cm}%
- \ifbeamer@twoscreensnotes%
- \int_compare:nF {\the\pgf@currentshipout = \g__handoutWithNotes_last_shipout_int}{
- \int_gset:Nn \g__handoutWithNotes_last_shipout_int {\the\pgf@currentshipout}
- \int_compare:nTF {\g__handoutWithNotes_current_note_page_int=\the\pgf@lastshipout} {
- \int_gset:Nn \g__handoutWithNotes_current_note_page_int {1}
- } {
- \int_gincr:N \g__handoutWithNotes_current_note_page_int
- }
- }
- \pgfpagescurrentpagewillbelogicalpage{\int_eval:n {\g__handoutWithNotes_current_note_page_int+\the\pgf@lastshipout}}
- \advance\c@page by-1\relax%
- \fi%
- \clearpage
- \endgroup
- \fi%
- \fi%
- \beamer@resumemode}
-
+\int_new:N \g_handoutWithNotes_last_shipout_int
+\int_new:N \g_handoutWithNotes_current_note_page_int
+\newcommand\__handoutWithNotes@beamer@outsideframenote[2][]{%
+ \beamer@savemode%
+ \ifbeamer@inlecture%
+ \def\beamer@noteenvstart{}%
+ \def\beamer@noteenvend{}%
+ \setkeys{beamernotes}{#1}%
+ \ifbeamer@notes
+ \begingroup
+ \setbeamertemplate{itemize~item}{\textbullet}
+ \setbeamertemplate{itemize~subitem}{--}
+ \setbeamertemplate{enumerate~item}{\insertenumlabel.}
+ \setbeamertemplate{enumerate~subitem}{\insertenumlabel.\insertsubenumlabel}
+ \def\@oddhead{}
+ \def\@oddfoot{}
+ \let\@evenhead\@oddhead
+ \let\@evenfoot\@oddfoot
+ \def\beamer@backgroundtemplate{}%
+ \setbeamercolor{item}{fg=black,bg=white}
+ \color{black}%
+ \nointerlineskip
+ \hbox{\hskip-\Gm@lmargin\hskip1cm\vbox to\textheight{%
+ %pretend to have ``standard'' margins
+ \edef\beamer@origlmargin{\Gm@lmargin}%
+ \edef\beamer@origrmargin{\Gm@rmargin}%
+ \def\Gm@lmargin{1cm}%
+ \def\Gm@rmargin{1cm}%
+ \textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax%
+ \hsize=\textwidth%
+ \@arrayparboxrestore%
+ \vskip-\headheight%
+ \def\insertnote{\vbox{}%
+ \beamer@noteenvstart#2\beamer@noteenvend%
+ }%
+ \usebeamertemplate*{note~page}%
+ \vfil%
+ \vskip-4pt% foot separator
+ \vskip-\footheight}\hskip-\Gm@lmargin\hskip1cm}%
+ \ifbeamer@twoscreensnotes%
+ \int_compare:nF
+ {\the\pgf@currentshipout = \g_handoutWithNotes_last_shipout_int}
+ {
+ \int_gset:Nn \g_handoutWithNotes_last_shipout_int
+ {\the\pgf@currentshipout}
+ \int_compare:nTF
+ {\g_handoutWithNotes_current_note_page_int=\the\pgf@lastshipout}
+ {
+ \int_gset:Nn \g_handoutWithNotes_current_note_page_int {1}
+ } {
+ \int_gincr:N \g_handoutWithNotes_current_note_page_int
+ }
+ }
+ \pgfpagescurrentpagewillbelogicalpage
+ {\int_eval:n {
+ \g_handoutWithNotes_current_note_page_int
+ +\the\pgf@lastshipout
+ }}
+ \advance\c@page by-1\relax%
+ \fi%
+ \clearpage
+ \endgroup
+ \fi%
+ \fi%
+ \beamer@resumemode
+}
\ExplSyntaxOff
-\endinput
+%%
+%%
+%% End of file `handoutWithNotes.sty'.