[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: some changes to the command to push the page labels (5e0ae8f)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Mar 21 12:55:48 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/5e0ae8fbe9060e9e9083a77ddfe28f0ef3fbfba6

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

commit 5e0ae8fbe9060e9e9083a77ddfe28f0ef3fbfba6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Mar 21 12:55:48 2020 +0100

    some changes to the command to push the page labels


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

5e0ae8fbe9060e9e9083a77ddfe28f0ef3fbfba6
 hgeneric-experimental.def | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 1c7a9b1..f5631b7 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -10,7 +10,7 @@
 %% \__hyp_link_dest_begin:nw : start command for links to internal destination
 %%                             replaces \find at pdflink
 %% \__hyp_link_dest_end:
-%% \__hyp_pagelabels_gput:n : puts pagelabels in the catalog.
+%% \__hyp_PageLabels_gpush: : puts pagelabels in the catalog, used on every storing
 %% \__hyp_pstringdef:Nn     : replaces Hy at pstringdef, converts n to pdfstring and stores in N
 %%                            naming??
 %% \__hyp_info_generate_addons: what did this do??
@@ -259,17 +259,18 @@
 % \Hy at PutCatalog is used only in one place but we
 % we need this for the dvips/xetex route for the page labels.
 % we simply hard code this for now until hyperref.sty itself can be adapted ...
-\cs_new:Npn\__hyp_pagelabels_gput:n #1
+\cs_new_protected:Npn\__hyp_PageLabels_gpush:
   {
     \pdf_catalog_gput:nx {PageLabels}{<</Nums[\HyPL at Labels]>>}
   }
 
+
 \pdf at ifdraftmode %from pdftexcmds replace??
   {
     \let\Hy at PutCatalog \use_none:n
   }
   {
-    \let\Hy at PutCatalog \__hyp_pagelabels_gput:n
+    \def\Hy at PutCatalog #1 { \__hyp_PageLabels_gpush: }
   }
 
 \legacy_if:nT { Hy at pdfpagelabels }
@@ -279,7 +280,7 @@
         \cs_set_protected:Npn \HyPL at StorePageLabel #1
           {
             \tl_gput_right:Nx \HyPL at Labels { \the\Hy at abspage<<#1>> }
-            \pdf_catalog_gput:nx { PageLabels }{ <</Nums[\HyPL at Labels]>> }
+            \__hyp_PageLabels_gpush:
           }
       }
       { %xetex, dvips, dvipdfmx





More information about the latex3-commits mailing list.