[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: move dictionary definitions (332aa4d)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Aug 21 18:31:45 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : splitting
Link : https://github.com/latex3/pdfresources/commit/332aa4dbe22a8c82a5dfb20851ce283d14006cde
>---------------------------------------------------------------
commit 332aa4dbe22a8c82a5dfb20851ce283d14006cde
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Aug 21 18:31:45 2020 +0200
move dictionary definitions
>---------------------------------------------------------------
332aa4dbe22a8c82a5dfb20851ce283d14006cde
l3backend-pdf-extra.dtx | 6 +-----
l3pdfcoredict.dtx | 12 ++++++++++++
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/l3backend-pdf-extra.dtx b/l3backend-pdf-extra.dtx
index 4807032..f19ebbc 100644
--- a/l3backend-pdf-extra.dtx
+++ b/l3backend-pdf-extra.dtx
@@ -503,6 +503,7 @@
% and to push the values.
%
% The names are quite often needed
+% a similar list is now in l3pdfcoredict. Perhaps it should be merged.
%<*drivers>
\clist_const:Nn \c_@@_backend_PageResources_clist
{
@@ -511,11 +512,6 @@
Pattern,
Shading,
}
-
-\clist_map_inline:Nn \c_@@_backend_PageResources_clist
- {
- \pdfdict_new:nn { g } {Core/Page/Resources/#1}
- }
%</drivers>
% pdftex and luatex
%<*pdfmode>
diff --git a/l3pdfcoredict.dtx b/l3pdfcoredict.dtx
index d7bd7fb..ec8308e 100644
--- a/l3pdfcoredict.dtx
+++ b/l3pdfcoredict.dtx
@@ -801,6 +801,18 @@
% \end{macrocode}
% \subsubsection{\enquote{Page/Resources}: ExtGState, ColorSpace, Shading, Pattern}
% \begin{macrocode}
+\clist_const:Nn \c_@@_PageResources_clist
+ {
+ ExtGState,
+ ColorSpace,
+ Pattern,
+ Shading,
+ }
+
+\clist_map_inline:Nn \c_@@_PageResources_clist
+ {
+ \pdfdict_new:nn { g } {Core/Page/Resources/#1}
+ }
%
% setter: #1 is the name of the resource
\cs_new_protected:cpn { @@_handler/Page/Resources/ExtGState/?_gput:nn } #1 #2
More information about the latex3-commits
mailing list.