diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx index cf70950a28d..261a3ff73f3 100644 --- a/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx +++ b/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.98h, released 2023-06-06} +% \date{Version 0.98i, released 2023-06-14} % \maketitle % \begin{implementation} % The code is splitted into three parts: code shared by all engines, @@ -86,7 +86,7 @@ % \begin{macrocode} %<@@=tag> %<*luamode> -\ProvidesExplPackage {tagpdf-mc-code-lua} {2023-06-06} {0.98h} +\ProvidesExplPackage {tagpdf-mc-code-lua} {2023-06-14} {0.98i} {tagpdf - mc code only for the luamode } %</luamode> % \end{macrocode} @@ -375,6 +375,22 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\tag_mc_reset_box:N} +% This allows to reset the mc-attributes in box. On base and generic mode it should do +% nothing. +% \begin{macrocode} +\cs_set_protected:Npn \tag_mc_reset_box:N #1 + { + \lua_now:e + { + local~type=tex.getattribute(luatexbase.attributes.g_@@_mc_type_attr) + local~mc=tex.getattribute(luatexbase.attributes.g_@@_mc_cnt_attr) + ltx.__tag.func.update_mc_attributes(tex.getbox(\int_use:N #1),mc,type) + } + } +% \end{macrocode} +% \end{macro} +% % \begin{macro}{ \@@_get_data_mc_tag: } % The command to retrieve the current mc tag. % TODO: Perhaps this should use the attribute instead. |