[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: remove backend getter for pagesattr (4fd9d59)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Jun 10 22:58:48 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/4fd9d593d4b958dd37a38a5f2b65d3145df11369

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

commit 4fd9d593d4b958dd37a38a5f2b65d3145df11369
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Jun 10 22:58:48 2019 +0200

    remove backend getter for pagesattr


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

4fd9d593d4b958dd37a38a5f2b65d3145df11369
 pdfresources.dtx |   28 ++--------------------------
 1 file changed, 2 insertions(+), 26 deletions(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index 69495da..c69565c 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -192,7 +192,7 @@
 % \end{NOTE}
 %    \begin{macrocode}
 %<*package>
-\bool_if:nT {\sys_if_engine_pdftex_p: && \sys_if_output_pdf_p: }
+\bool_if:nT {\sys_if_engine_pdftex_p: && \sys_if_output_pdf_p: || \sys_if_engine_luatex_p:}
 {
  \cs_new_protected:Npx \@@_backend_pagesattr:n #1
   {
@@ -202,7 +202,7 @@
       { \tex_pdfvariable:D pagesattr }
       {#1}
   }
-
+}
 %dvips
 \bool_if:nT {\sys_if_engine_pdftex_p: && !\sys_if_output_pdf_p: }
 {
@@ -212,30 +212,6 @@
   }
 }
 
-%does this make sense in view that nothing similar for dvips/dvipdfmx exists?
- \cs_new_protected:Npn \@@_backend_pagesattr_get:N #1
-  {
-   \tl_set:Nx #1 {\tex_the:D \tex_pdfpagesattr:D}
-  }
-
-}
-
-\sys_if_engine_luatex:T
-{
-  \cs_new_protected:Npx \@@_backend_pagesattr:n #1
-  {
-    \exp_not:N \tex_global:D
-    \cs_if_exist:NTF \tex_pdfpagesattr:D
-      { \tex_pdfpagesattr:D }
-      { \tex_pdfvariable:D pagesattr }
-      {#1}
-  }
-  \cs_new_protected:Npn \@@_backend_pagesattr_get:N #1
-  {
-   \tl_set:Nx #1 {\tex_the:D \tex_pdfvariable:D pagesattr}
-  }
-}
-
 %need to be checked/
 \sys_if_engine_xetex:T
  {





More information about the latex3-commits mailing list