[latex3-commits] [latex3/latex3] main: Add a variant for \__kernel_backend_literal_page:n (c28294638)
github at latex-project.org
github at latex-project.org
Tue Oct 10 12:59:28 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/c28294638d54f646c7b00ce7c89db3bccd9617f6
>---------------------------------------------------------------
commit c28294638d54f646c7b00ce7c89db3bccd9617f6
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
>---------------------------------------------------------------
c28294638d54f646c7b00ce7c89db3bccd9617f6
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.