[latex3-commits] [latex3/latex3] e-type: Add a variant for \__kernel_backend_literal_page:n (ddc84a990)

github at latex-project.org github at latex-project.org
Tue Oct 10 11:58:57 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : e-type
Link       : https://github.com/latex3/latex3/commit/ddc84a990f55fae5aeb1adddac2c584491d3816c

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

commit ddc84a990f55fae5aeb1adddac2c584491d3816c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Oct 9 11:31:19 2023 +0100

    Add a variant for \__kernel_backend_literal_page:n


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

ddc84a990f55fae5aeb1adddac2c584491d3816c
 l3backend/l3backend-basics.dtx | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/l3backend/l3backend-basics.dtx b/l3backend/l3backend-basics.dtx
index 089793b7f..93a9fdd83 100644
--- a/l3backend/l3backend-basics.dtx
+++ b/l3backend/l3backend-basics.dtx
@@ -284,7 +284,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\__kernel_backend_literal_page:n}
+% \begin{macro}{\__kernel_backend_literal_page:n, \__kernel_backend_literal_page:e}
 %  Page literals are pretty simple. To avoid an expansion, we write out
 %  by hand.
 %    \begin{macrocode}
@@ -298,6 +298,16 @@
 %</pdftex>
         page { \exp_not:n {#1} }
   }
+\cs_new_protected:Npn \__kernel_backend_literal_page:e #1
+  {
+%<*luatex>
+    \tex_pdfextension:D literal ~
+%</luatex>
+%<*pdftex>
+    \tex_pdfliteral:D
+%</pdftex>
+        page {#1}
+  }
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.