[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: corrected xform for xetex (7d5d4b0)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Sep 5 23:44:22 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/7d5d4b0f180787d2da6b7b710caa64b576919434

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

commit 7d5d4b0f180787d2da6b7b710caa64b576919434
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Sep 5 23:44:22 2019 +0200

    corrected xform for xetex


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

7d5d4b0f180787d2da6b7b710caa64b576919434
 pdfresources.dtx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index 874486b..d6a9184 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -168,11 +168,12 @@
 % \begin{variable}
 %  {\g_@@_abspage_int, \g_@@_backend_resourceid_int, \g_@@_backend_name_int}
 %  an absolute page counter, a counter to create labels for the resources, a counter
-%  to number properties in bdc marks.
+%  to number properties in bdc marks, a counter for the \cs{pdfpageref} implementation.
 %    \begin{macrocode}
 \int_new:N \g_@@_abspage_int
 \int_new:N \g_@@_backend_resourceid_int
 \int_new:N \g_@@_backend_name_int
+\int_new:N \g_@@_backend_page_int
 %    \end{macrocode}
 % \end{variable}
 % a reference for the absolute page counter
@@ -1420,6 +1421,8 @@
     \@@_backend_xform_ref:n { #1 }
   }
 
+\cs_generate_variant:Nn \pdf_xform_ref:n {o}
+
 \cs_new:Npn \pdf_xform_wd:n #1
   {
     \tl_use:c { c_@@_backend_xform_wd_ \tl_to_str:n {#1} _tl }
@@ -1645,6 +1648,7 @@
         \box_set_dp:Nn  \l_@@_tmpa_box { \c_zero_dim }
         \box_set_ht:Nn  \l_@@_tmpa_box { \c_zero_dim }
         \box_set_wd:Nn  \l_@@_tmpa_box { \c_zero_dim }
+        \mode_leave_vertical: %needed, the xform disappears without it.
         \@@_backend:x
           {
             bxobj  ~ \@@_backend_xform_ref:n  { #1 }





More information about the latex3-commits mailing list