[latex3-commits] [latex3/latex2e] hotfix/gh1598: fix for #1598 (needs adjustment once tagpdf-base has been updated) (7d6751549)
github at latex-project.org
github at latex-project.org
Fri Nov 22 14:18:59 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : hotfix/gh1598
Link : https://github.com/latex3/latex2e/commit/7d6751549c53e893090e2c5f0cbf3c7c91717977
>---------------------------------------------------------------
commit 7d6751549c53e893090e2c5f0cbf3c7c91717977
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Nov 22 14:18:59 2024 +0100
fix for #1598 (needs adjustment once tagpdf-base has been updated)
>---------------------------------------------------------------
7d6751549c53e893090e2c5f0cbf3c7c91717977
base/changes.txt | 5 +++++
base/lttagging.dtx | 19 ++++++++++++-------
required/tools/testfiles/github-1598.lvt | 26 ++++++++++++++++++++++++++
required/tools/testfiles/github-1598.tlg | 8 ++++++++
4 files changed, 51 insertions(+), 7 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index a4edef9e6..168cd4c53 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -14,6 +14,11 @@ All changes above are only part of the development branch for the next release.
# 2024-11-01 PL1 Release
#########################
+2024-11-22 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * lttagging.dtx (section{Implementation}):
+ Declare \tag_if_active:TF and friends in the kernel (gh/1598)
+
2024-11-19 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* lttextcomp.dtx:
diff --git a/base/lttagging.dtx b/base/lttagging.dtx
index 6b68cd0e0..a470f591d 100644
--- a/base/lttagging.dtx
+++ b/base/lttagging.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{lttagging.dtx}
- [2024/10/21 v1.0k LaTeX Kernel (tagging support)]
+ [2024/11/22 v1.0l LaTeX Kernel (tagging support)]
% \iffalse
\documentclass{l3doc}
\GetFileInfo{lttagging.dtx}
@@ -183,13 +183,18 @@
% Again this is not the final definition for the kernel; it is just
% a version to get going while some parts of the kernel support are
% still missing.
+% \changes{v1.0l}{2024/11/21}{Define \cs{tag_if_active:TF} conditionals here (github/1598)}
% \begin{macrocode}
-\AddToHook{begindocument}[kernel]{
- \cs_if_exist:NF \tag_if_active:T
- {
- \prg_new_conditional:Npnn \tag_if_active: { p , T , TF, F }
- { \prg_return_false: }
- }
+\prg_new_conditional:Npnn \tag_if_active: { p , T , TF, F }
+ { \prg_return_false: }
+% \end{macrocode}
+% Next hook setting can go out again if tagpdf-base has been updated.
+% \begin{macrocode}
+\AddToHook{package/tagpdf/before}[kernel]{
+ \cs_undefine:N \tag_if_active:T
+ \cs_undefine:N \tag_if_active:F
+ \cs_undefine:N \tag_if_active:TF
+ \cs_undefine:N \tag_if_active_p:
}
% \end{macrocode}
%
diff --git a/required/tools/testfiles/github-1598.lvt b/required/tools/testfiles/github-1598.lvt
new file mode 100644
index 000000000..6d85cb7f2
--- /dev/null
+++ b/required/tools/testfiles/github-1598.lvt
@@ -0,0 +1,26 @@
+\show\documentclass
+
+\documentclass{article}
+
+\input{test2e}
+
+\usepackage{array}
+\newsavebox\hvOBox
+
+\START
+
+\savebox\hvOBox{%
+\begin{tabular}{@{} *9c @{\hspace{6em}} *3c @{}}
+2007& 2074& 1626& 113& 25& 8& 11& 8& 12& 71& 200& 3\\
+\end{tabular}}
+
+\OMIT
+\begin{document}
+\TIMO
+
+\usebox\hvOBox
+
+\newpage
+
+\OMIT
+\end{document}
diff --git a/required/tools/testfiles/github-1598.tlg b/required/tools/testfiles/github-1598.tlg
new file mode 100644
index 000000000..a3cb22efb
--- /dev/null
+++ b/required/tools/testfiles/github-1598.tlg
@@ -0,0 +1,8 @@
+This is a generated file for the LaTeX2e 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
+]
More information about the latex3-commits
mailing list.