texlive[60840] Master: handoutwithnotes (22oct21)
commits+karl at tug.org
commits+karl at tug.org
Fri Oct 22 23:37:34 CEST 2021
Revision: 60840
http://tug.org/svn/texlive?view=revision&revision=60840
Author: karl
Date: 2021-10-22 23:37:33 +0200 (Fri, 22 Oct 2021)
Log Message:
-----------
handoutwithnotes (22oct21)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/handoutwithnotes/
trunk/Master/texmf-dist/doc/latex/handoutwithnotes/README.md
trunk/Master/texmf-dist/tex/latex/handoutwithnotes/
trunk/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
trunk/Master/tlpkg/tlpsrc/handoutwithnotes.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/handoutwithnotes/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/handoutwithnotes/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/handoutwithnotes/README.md 2021-10-22 21:37:33 UTC (rev 60840)
@@ -0,0 +1,65 @@
+# handoutWithNotes.sty 2021/10/21 v1.0
+
+Create Handouts with notes from your LaTeX beamer presentation.
+This package provides pgfpages layouts to place notes next to the scaled slides.
+By default the note area is empty providing rules for handwritten notes but with version 1.0 also beamer note pages can be used there.
+
+–––––––––––––––––––––––––––––––––––––––––––––
+
+ Copyright (C) 2009–2018 by Guido Diepen <guido at guidodiepen.nl>
+ Parts provided by Edson Valle
+ Copyright (C) 2021 Marei Peischl <marei at peitex.de>
+
+***************************************************************************
+
+ This material is subject to the LaTeX Project Public License version 1.3c
+ or later. See http://www.latex-project.org/lppl.txt for details.
+
+*************************************************************************
+
+## Quickstart
+To use this package load it in a document using beamer and select a layout:
+
+Minimal example:
+```
+\documentclass{beamer}
+\usepackage{handoutWithNotes}
+\pgfpagesuselayout{3 on 1 with notes}
+\begin{document}
+…
+\end{document}
+```
+
+Currently the following layouts are implemented by this package:
+
+- `1 on 1 with notes landscape`
+- `2 on 1 with notes landscape`
+- `1 on 1 with notes`
+- `2 on 1 with notes`
+- `3 on 1 with notes`
+- `4 on 1 with notes`
+
+Additionally we support the following package options:
+
+- `slide-frame=true/false` draw a frame around the slides
+- `note-frame=true/false` draw a frame around the note pages
+- `beamer-notes=true/false` use beamer notepages instead of the area for handwritten notes
+- `lines=<Number>` modify the number of lines in the notesbox (default is 8)
+
+Additionally the pgfpages options can be used.
+
+
+## Documentation
+A detailed documentation will follow but until this is done most information can be found in the blog post: https://www.guidodiepen.nl/2009/07/creating-latex-beamer-handouts-with-notes/
+
+## Version History
+* v1.00 (2021-10-21) First CTAN Version
+ - add options to draw frames around the slides/notes
+ - add possibility to use beamer's note pages instead of empty ones
+* 20180920 - Refactored to work with different slide sizes
+* 20091202 - Added `1 on 1 with notes` layout, provided by Harald Welte
+* 20091108 - Added `2 on 1 with notes landscape` layout, provided by Edson Valle
+* 20091104 - Added `3 on 1 with notes` layout
+* 20091104 - Added `2 on 1 with notes` layout
+* 20091104 - Added `1 on 1 with notes landscape` layout, provided by Edson Valle
+* 20090101 - Initial Version
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/handoutwithnotes/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty 2021-10-22 21:37:33 UTC (rev 60840)
@@ -0,0 +1,639 @@
+% Copyright (C) 2009–2018 by Guido Diepen <guido at guidodiepen.nl>
+% Parts provided by Edson Valle
+% Copyright (C) 2021 Marei Peischl <marei at peitex.de>
+%
+%% ============================================================================
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% 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 at peitex.de>
+%% Guido Diepen <guido at 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]
+\RequirePackage{l3keys2e}
+\ExplSyntaxOn
+\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
+}
+
+\ProcessKeysOptions{handoutWithNotes}
+
+\newcommand*{\handoutwithNotes at 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: {\pdfpageheight}
+}
+
+\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 at initNotesBox}[1]{
+ \bool_if:NTF \g__handoutWithNotes_beamer_notes_bool {
+ \beamer at twoscreensnotestrue
+ \setbeameroption{show~notes}
+ \gdef\beamer at currentmode{handout}
+ \setbeamertemplate{note~page}[plain]
+ \let\beamer at outsideframenote\handoutWithNotes at beamer@outsideframenote
+ \msg_new:nnn {handoutWithNotes} {patch-beamer at 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 at 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}
+ }
+}
+
+%backwards compatibility
+\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}
+}
+{
+ \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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{1}
+ }
+}
+
+
+% 4 on 1 with notes
+% --------------------------
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% --------------------------
+ \pgfpagesdeclarelayout{4 on 1 with notes} {
+ \edef\pgfpageoptionheight{\the\paperheight}
+ \edef\pgfpageoptionwidth{\the\paperwidth}
+ \edef\pgfpageoptionborder{0pt}
+ }
+ {
+ \pgfpagesphysicalpageoptions
+ {%
+ 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 at conditionalFrame{slide},%
+ }%
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.625\pgfphysicalheight},%
+ border code=\handoutwithNotes at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{3}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.375\pgfphysicalheight},%
+ border code=\handoutwithNotes at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{4}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.25\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.125\pgfphysicalheight},%
+ border code=\handoutwithNotes at conditionalFrame{slide},%
+ }%
+
+
+ \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 at 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 at 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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{4}
+ }
+}
+
+
+% 2 on 1 with notes
+% --------------------------
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% --------------------------
+\pgfpagesdeclarelayout{2 on 1 with notes} {
+ \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 at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ border code=\handoutwithNotes at 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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{2}
+ }
+}
+
+
+% 3 on 1 with notes
+% --------------------------
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% | %%%%%%%%%%% ___________ |
+% --------------------------
+\pgfpagesdeclarelayout{3 on 1 with notes} {
+ \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 at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight},%
+ border code=\handoutwithNotes at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{3}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.33\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.17\pgfphysicalheight},%
+ border code=\handoutwithNotes at 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 at 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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{3}
+ }
+}
+
+
+% 2 on 1 with notes landscape
+% ----------------------------------------
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | |
+% | |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% | %%%%%%%%%%%%%%%%%% __________________ |
+% ----------------------------------------
+ \pgfpagesdeclarelayout{2 on 1 with notes landscape} {
+ \edef\pgfpageoptionheight{\the\paperheight}
+ \edef\pgfpageoptionwidth{\the\paperwidth}
+ \edef\pgfpageoptionborder{0pt}
+ }
+ {
+ \setkeys{pgfpagesuselayoutoption}{landscape}
+
+ \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 at conditionalFrame{slide},%
+ }%
+
+ \pgfpageslogicalpageoptions{2}
+ {%
+ border shrink=\pgfpageoptionborder,%
+ resized width=.5\pgfphysicalwidth,%
+ resized height=.5\pgfphysicalheight,%
+ center=\pgfpoint{.25\pgfphysicalwidth}{.25\pgfphysicalheight},%
+ border code=\handoutwithNotes at 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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{2}
+ }
+}
+
+
+% 1 on 1 with notes
+% --------------------------
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | %%%%%%%%%%%%%%%%%%%%%%%% |
+% | |
+% | ________________________ |
+% | ________________________ |
+% | ________________________ |
+% | ________________________ |
+% | ________________________ |
+% | ________________________ |
+% | ________________________ |
+% --------------------------
+\pgfpagesdeclarelayout{1 on 1 with notes} {
+ \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 at 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 at conditionalFrame{note},%
+ }%
+
+ \AtBeginDocument{
+ \handoutWithNotes at initNotesBox{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 at 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 at beamer@outsideframenote[2][]{%
+ \beamer at savemode%
+ \ifbeamer at inlecture%
+ \def\beamer at noteenvstart{}%
+ \def\beamer at noteenvend{}%
+ \setkeys{beamernotes}{#1}%
+ \ifbeamer at 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 at backgroundtemplate{}%
+ \setbeamercolor{item}{fg=black,bg=white}
+ \color{black}%
+ \nointerlineskip
+ \hbox{\hskip-\Gm at lmargin\hskip1cm\vbox to\textheight{%
+ %pretend to have ``standard'' margins
+ \edef\beamer at origlmargin{\Gm at lmargin}%
+ \edef\beamer at origrmargin{\Gm at rmargin}%
+ \def\Gm at lmargin{1cm}%
+ \def\Gm at rmargin{1cm}%
+ \textwidth=\dimexpr\paperwidth-\Gm at lmargin-\Gm at rmargin\relax%
+ \hsize=\textwidth%
+ \@arrayparboxrestore%
+ \vskip-\headheight%
+ \def\insertnote{\vbox{}%
+ \beamer at noteenvstart#2\beamer at noteenvend%
+ }%
+ \usebeamertemplate*{note~page}%
+ \vfil%
+ \vskip-4pt% foot separator
+ \vskip-\footheight}\hskip-\Gm at lmargin\hskip1cm}%
+ \ifbeamer at twoscreensnotes%
+ \int_compare:nF {\the\pgf at currentshipout = \g__handoutWithNotes_last_shipout_int}{
+ \int_gset:Nn \g__handoutWithNotes_last_shipout_int {\the\pgf at currentshipout}
+ \int_compare:nTF {\g__handoutWithNotes_current_note_page_int=\the\pgf at 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 at lastshipout}}
+ \advance\c at page by-1\relax%
+ \fi%
+ \clearpage
+ \endgroup
+ \fi%
+ \fi%
+ \beamer at resumemode}
+
+\ExplSyntaxOff
+\endinput
Property changes on: trunk/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-10-22 21:36:34 UTC (rev 60839)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-10-22 21:37:33 UTC (rev 60840)
@@ -378,7 +378,7 @@
gs1 gsemthesis gtl gtrlib-largetrees gtrcrd
gu gudea guitar guitarchordschemes guitartabs guitlogo gzt
h2020proposal ha-prosper hackthefootline hacm hagenberg-thesis halloweenmath
- handin handout hands hang hanging hanoi hanzibox
+ handin handout handoutwithnotes hands hang hanging hanoi hanzibox
happy4th har2nat haranoaji haranoaji-extra
hardwrap harmony harnon-cv harpoon
harvard harveyballs harvmac hatching hausarbeit-jura havannah
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2021-10-22 21:36:34 UTC (rev 60839)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2021-10-22 21:37:33 UTC (rev 60840)
@@ -597,6 +597,7 @@
depend halloweenmath
depend handin
depend handout
+depend handoutwithnotes
depend hang
depend hanging
depend hardwrap
Added: trunk/Master/tlpkg/tlpsrc/handoutwithnotes.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.