summaryrefslogtreecommitdiff
path: root/macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx')
-rw-r--r--macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx61
1 files changed, 33 insertions, 28 deletions
diff --git a/macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx b/macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx
index 124c51163c..63145d929e 100644
--- a/macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx
+++ b/macros/latex-dev/required/latex-lab/latex-lab-block-tagging.dtx
@@ -26,8 +26,8 @@
% \fi
%
-\def\ltblocksversion{v0.8c}
-\def\ltblocksdate{2023/05/16}
+\def\ltblocksversion{v0.8d}
+\def\ltblocksdate{2023/06/07}
%
% \title{Prototype reimplementation of \LaTeXe{}'s block environments using templates}
@@ -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 potential 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_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}
%