summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-14 20:22:24 +0000
committerKarl Berry <karl@freefriends.org>2022-06-14 20:22:24 +0000
commit87fa5c816607d9d5aa175a19007d463957d29714 (patch)
treec0d427f1c1ef75d0ce44ec31291dbd9167a53297 /Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
parentf1079b6a8806f2632d31d2111f10e5eff4207f5e (diff)
pdfmanagement-testphase (14jun22)
git-svn-id: svn://tug.org/texlive/trunk@63594 c570f23f-e606-0410-a88d-b1316a301751
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}