Skip to content

Commit

Permalink
add Span in toc for nested links, latex3/tagging-issue#26, WIP [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Nov 21, 2023
1 parent 74c88c3 commit 3cafcc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions required/latex-lab/latex-lab-toc-hyperref-changes.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
\int_case:nnF {\Hy@linktoc}
{
{0}{} %none
{1}{\hyper@linkstart{link}{#4}} %section
{1}{\hyper@linkstart{link}{#4}\tag_struct_begin:n{tag=Span}} %section
{2}{} %page
}
{\hyper@linkstart{link}{#4}} %all
{\hyper@linkstart{link}{#4}\tag_struct_begin:n{tag=Span}} %all
}
}
}
Expand All @@ -98,10 +98,10 @@
\int_case:nnF {\Hy@linktoc}
{
{0}{} %none
{1}{\hyper@linkend} %section
{1}{\tag_struct_end:\hyper@linkend} %section
{2}{} %page
}
{\hyper@linkend} %all
{\tag_struct_end:\hyper@linkend} %all
} % none
}
}
Expand Down

0 comments on commit 3cafcc5

Please sign in to comment.