[latex3-commits] [latex3/latex2e] lab-review-01: correct tagging with bold (44415eff)

github at latex-project.org github at latex-project.org
Mon May 29 17:15:42 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : lab-review-01
Link       : https://github.com/latex3/latex2e/commit/44415eff99793cca58418ce3b12e4a46a9ab2a3c

>---------------------------------------------------------------

commit 44415eff99793cca58418ce3b12e4a46a9ab2a3c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon May 29 17:15:42 2023 +0200

    correct tagging with bold


>---------------------------------------------------------------

44415eff99793cca58418ce3b12e4a46a9ab2a3c
 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.