diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-25 20:45:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-25 20:45:01 +0000 |
commit | 6dc17034e79eb06b9fc362217b91a449f726eda2 (patch) | |
tree | 1bc0bc9791d9c8e48cfde33718aa440a5459ec95 /Master/texmf-dist/tex/latex | |
parent | 11589eaad9c7f5595a7e35b3f5df4d33f6923a16 (diff) |
tagpdf (25jan23)
git-svn-id: svn://tug.org/texlive/trunk@65629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
17 files changed, 120 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty index 3da06a2f1b4..e33868b0b0d 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty @@ -24,7 +24,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf.dtx -\ProvidesExplPackage {tagpdf-base} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf-base} {2023-01-24} {0.98b} {part of tagpdf - provide base, no-op versions of the user commands } \AddToHook{begindocument} { @@ -40,8 +40,8 @@ \cs_new_protected:Npn \tag_stop:{} \cs_new_protected:Npn \tag_start:{} -\cs_new_protected:Npn \tag_stop:n{} -\cs_new_protected:Npn \tag_start:n{} +\cs_new_protected:Npn \tag_stop:n #1 {} +\cs_new_protected:Npn \tag_start:n #1 {} %% File: tagpdf-mc-generic.dtx \cs_new_protected:Npn \tag_mc_begin:n #1 { \__tag_whatsits: } diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty index ea2f311304c..367a746c612 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-mc-generic.dtx -\ProvidesExplPackage {tagpdf-debug-generic} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf-debug-generic} {2023-01-24} {0.98b} {part of tagpdf - debugging code related to marking chunks - generic mode} \cs_set_protected:Npn \tag_mc_begin:n #1 %#1 keyval { diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty index 944dd28d7fc..bac841f7404 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty @@ -26,7 +26,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf.dtx -\ProvidesExplPackage {tagpdf-debug} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf-debug} {2023-01-24} {0.98b} { debug code for tagpdf } \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput} \prop_gput:Nnn \g_msg_module_type_prop { tag / debug} {} diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def index b3c2876b012..021c829abb9 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-backend.dtx -\ProvidesExplFile {tagpdf-luatex.def} {2022-12-22} {0.98a} +\ProvidesExplFile {tagpdf-luatex.def} {2023-01-24} {0.98b} {tagpdf~driver~for~luatex} { \fontencoding{TU}\fontfamily{lmr}\fontseries{m}\fontshape{n}\fontsize{10pt}{10pt}\selectfont diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty index b345e736719..254b5c1c7fa 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-mc-generic.dtx -\ProvidesExplPackage {tagpdf-mc-code-generic} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf-mc-code-generic} {2023-01-24} {0.98b} {part of tagpdf - code related to marking chunks - generic mode} \__tag_prop_new:N \g__tag_MCID_byabspage_prop diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty index 30ad779f1ae..e7ec855ee54 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-mc-luacode.dtx -\ProvidesExplPackage {tagpdf-mc-code-lua} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf-mc-code-lua} {2023-01-24} {0.98b} {tagpdf - mc code only for the luamode } \hook_gput_code:nnn{begindocument}{tagpdf/mc} { @@ -80,7 +80,7 @@ = {\lua_now:e { - tex.print(tex.getattribute(luatexbase.attributes.g__tag_mc_type_attr)) + tex.print(\int_use:N \c_document_cctab,tex.getattribute(luatexbase.attributes.g__tag_mc_type_attr)) } } { \prg_return_false: } diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def index 42d51a6d383..c73e98afa38 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2023-01-24} {0.98b} %% {latex-book} {https://www.latex-project.org/ns/book/2022}{} chapter, H1,pdf2, section, H2,pdf2, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-inline.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-inline.def index 5dcec775dc7..05f27502519 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-inline.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-inline.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-latex-inline.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-latex-inline.def} {2023-01-24} {0.98b} %% {latex-inline} {https://www.latex-project.org/ns/inline/2022}{} chapter, Span, pdf2, section, Span, pdf2, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def index 4d5115640f9..b6275cd847d 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-latex.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-latex.def} {2023-01-24} {0.98b} %% {latex} {https://www.latex-project.org/ns/dflt/2022}{} title, Title, pdf2, part, Title, pdf2, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def index 0d0096c63f4..a3e97ada0ba 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2023-01-24} {0.98b} abs,,, and,,, annotation,,, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def index 693faa9ba45..b6bb6391cbe 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2023-01-24} {0.98b} %% {pdf} {http://iso.org/pdf/ssn}{} StructTreeRoot,StructTreeRoot,pdf,D, Document,Document,pdf,D, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def index fbc68fa9b54..6c2c31df27c 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2023-01-24} {0.98b} %% {pdf2} {http://iso.org/pdf2/ssn}{} Document,Document,pdf2,D, Part,Part,pdf2,G, diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv index 43263cb5513..96faf168ae9 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2023-01-24} {0.98b} ,,,StructTreeRoot,Document,DocumentFragment,Art,Part,Div,Sect,Aside,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Title,Sub,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Em,Strong,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,FENote,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,math,mathml,Artifact,MC Document,both,document level,1,0..n,0..n,∅,‡,‡,∅,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅ DocumentFragment,2.0,document level,∅,0..n,0..n,0..n,‡,‡,0..n,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅*,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,0..n,∅ diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv index 39567b05cc0..cd41098083d 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf-data.dtx -%% \ProvidesExplFile {tagpdf-parent-child.csv} {2022-12-22} {0.98a} +%% \ProvidesExplFile {tagpdf-parent-child.csv} {2023-01-24} {0.98b} ,,,StructTreeRoot,Document,Art,Part,Div,Sect,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,MC Document,both,document level,1,0..n,∅,‡,‡,∅,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅ Art,1.7,grouping,∅,0..n,∅,‡,‡,0..n,0..n,‡,∅,∅,∅,0..n,∅,0..n,∅,∅,∅,0..1,0..1,∅,∅,∅,0..n,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅,∅,0..n,0..n,∅,∅,∅,0..n,0..n,∅,∅ diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua b/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua index 676e7a99b2e..b4accfdb906 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua @@ -24,8 +24,8 @@ local ProvidesLuaModule = { name = "tagpdf", - version = "0.98a", --TAGVERSION - date = "2022-12-22", --TAGDATE + version = "0.98b", --TAGVERSION + date = "2023-01-24", --TAGDATE description = "tagpdf lua code", license = "The LATEX Project Public License 1.3c" } diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty index ebd2964642a..8591ee5f978 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty @@ -28,7 +28,7 @@ %% and all files in that bundle must be distributed together. %% %% File: tagpdf.dtx -\ProvidesExplPackage {tagpdf} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdf} {2023-01-24} {0.98b} { A package to experiment with pdf tagging } \bool_if:nF @@ -70,6 +70,7 @@ { {abspage} { \int_use:N \g_shipout_readonly_int} {tagmcabs}{ \int_use:N \c@g__tag_MCID_abs_int } + {tagstruct}{\int_use:N \c@g__tag_struct_abs_int } } } } @@ -744,6 +745,54 @@ { \pdf_object_ref:n { __tag/struct/0 } } } } +\int_new:N\g__tag_tree_id_pad_int +\cs_generate_variant:Nn \tl_count:n {e} +\hook_gput_code:nnn{begindocument}{tagpdf} + { + \int_gset:Nn\g__tag_tree_id_pad_int + {\tl_count:e { \__tag_ref_value_lastpage:nn{tagstruct}{1000}}+1} + } + +\cs_new_protected:Npn \__tag_tree_write_idtree: + { + \tl_clear:N \l__tag_tmpa_tl + \tl_clear:N \l__tag_tmpb_tl + \int_zero:N \l__tag_tmpa_int + \int_step_inline:nn {\c@g__tag_struct_abs_int} + { + \int_incr:N\l__tag_tmpa_int + \tl_put_right:Nx \l__tag_tmpa_tl + { + \__tag_struct_get_id:n{##1}~\pdf_object_ref:n{__tag/struct/##1}~ + } + \int_compare:nNnF {\l__tag_tmpa_int}<{50} % + { + \pdf_object_unnamed_write:nx {dict} + { /Limits~[\__tag_struct_get_id:n{##1-\l__tag_tmpa_int+1}~\__tag_struct_get_id:n{##1}] + /Names~[\l__tag_tmpa_tl] + } + \tl_put_right:Nx\l__tag_tmpb_tl {\pdf_object_ref_last:\c_space_tl} + \int_zero:N \l__tag_tmpa_int + \tl_clear:N \l__tag_tmpa_tl + } + } + \tl_if_empty:NF \l__tag_tmpa_tl + { + \pdf_object_unnamed_write:nx {dict} + { + /Limits~ + [\__tag_struct_get_id:n{\c@g__tag_struct_abs_int-\l__tag_tmpa_int+1}~ + \__tag_struct_get_id:n{\c@g__tag_struct_abs_int}] + /Names~[\l__tag_tmpa_tl] + } + \tl_put_right:Nx\l__tag_tmpb_tl {\pdf_object_ref_last:} + } + \pdf_object_unnamed_write:nx {dict}{/Kids~[\l__tag_tmpb_tl]} + \__tag_prop_gput:cnx + { g__tag_struct_0_prop } + { IDTree } + { \pdf_object_ref_last: } + } \pdf_version_compare:NnTF < {2.0} { \cs_new_protected:Npn \__tag_tree_write_structtreeroot: @@ -756,7 +805,14 @@ { g__tag_struct_0_prop } { RoleMap } { \pdf_object_ref:n { __tag/tree/rolemap } } - \__tag_struct_write_obj:n { 0 } + \__tag_struct_fill_kid_key:n { 0 } + \__tag_struct_get_dict_content:nN { 0 } \l__tag_tmpa_tl + \pdf_object_write:nnx + { __tag/struct/0 } + {dict} + { + \l__tag_tmpa_tl + } } } { @@ -766,7 +822,14 @@ { g__tag_struct_0_prop } { ParentTree } { \pdf_object_ref:n { __tag/tree/parenttree } } - \__tag_struct_write_obj:n { 0 } + \__tag_struct_fill_kid_key:n { 0 } + \__tag_struct_get_dict_content:nN { 0 } \l__tag_tmpa_tl + \pdf_object_write:nnx + { __tag/struct/0 } + {dict} + { + \l__tag_tmpa_tl + } } } \cs_new_protected:Npn \__tag_tree_write_structelements: @@ -966,6 +1029,7 @@ \hook_use:n {tagpdf/finish/before} \__tag_tree_final_checks: \__tag_tree_write_parenttree: + \__tag_tree_write_idtree: \__tag_tree_write_rolemap: \__tag_tree_write_classmap: \__tag_tree_write_namespaces: @@ -1832,6 +1896,16 @@ { g__tag_struct_0_prop } { Namespaces } { \pdf_object_ref:n { __tag/tree/namespaces } } +\cs_new:Npn \__tag_struct_get_id:n #1 %#1=struct num + { + ( + ID. + \prg_replicate:nn + { \int_abs:n{\g__tag_tree_id_pad_int - \tl_count:e { \int_to_arabic:n { #1 } }} } + { 0 } + \int_to_arabic:n { #1 } + ) + } \pdf_version_compare:NnTF < {2.0} { @@ -2042,7 +2116,8 @@ { __tag/struct/#1 } {dict} { - \l__tag_tmpa_tl + \l__tag_tmpa_tl\c_space_tl + /ID~\__tag_struct_get_id:n{#1} } } { @@ -2095,6 +2170,10 @@ \prop_item:cn {g__tag_struct_\g__tag_struct_stack_current_tl _prop}{S} } } +\cs_new:Npn \__tag_get_data_struct_id: + { + \__tag_struct_get_id:n {\g__tag_struct_stack_current_tl} + } \keys_define:nn { __tag / struct } { label .tl_set:N = \l__tag_struct_key_label_tl, @@ -2927,6 +3006,7 @@ } \AddToHook{begindocument/before} { + \@ifundefined{@mult@ptagging@hook}{\RequirePackage{output-patches-tmp-ltx}}{} % \bool_if:NF \g__tag_mode_lua_bool { \cs_if_exist:NT \@kernel@before@footins diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty index cc4eb9f4b76..3ad0e3de746 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty @@ -1,33 +1,36 @@ %\RequirePackage[enable-debug]{expl3}[2018/06/14] -\ProvidesExplPackage {tagpdfdocu-patches} {2022-12-22} {0.98a} +\ProvidesExplPackage {tagpdfdocu-patches} {2023-01-24} {0.98b} {patches/commands for the tagpdf documentation} \RequirePackage{etoolbox,xpatch} +% latex-lab experiments +\providecommand\tagtool[1]{} %vLogos \ExplSyntaxOn \DeclareRobustCommand\TeX{ + \leavevmode \tag_mc_end_push: \tag_struct_begin:n{tag=Span,alt=TeX,actualtext=TeX} \tagmcbegin{} - T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@ + T\kern-.1667em\lower.5ex\hbox{E}\kern-.05emX\@ %changed from -.125em \tagmcend \tag_struct_end: \tag_mc_begin_pop:n{}} -\DeclareRobustCommand{\LaTeX}{L\kern-.36em% - { +\DeclareRobustCommand{\LaTeX}{ + \leavevmode \tag_mc_end_push: \tag_struct_begin:n{tag=Span,alt=LaTeX,actualtext=LaTeX} \tagmcbegin{} + L\kern-.25em % %changed from -0.36em \sbox\z@ T% \vbox to\ht\z@{\hbox{\check@mathfonts \fontsize\sf@size\z@ \math@fontsfalse\selectfont A}% \vss}% - }% - \kern-.15em% - T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@ + \kern-.1em % %changed from 0.15em + T\kern-.1667em\lower.5ex\hbox{E}\kern-.05emX\@ %changed from -0.125 \tagmcend \tag_struct_end: \tag_mc_begin_pop:n{} @@ -39,6 +42,13 @@ \AddToHook{cmd/textbf/after} {\tag_mc_end:\tag_struct_end:\tag_mc_begin_pop:n{}} + +% emph +\AddToHook{cmd/emph/before} + {\leavevmode\tag_mc_end_push:\tag_struct_begin:n{tag=Em}\tagmcbegin{}} + +\AddToHook{cmd/emph/after} + {\tag_mc_end:\tag_struct_end:\tag_mc_begin_pop:n{}} \newcommand\minisec[1]{% |