[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: add check for luaotfload version (1bec954)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jun 14 15:49:57 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/1bec95402c6af2793a370a0dcbf6ac9502792483

>---------------------------------------------------------------

commit 1bec95402c6af2793a370a0dcbf6ac9502792483
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Jun 14 15:49:57 2022 +0200

    add check for luaotfload version


>---------------------------------------------------------------

1bec95402c6af2793a370a0dcbf6ac9502792483
 firstaid/fontspec-luatex-tmp-ltx.sty | 5 ++---
 pdfmanagement-firstaid.dtx           | 8 ++++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/firstaid/fontspec-luatex-tmp-ltx.sty b/firstaid/fontspec-luatex-tmp-ltx.sty
index 18bd326..ad7cc40 100644
--- a/firstaid/fontspec-luatex-tmp-ltx.sty
+++ b/firstaid/fontspec-luatex-tmp-ltx.sty
@@ -39,8 +39,8 @@
 %%^^A%%  Metadata for the package, including files and versioning
 
 \RequirePackage{xparse}
-\ProvidesExplPackage{fontspec-luatex}%
-  {2022/01/15}{2.8a}{Font selection for XeLaTeX and LuaLaTeX}
+\ProvidesExplPackage{fontspec-luatex-tmp-ltx}%
+  {2022/01/15}{2.8a}{Font selection for XeLaTeX and LuaLaTeX - PATCHED}
 
 %%^^A%%  fontspec-code-load.dtx -- part of FONTSPEC <wspr.io/fontspec>
 %%^^A%%  fontspec-code-vars.dtx -- part of FONTSPEC <wspr.io/fontspec>
@@ -3886,4 +3886,3 @@
   }
 \cs_new:Nn \fontspec_set_strong_level:n { \int_set:Nn \l__fontspec_strong_int {#1} }
 \strongfontdeclare{ \bfseries }
-
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index aab1b15..500ca8e 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -92,7 +92,15 @@
 % 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.
 %    \begin{macrocode}
+\lua_now:n
+  {
+   if~not~luaotfload.set_transparent_colorstack~
+   then~
+     tex.print("\\bool_set_false:N\\g_@@_firstaid_fontspec_bool")~
+   end
+  }
 \bool_if:NT \g_@@_firstaid_fontspec_bool
   {
     \sys_if_engine_luatex:T





More information about the latex3-commits mailing list.