summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-10 03:04:05 +0000
committerNorbert Preining <norbert@preining.info>2023-03-10 03:04:05 +0000
commitf6cb3d263826846efe7b926e6ad2092198db0522 (patch)
tree16abd399e7b120d3c3ac7d75efc4d04cf7bb022f /macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
parent716c428e47ad2e893c0f970b9fa866d2a88f00e4 (diff)
CTAN sync 202303100304
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx')
-rw-r--r--macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx37
1 files changed, 11 insertions, 26 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
index 2e40ed6814..23ce50f33d 100644
--- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
+++ b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
@@ -47,7 +47,7 @@
% }^^A
% }
%
-% \date{Version 0.95w, released 2023-02-20}
+% \date{Version 0.95x, released 2023-03-09}
%
% \maketitle
% \begin{documentation}
@@ -63,7 +63,7 @@
% |debug={firstaidoff={name1,name2,...},...}|.
% \begin{macrocode}
%<*package>
-\ProvidesExplPackage{pdfmanagement-firstaid}{2023-02-20}{0.95w}
+\ProvidesExplPackage{pdfmanagement-firstaid}{2023-03-09}{0.95x}
{LaTeX PDF management testphase bundle / firstaid-patches}
%<@@=pdfmanagement>
@@ -96,36 +96,21 @@
% \subsection{Fontspec}
% When using luaLaTeX opacity is broken (issue \#30) as
% fontspec/luaotfload doesn't use the pdfmanagement but write to ExtGState directly
-% To repair this some new lua code is needed. This also
-% improves the color parsing and allows to use cmyk and spot colors as font colors.
-% It is also needed to use a patch version of \texttt{fontspec-luatex.sty} to
-% slightly change the way how the Opacity and Color key are handled.
-% The patch is only executed if luaotfload is new enough.
+% To repair this some new lua code is needed. It also needs a new fontspec
+% and a change in the color key.
% \begin{macrocode}
\sys_if_engine_luatex:T
{
- \lua_now:n
- {
- if~not~luaotfload.set_transparent_colorstack~
- then~
- tex.print("\\bool_gset_false:N\\g_@@_firstaid_fontspec_bool")~
- end
- }
\bool_if:NT \g_@@_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}
+ \@ifpackagelater{fontspec}{2023-03-10}
{
- \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}}
- }
- }
+ \__fontspec_keys_define_code:nnn {fontspec} {Color}
+ {
+ \tl_set:Nn \l__fontspec_hexcol_tl {#1}
+ }
+ }{}
+ }
}
% \end{macrocode}
% \subsection{Output routine}