[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: switch to afterenddocument for now (5419851)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon May 20 16:15:12 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/541985124299ac273729db5380b01ca8470860e6

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

commit 541985124299ac273729db5380b01ca8470860e6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon May 20 16:15:12 2019 +0200

    switch to afterenddocument for now


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

541985124299ac273729db5380b01ca8470860e6
 pdfresources.dtx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index d7cc6c6..b25b58b 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -542,7 +542,8 @@
 %\AtEndDocument % must perhaps be even later??
 %
 \RequirePackage{etoolbox}
-\AfterEndDocument
+\AfterEndDocument %works better
+% Alternative?
 %\RequirePackage{atenddvi}
 %\AtEndDvi
  {
@@ -560,8 +561,8 @@
   {
    \clist_map_inline:Nn \c_@@_pdf_pageresources_clist
    {
-    \int_step_inline:nn {\g_shipout_page_int}
-    {
+    \int_step_inline:nn {\g_shipout_page_int} %<---- isn't the lastpage number with \AtEndDocument when floats are involved
+    {%\tl_set:Nn\l_tmpa_tl{##1}\tl_show:N\l_tmpa_tl
      \prop_if_exist:cT { g_@@_pdf_pageresources_##1_#1_prop }
      {
       \prop_set_eq:Nc \g_tmpa_prop { g_@@_pdf_pageresources_#1_prop}





More information about the latex3-commits mailing list