[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: add Span in toc for nested links, latex3/tagging-issue#26, WIP [ci-skip] (3cafcc5e)
github at latex-project.org
github at latex-project.org
Wed Nov 22 00:45:56 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/3cafcc5e24b163b31a229e4f9ae5ebdfb09c87d2
>---------------------------------------------------------------
commit 3cafcc5e24b163b31a229e4f9ae5ebdfb09c87d2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Nov 22 00:45:56 2023 +0100
add Span in toc for nested links, latex3/tagging-issue#26, WIP [ci-skip]
>---------------------------------------------------------------
3cafcc5e24b163b31a229e4f9ae5ebdfb09c87d2
required/latex-lab/latex-lab-math.dtx | 14 ++++++++------
required/latex-lab/latex-lab-toc-hyperref-changes.dtx | 8 ++++----
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 02945e3b..c6d2c2bb 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1042,12 +1042,14 @@
% \typeout{==>~math~begin}
% needs different handling if we support nesting
\socket_use:n{tagsupport/math/content}
- \tagstructbegin{tag=Formula,
- AFinline-o=\l_@@_mathcontent_AF_source_tl,
- title-o=\g_@@_grabbed_env_tl,
- actualtext=\l_@@_mathcontent_actual_tl,
- alt=\l_@@_mathcontent_alt_tl
- }
+ \tag_struct_begin:n
+ {
+ tag=Formula,
+ AFinline-o = \l_@@_mathcontent_AF_source_tl,
+ title-o = \g_@@_grabbed_env_tl,
+ actualtext = \l_@@_mathcontent_actual_tl,
+ alt = \l_@@_mathcontent_alt_tl
+ }
% inner formula if multiple parts (not really implemented yet)
\grabaformulapartandstart
% the above does:
diff --git a/required/latex-lab/latex-lab-toc-hyperref-changes.dtx b/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
index 2f00b83c..ba61b51e 100644
--- a/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
+++ b/required/latex-lab/latex-lab-toc-hyperref-changes.dtx
@@ -82,10 +82,10 @@
\int_case:nnF {\Hy at linktoc}
{
{0}{} %none
- {1}{\hyper at linkstart{link}{#4}} %section
+ {1}{\hyper at linkstart{link}{#4}\tag_struct_begin:n{tag=Span}} %section
{2}{} %page
}
- {\hyper at linkstart{link}{#4}} %all
+ {\hyper at linkstart{link}{#4}\tag_struct_begin:n{tag=Span}} %all
}
}
}
@@ -98,10 +98,10 @@
\int_case:nnF {\Hy at linktoc}
{
{0}{} %none
- {1}{\hyper at linkend} %section
+ {1}{\tag_struct_end:\hyper at linkend} %section
{2}{} %page
}
- {\hyper at linkend} %all
+ {\tag_struct_end:\hyper at linkend} %all
} % none
}
}
More information about the latex3-commits
mailing list.