[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting, test-drop-zref: adapt to changes in hook order, command names (c157c67)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Nov 18 12:26:40 CET 2020


Repository : https://github.com/latex3/pdfresources
On branches: splitting,test-drop-zref
Link       : https://github.com/latex3/pdfresources/commit/c157c6730608777862085e26288a57ef167fa94c

>---------------------------------------------------------------

commit c157c6730608777862085e26288a57ef167fa94c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Nov 18 12:26:40 2020 +0100

    adapt to changes in hook order, command names


>---------------------------------------------------------------

c157c6730608777862085e26288a57ef167fa94c
 newpackages/new-pdflscape.sty | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/newpackages/new-pdflscape.sty b/newpackages/new-pdflscape.sty
index 6a0fca7..c33643c 100644
--- a/newpackages/new-pdflscape.sty
+++ b/newpackages/new-pdflscape.sty
@@ -2,7 +2,7 @@
 %% This is file `new-pdflscape.sty',
 %%
 %% Project: new-pdflscape
-%% Version: 2020/05/28 v0.1
+%% Version: 2020/11/18 v0.2
 %%
 %% Copyright (C) 2020 The LaTeX3 Project
 %%
@@ -25,28 +25,28 @@
 %% This work consists of the main source file new-lscape.sty
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesExplPackage {new-pdflscape}{2020/05/28}{v0.1}
+\ProvidesExplPackage {new-pdflscape}{2020/11/18}{v0.2}
  {Display of landscape pages in PDF - UF}
 \RequirePackage{pdfresources}
 \RequirePackage{lscape}
 % this always turns in the same direction as pdflscape did too.
 % left and right would need
-% \pdfdict_gput:nnn{ThisPage}{Rotate}{..}
+% \pdfcoredict_gput:nnn{ThisPage}{Rotate}{..}
 % on every page (e.g. in a shipout hook) and some option to control the wanted
 % orientation.
 \tl_new:N\g__pdflscape_saverotate_tl
-\hook_gput_code:nnn {env/begin/landscape}{pdflscape}
+\hook_gput_code:nnn {env/landscape/begin}{pdflscape}
   {
-    \pdfdict_get:nnN{Page}{Rotate}\l_tmpa_tl
+    \pdfdict_get:nnnN {g} {Core/Page}{Rotate}\l_tmpa_tl
     \tl_gset_eq:NN\g__pdflscape_saverotate_tl\l_tmpa_tl
     \clearpage
-    \pdfdict_gput:nnn{Page}{Rotate}{90}
+    \pdfcoredict_gput:nnn{Page}{Rotate}{90}
   }
-\hook_gput_code:nnn {env/after/landscape}{pdflscape}
+\hook_gput_code:nnn {env/landscape/after}{pdflscape}
  {
   \quark_if_no_value:NTF\g__pdflscape_saverotate_tl
-   {\pdfdict_gremove:nn{Page}{Rotate}}
-   {\pdfdict_gput:nnx{Page}{Rotate}{\g__pdflscape_saverotate_tl}}
+   {\pdfcoredict_gremove:nn{Page}{Rotate}}
+   {\pdfcoredict_gput:nnx{Page}{Rotate}{\g__pdflscape_saverotate_tl}}
  }
 
 \endinput





More information about the latex3-commits mailing list.