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.sty31
1 files changed, 29 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 b600cb13267..246b45defb8 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,10 @@
%% and all files in that bundle must be distributed together.
%%
%% File: pdfmanagement-firstaid.dtx
-\ProvidesExplPackage{pdfmanagement-firstaid}{2022-05-11}{0.95o}
+\ProvidesExplPackage{pdfmanagement-firstaid}{2022-06-14}{0.95p}
{LaTeX PDF management testphase bundle / firstaid-patches}
-\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output,colorspace}
+\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output,colorspace,fontspec}
{
\bool_new:c { g__pdfmanagement_firstaid_#1_bool }
\bool_gset_true:c { g__pdfmanagement_firstaid_#1_bool }
@@ -36,6 +36,33 @@
}
\msg_new:nnn { pdfmanagement } { firstaid }
{ loading~pdfmanagement~firstaid~code~for~#1 }
+\msg_new:nnn { pdfmanagement } { firstaid-changed }
+ { package~#1~has~changed.~Check~if~patch~is~still~valid! }
+\sys_if_engine_luatex:T
+ {
+ \lua_now:n
+ {
+ if~not~luaotfload.set_transparent_colorstack~
+ then~
+ tex.print("\\bool_set_false:N\\g__pdfmanagement_firstaid_fontspec_bool")~
+ end
+ }
+ \bool_if:NT \g__pdfmanagement_firstaid_fontspec_bool
+ {
+ \msg_info:nnn{pdfmanagement}{firstaid}{fontspec}
+ \file_if_exist:nT { luaotfload-l3color-tmp.lua }
+ {
+ \lua_load_module:n { luaotfload-l3color-tmp.lua }
+ }
+
+ \declare@file@substitution{fontspec-luatex.sty}{fontspec-luatex-tmp-ltx.sty}
+ \AddToHook{package/fontspec/after}
+ {
+ \str_if_eq:vnF{ver@fontspec.sty}{2022/01/15~v2.8a~Font~selection~for~XeLaTeX~and~LuaLaTeX}
+ {\msg_warn:nnn{pdfmanagement}{firstaid-changed}{fontspec}}
+ }
+ }
+ }
\bool_if:NT \g__pdfmanagement_firstaid_output_bool
{
\RequirePackage{output-patches-tmp-ltx}