diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty index 9c5c3aa6d2e..47c86e8af40 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty @@ -23,25 +23,43 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf.dtx -\ProvidesExplPackage {tagpdf-base} {2022-05-11} {0.94} +\ProvidesExplPackage {tagpdf-base} {2022-05-29} {0.95} {part of tagpdf - provide base, no-op versions of the user commands } +\AddToHook{begindocument} + { + \str_case:VnF \c_sys_backend_str + { + { luatex } { \cs_new_protected:Npn \__tag_whatsits: {} } + { dvisvgm } { \cs_new_protected:Npn \__tag_whatsits: {} } + } + { + \cs_new_protected:Npn \__tag_whatsits: {\tex_special:D {} } + } + } %% File: tagpdf-mc-generic.dtx -\cs_new_protected:Npn \tag_mc_begin:n #1 {} -\cs_new_protected:Nn \tag_mc_end:{} +\cs_new_protected:Npn \tag_mc_begin:n #1 { \__tag_whatsits: } +\cs_new_protected:Nn \tag_mc_end:{ \__tag_whatsits: } %% File: tagpdf-mc-shared.dtx -\cs_new_protected:Npn \tag_mc_use:n #1 {} +\cs_new_protected:Npn \tag_mc_use:n #1 { \__tag_whatsits: } \cs_new_protected:Npn \tag_mc_artifact_group_begin:n #1 {} \cs_new_protected:Npn \tag_mc_artifact_group_end:{} \cs_new_protected:Npn \tag_mc_end_push: {} \cs_new_protected:Npn \tag_mc_begin_pop:n #1 {} %% File: tagpdf-struct.dtx -\cs_new_protected:Npn \tag_struct_begin:n #1 {} +\newcounter { g__tag_struct_abs_int } +\int_gzero:N \c@g__tag_struct_abs_int +\cs_new:Npn \__tag_get_data_struct_num: + { + \int_use:N\c@g__tag_struct_abs_int + } +\cs_new_protected:Npn \tag_struct_begin:n #1 {\int_gincr:N \c@g__tag_struct_abs_int} \cs_new_protected:Npn \tag_struct_end:{} \cs_new_protected:Npn \tag_struct_use:n #1 {} %% File: tagpdf-checks.dtx +\cs_new:Npn \tag_get:n #1 { \use:c {__tag_get_data_#1: } } \prg_new_conditional:Npnn \tag_if_active: { p , T , TF, F } { \prg_return_false: } %% |