summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty
index c4a16b29420..0f5a9d9059b 100644
--- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty
+++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-user.sty
@@ -1,4 +1,4 @@
-\ProvidesExplPackage {tagpdf-user} {2019/01/04} {0.50}
+\ProvidesExplPackage {tagpdf-user} {2019/03/20} {0.60}
{tagpdf - user commands}
\NewDocumentCommand \tagpdfsetup { m }
@@ -10,10 +10,16 @@
\cs_set_eq:NN\tagpdfifluatexT \sys_if_engine_luatex:T
\cs_set_eq:NN\tagpdfifpdftexT \sys_if_engine_pdftex:T
+%%% a generic command to retrieve data
+
+\cs_new:Npn \tagpdfget #1 { \uftag_get:n { #1} }
+\cs_new:Npn \uftag_get:n #1 { \use:c {__uftag_get_data_#1: } }
+
+
%%%% mc related user commands
\NewDocumentCommand \tagmcifinTF { m m }
{
- \_uftag_mc_if_in:TF { #1 } { #2 }
+ \__uftag_mc_if_in:TF { #1 } { #2 }
}
\NewDocumentCommand \tagmcbegin { m }
@@ -74,9 +80,9 @@
\directlua
{
uftag.trace.log(
- "showtagpdfattributes: MC=>abscnt=\__uftag_get_mc_abs_cnt:=>attr=\the\g__uftag_mc_cnt_attr=>tag=" ..
- tostring(uftag.func.get_tag_from (\the\g__uftag_mc_type_attr)) ..
- "=\the\g__uftag_mc_type_attr",0
+ "showtagpdfattributes: MC=>abscnt=\__uftag_get_mc_abs_cnt:=>attr=\the\l__uftag_mc_cnt_attr=>tag=" ..
+ tostring(uftag.func.get_tag_from (\the\l__uftag_mc_type_attr)) ..
+ "=\the\l__uftag_mc_type_attr",0
)
}
\ignorespaces