From 0b7cba17641584bae3c1b1572777d5ea8d94e5e2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 9 Feb 2022 20:58:20 +0000 Subject: handoutwithnotes (9feb22) git-svn-id: svn://tug.org/texlive/trunk@61956 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/handoutwithnotes/handoutWithNotes.sty | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/handoutwithnotes') diff --git a/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty b/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty index 4a03ae6df92..151edc29071 100644 --- a/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty +++ b/Master/texmf-dist/tex/latex/handoutwithnotes/handoutWithNotes.sty @@ -32,10 +32,10 @@ %% %% ============================================================================ %% -\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{handoutWithNotes} - [2021/11/10 v1.1 pgfpages layouts to print beamer slides with notes] -\ProvidesPackage{handoutWithNotes}[2021/11/07 v1.1 + [2022/02/02 v1.2 pgfpages layouts to print beamer slides with notes] +\ProvidesPackage{handoutWithNotes}[2022/02/02 v1.2 pgfpages layouts to print beamer slides with notes] \RequirePackage{l3keys2e} \ExplSyntaxOn @@ -72,10 +72,14 @@ \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} +\sys_if_output_dvi:TF { + \cs_set:Nn \__handoutWithNotes_pageheight: {\paperheight} +}{ + \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 -- cgit v1.2.3