From 4bd5f47ddb0e8809c4fb0f0402703efc8f1d4811 Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Wed, 12 Feb 2025 17:58:52 +0100 Subject: [PATCH] fix conditional --- tagpdf-struct.dtx | 2 +- tagpdf.dtx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tagpdf-struct.dtx b/tagpdf-struct.dtx index 75cd05b..4bb625c 100644 --- a/tagpdf-struct.dtx +++ b/tagpdf-struct.dtx @@ -878,7 +878,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_struct_fill_kid_key:n #1 %#1 is the struct num { - \sys_if_engine_luatex:TF + \sys_if_engine_luatex:F { \seq_clear:N \l_@@_tmpa_seq \seq_map_inline:cn { g_@@_struct_kids_#1_seq } diff --git a/tagpdf.dtx b/tagpdf.dtx index 1b52288..ade9311 100644 --- a/tagpdf.dtx +++ b/tagpdf.dtx @@ -207,8 +207,11 @@ % % \end{macrocode} %\section{Package options} +% The boolean is kept for now for compability, can go in 2026. % \begin{macrocode} %<*package> +\bool_new:N\g_@@_mode_lua_bool +\sys_if_engine_luatex:T {\bool_gset_true:N \g_@@_mode_lua_bool} \DeclareOption {luamode} { } \DeclareOption {genericmode}{ } \ProcessOptions