[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: moving, rename a function (f300b17)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jun 22 00:53:20 CEST 2019


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

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

commit f300b1788b55ff5b97ac05e5653f290f6041c8d4
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 22 00:53:20 2019 +0200

    moving, rename a function


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

f300b1788b55ff5b97ac05e5653f290f6041c8d4
 pdfresources.dtx | 66 +++++++++++++++++++++++++++++---------------------------
 1 file changed, 34 insertions(+), 32 deletions(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index 7d8f06d..cd710fa 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -130,6 +130,39 @@
 \cs_new_protected:Npn \@@_backend_end_run:n #1 {} %check ...
 %</package>
 %    \end{macrocode}
+% \subsection{Shipoutcode}
+% For now -- until a expl3/kernel interface exists -- code is added with atbegshi:
+%    \begin{macrocode}
+%<*package>
+\AtBeginShipout
+ {
+  \AtBeginShipoutAddToBox
+  {
+   \@@_shipout_code:
+  }
+ }
+
+\cs_new_protected:Npn \@@_shipout_code:
+ {
+  \int_gincr:N \g_@@_abspage_int
+  \@@_everypage_shipout_code:V \g_@@_abspage_int
+  \int_compare:nNnT { \g_@@_abspage_int }={\zref at extractdefault{LastPage}{abspage}{0}}
+  {
+   \@@_lastpage_shipout_code:
+  }
+ }
+
+\cs_new_protected:Npn \@@_everypage_shipout_code:n #1
+ {
+  \@@_backend_PageN_gpush:n { #1 }
+ }
+\cs_generate_variant:Nn \@@_everypage_shipout_code:n {V}
+\cs_new_protected:Npn \@@_lastpage_shipout_code:
+ {
+   \@@_Pages_gpush:
+ }
+%</package>
+%    \end{macrocode}
 %
 % \subsection{Tree / path-Code}
 %  This is a bit experimental. Many code parts are quite similar: props are
@@ -321,7 +354,7 @@
   }
 
 % push to the register command / issue the special
-\cs_new_protected:Npn \@@_pagesattr_gpush:
+\cs_new_protected:Npn \@@_Pages_gpush:
   {
     \exp_args:Nx \@@_backend_Pages_primitive:n
     {
@@ -718,38 +751,7 @@
 %
 %
 % \section{Management code}
-% \subsection{page wise managment in shipouthook}
-% For now until expl3/kernel interface exists code is added with atbegshi:
-%    \begin{macrocode}
-%<*package>
-\AtBeginShipout
- {
-  \AtBeginShipoutAddToBox
-  {
-   \@@_shipout_code:
-  }
- }
-\cs_new_protected:Npn \@@_shipout_code:
- {
-  \int_gincr:N \g_@@_abspage_int
-  \@@_everypage_shipout_code:V \g_@@_abspage_int
-  \int_compare:nNnT { \g_@@_abspage_int }={\zref at extractdefault{LastPage}{abspage}{0}}
-  {
-   \@@_lastpage_shipout_code:
-  }
- }
 
-\cs_new_protected:Npn \@@_everypage_shipout_code:n #1
- {
-  \@@_backend_PageN_gpush:n { #1 }
- }
-\cs_generate_variant:Nn \@@_everypage_shipout_code:n {V}
-\cs_new_protected:Npn \@@_lastpage_shipout_code:
- {
-   \@@_pagesattr_gpush:
- }
-%</package>
-%    \end{macrocode}
 
 %
 %





More information about the latex3-commits mailing list