summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty57
1 files changed, 55 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
index 6f63baafb92..97cbc2ad891 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
@@ -19,10 +19,12 @@
%% and all files in that bundle must be distributed together.
%%
%% File: pdfmanagement-firstaid.dtx
-\ProvidesExplPackage{pdfmanagement-firstaid}{2022-11-03}{0.95t}
+\ProvidesExplPackage{pdfmanagement-firstaid}{2023-02-07}{0.95u}
{LaTeX PDF management testphase bundle / firstaid-patches}
-\clist_map_inline:nn {pgf,transparent,xmp,pdflscape,xcolor,color,beamer,output,colorspace,fontspec}
+\clist_map_inline:nn
+ {pgf,transparent,xmp,pdflscape,xcolor,color,
+ beamer,output,colorspace,fontspec,luacolor}
{
\bool_new:c { g__pdfmanagement_firstaid_#1_bool }
\bool_gset_true:c { g__pdfmanagement_firstaid_#1_bool }
@@ -93,6 +95,57 @@
}
{\RequirePackage{xcolor-patches-tmp-ltx}}
}
+\bool_lazy_all:nT
+ {
+ {\sys_if_engine_luatex_p:}
+ {\g__pdfmanagement_firstaid_luacolor_bool}
+ {\sys_if_output_pdf_p:}
+ }
+ {
+ \AddToHook{package/luacolor/after}
+ {
+ \@ifpackagelater{luacolor}{2021-02-18}{}
+ {
+ \cs_set_protected:Npn \__color_backend_select:nn #1#2
+ {
+ \tl_set:Nn \l__color_backend_fill_tl {#1}
+ \tl_set:Nn \l__color_backend_stroke_tl {#2}
+ \LuaCol@setattribute\LuaCol@Attribute
+ {
+ \directlua
+ {
+ oberdiek.luacolor.get("\luaescapestring{#1~#2}")
+ }
+ }
+ }
+ \cs_set_protected:Npn \__color_backend_fill:n #1
+ {
+ \tl_set:Nn \l__color_backend_fill_tl {#1}
+ \LuaCol@setattribute\LuaCol@Attribute
+ {
+ \directlua
+ {
+ oberdiek.luacolor.get("\luaescapestring{#1}")
+ }
+ }
+ }
+ \cs_set_protected:Npn \__color_backend_stroke:n #1
+ {
+ \tl_set:Nn \l__color_backend_stroke_tl {#1}
+ \LuaCol@setattribute\LuaCol@Attribute
+ {
+ \directlua
+ {
+ oberdiek.luacolor.get("\luaescapestring{#1}")
+ }
+ }
+ }
+ \cs_set_protected:Npn \__color_backend_reset: {}
+ \cs_set_eq:NN \__color_backend_fill_reset: \__color_backend_reset:
+ \cs_set_eq:NN \__color_backend_stroke_reset: \__color_backend_reset:
+ }
+ }
+ }
\bool_if:NT \g__pdfmanagement_firstaid_pgf_bool
{