[latex3-commits] [latex3/latex2e] tagging628-settodim: suspend tagging in \@settodim, tagging issue 628 (d4254c50)
github at latex-project.org
github at latex-project.org
Wed Sep 4 20:43:18 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : tagging628-settodim
Link : https://github.com/latex3/latex2e/commit/d4254c508007ac78f78ca6fb0cd2cf2b7a7f869e
>---------------------------------------------------------------
commit d4254c508007ac78f78ca6fb0cd2cf2b7a7f869e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Sep 4 20:43:18 2024 +0200
suspend tagging in \@settodim, tagging issue 628
>---------------------------------------------------------------
d4254c508007ac78f78ca6fb0cd2cf2b7a7f869e
base/changes.txt | 3 +++
base/ltlength.dtx | 22 ++++++++++++++++++++--
.../latex-lab/testfiles/gh-tagging628-settodim.lvt | 8 ++++++++
.../latex-lab/testfiles/gh-tagging628-settodim.tlg | 19 +++++++++++++++++++
4 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 69504ec7..7677af7b 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,9 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================
+2024-09-03 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
+ * ltlength.dtx: suspend tagging in \@settodim
+
2024-09-03 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
* fontdef.dtx: preload t1cmss.fd and t1cmtt.fd
diff --git a/base/ltlength.dtx b/base/ltlength.dtx
index c81e6edf..5d3b296c 100644
--- a/base/ltlength.dtx
+++ b/base/ltlength.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltlength.dtx}
- [2020/12/05 v1.1d LaTeX Kernel (Lengths)]
+ [2024/09/04 v1.1e LaTeX Kernel (Lengths)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltlength.dtx}
@@ -133,13 +133,31 @@
% \begin{macro}{\@settodim}
% \changes{LaTeX2e}{1993/11/22}{Macro added}
% \changes{v1.0a}{1994/03/07}{(DPC) Extra group for colour}
+% \changes{v1.1e}{2024/09/04}{(UF) Suspend tagging}
% The obvious analogs of |\settowidth|.
% \begin{macrocode}
-\def\@settodim#1#2#3{\setbox\@tempboxa\hbox{{#3}}#2#1\@tempboxa
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2024/09/04}%
+%<latexrelease> {\@settodim}{suspend tagging}%
+\def\@settodim#1#2#3{\setbox\@tempboxa\hbox
+ {{\SuspendTagging{@settodim}#3\ResumeTagging{@settodim}}}#2#1\@tempboxa
% \end{macrocode}
% Clear the memory afterwards (which might be a lot).
% \begin{macrocode}
\setbox\@tempboxa\box\voidb at x}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+% \end{macrocode}
+% \begin{macrocode}
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease> {\@settodim}{suspend tagging}%
+%<latexrelease>\def\@settodim#1#2#3{\setbox\@tempboxa\hbox{{#3}}#2#1\@tempboxa
+%<latexrelease> \setbox\@tempboxa\box\voidb at x}
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+% \end{macrocode}
+% \begin{macrocode}
\DeclareRobustCommand\settoheight{\@settodim\ht}
\DeclareRobustCommand\settodepth {\@settodim\dp}
\DeclareRobustCommand\settowidth {\@settodim\wd}
diff --git a/required/latex-lab/testfiles/gh-tagging628-settodim.lvt b/required/latex-lab/testfiles/gh-tagging628-settodim.lvt
new file mode 100644
index 00000000..3d470859
--- /dev/null
+++ b/required/latex-lab/testfiles/gh-tagging628-settodim.lvt
@@ -0,0 +1,8 @@
+\DocumentMetadata{testphase={phase-III,table}}
+\input{regression-test}
+\documentclass{article}
+\begin{document}
+\START
+\settowidth\parindent{\begin{tabular}{l}xxx\end{tabular}}
+x
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/testfiles/gh-tagging628-settodim.tlg b/required/latex-lab/testfiles/gh-tagging628-settodim.tlg
new file mode 100644
index 00000000..dc2d2b83
--- /dev/null
+++ b/required/latex-lab/testfiles/gh-tagging628-settodim.tlg
@@ -0,0 +1,19 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <7> on input line ....
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <5> on input line ....
+[1
+] (gh-tagging628-settodim.aux)
+Package tagpdf Info: Finalizing the tagging structure:
+(tagpdf) Writing out ~6 structure objects
+(tagpdf) with ~3 'MC' leaf nodes.
+(tagpdf) Be patient if there are lots of objects!
+Package tagpdf Info: writing ParentTree
+Package tagpdf Info: writing IDTree
+Package tagpdf Info: writing RoleMap
+Package tagpdf Info: writing ClassMap
+Package tagpdf Info: writing NameSpaces
+Package tagpdf Info: writing StructElems
+Package tagpdf Info: writing Root
More information about the latex3-commits
mailing list.