diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf.dtx | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.dtx b/macros/latex/contrib/tagpdf/tagpdf.dtx index 6da2ba0122..be94a64070 100644 --- a/macros/latex/contrib/tagpdf/tagpdf.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf.dtx @@ -93,7 +93,7 @@ % \begin{macrocode} %<@@=tag> %<*package> -\ProvidesExplPackage {tagpdf} {2023-08-04} {0.98k} +\ProvidesExplPackage {tagpdf} {2023-08-30} {0.98l} { A package to experiment with pdf tagging } \bool_if:nF @@ -119,7 +119,7 @@ % \end{macrocode} %<*debug> % \begin{macrocode} -\ProvidesExplPackage {tagpdf-debug} {2023-08-04} {0.98k} +\ProvidesExplPackage {tagpdf-debug} {2023-08-30} {0.98l} { debug code for tagpdf } \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput} % \end{macrocode} @@ -142,18 +142,28 @@ % we define a base package with dummy functions % \begin{macrocode} %<*base> -\ProvidesExplPackage {tagpdf-base} {2023-08-04} {0.98k} +\ProvidesExplPackage {tagpdf-base} {2023-08-30} {0.98l} {part of tagpdf - provide base, no-op versions of the user commands } %</base> % \end{macrocode} %\section{Package options} -% There are only two options to switch for luatex between generic and luamode, +% There are only two documented options to switch for luatex between generic and luamode, % TODO try to get rid of them. +% The option \texttt{disabledelayedshipout} is only temporary to be able to debug +% problem with the new shipout keyword if needed. % \begin{macrocode} %<*package> \bool_new:N\g_@@_mode_lua_bool +\bool_new:N\g_@@_delayed_shipout_bool +\bool_lazy_and:nnT + { \bool_if_exist_p:N \l__pdfmanagement_delayed_shipout_bool } + { \l__pdfmanagement_delayed_shipout_bool } + { + \bool_gset_true:N\g_@@_delayed_shipout_bool + } \DeclareOption {luamode} { \sys_if_engine_luatex:T { \bool_gset_true:N \g_@@_mode_lua_bool } } \DeclareOption {genericmode}{ \bool_gset_false:N\g_@@_mode_lua_bool } +\DeclareOption {disabledelayedshipout}{ \bool_gset_false:N\g_@@_delayed_shipout_bool } \ExecuteOptions{luamode} \ProcessOptions % \end{macrocode} @@ -350,7 +360,7 @@ % % \section{Variants of l3 commands} % \begin{macrocode} -\prg_generate_conditional_variant:Nnn \pdf_object_if_exist:n {e}{T,F} +\prg_generate_conditional_variant:Nnn \pdf_object_if_exist:n {e}{T,F,TF} \cs_generate_variant:Nn \pdf_object_ref:n {e} \cs_generate_variant:Nn \pdfannot_dict_put:nnn {nnx} \cs_generate_variant:Nn \pdffile_embed_stream:nnn {nxx,oxx} @@ -388,8 +398,11 @@ { \int_use:N \g_shipout_readonly_int } \ref_attribute_gset:nnnn { tagmcabs } {0} { now } { \int_use:N \c@g_@@_MCID_abs_int } -\ref_attribute_gset:nnnn {tagmcid } {0} { now } - { \int_use:N \g_@@_MCID_tmp_bypage_int } + +\flag_new:n { @@/mcid } +\ref_attribute_gset:nnnn {tagmcid } {0} { shipout } + { \flag_height:n { @@/mcid } } + % \end{macrocode} % \end{macro} % |