[latex3-commits] [latex3/latex2e] develop: correct tagging with bold (6546589a)
github at latex-project.org
github at latex-project.org
Wed Jun 7 23:17:18 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/6546589a156f743f9936349405caa46b0ab5c497
>---------------------------------------------------------------
commit 6546589a156f743f9936349405caa46b0ab5c497
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon May 29 17:15:42 2023 +0200
correct tagging with bold
>---------------------------------------------------------------
6546589a156f743f9936349405caa46b0ab5c497
required/latex-lab/latex-lab-block-tagging.dtx | 55 ++++++++++++++------------
1 file changed, 30 insertions(+), 25 deletions(-)
diff --git a/required/latex-lab/latex-lab-block-tagging.dtx b/required/latex-lab/latex-lab-block-tagging.dtx
index 124c5116..b6e3e302 100644
--- a/required/latex-lab/latex-lab-block-tagging.dtx
+++ b/required/latex-lab/latex-lab-block-tagging.dtx
@@ -1346,23 +1346,26 @@
% will help with the transion. But instead of using a
% \env{trivlist} we use a blockenv and some tagging for the title
% (as a Caption).
-%
+% We do not want the \texttt{Strong} tagging from \cs{textbf} here,
+% so we use \cs{bfseries} to set the font.
% \begin{macrocode}
\def\@begintheorem#1#2{
\UseInstance{blockenv}{theorem}{}
\tagpdfparaOff
- \textbf{
- \tag_struct_begin:n{tag=Caption}
+ \mode_leave_vertical:
+ \tag_struct_begin:n{tag=Caption}
+ \group_begin:
+ \bfseries
+ \tag_mc_begin:n {}
+ #1\
+ \tag_mc_end:
+ \tag_struct_begin:n{tag=Lbl}
\tag_mc_begin:n {}
- #1\
- \tag_mc_end:
- \tag_struct_begin:n{tag=Lbl}
- \tag_mc_begin:n {}
#2
- \tag_mc_end:
- \tag_struct_end:
+ \tag_mc_end:
\tag_struct_end:
- }
+ \group_end:
+ \tag_struct_end:
\tagpdfparaOn
% \end{macrocode}
%
@@ -1378,21 +1381,23 @@
\def\@opargbegintheorem#1#2#3{
\UseInstance{blockenv}{theorem}{}
\tagpdfparaOff
- \textbf{
- \tag_struct_begin:n{tag=Caption}
- \tag_mc_begin:n {}
- #1\
- \tag_mc_end:
- \tag_struct_begin:n{tag=Lbl}
- \tag_mc_begin:n {}
- #2
- \tag_mc_end:
- \tag_struct_end:
- \tag_mc_begin:n {}
- \ (#3)
- \tag_mc_end:
- \tag_struct_end:
- }
+ \mode_leave_vertical:
+ \tag_struct_begin:n{tag=Caption}
+ \group_begin:
+ \bfseries
+ \tag_mc_begin:n {}
+ #1\
+ \tag_mc_end:
+ \tag_struct_begin:n{tag=Lbl}
+ \tag_mc_begin:n {}
+ #2
+ \tag_mc_end:
+ \tag_struct_end:
+ \tag_mc_begin:n {}
+ \ (#3)
+ \tag_mc_end:
+ \group_end:
+ \tag_struct_end:
\tagpdfparaOn
% \end{macrocode}
%
More information about the latex3-commits
mailing list.