From 103347be314872b959c296941344f0f92caa7fa5 Mon Sep 17 00:00:00 2001 From: Frank Mittelbach Date: Fri, 3 Jan 2025 22:53:54 +0100 Subject: [PATCH] late review by Chris --- base/doc/ltnews41.tex | 9 +++++---- required/tools/array.dtx | 16 ++++++++-------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/base/doc/ltnews41.tex b/base/doc/ltnews41.tex index 58e035c53..2b3dcc6ec 100644 --- a/base/doc/ltnews41.tex +++ b/base/doc/ltnews41.tex @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 2024 +% Copyright 2024-2025 % The LaTeX Project and any individual authors listed elsewhere % in this file. % @@ -411,6 +411,7 @@ \subsection{Prevent \texttt{cmd} hook from defining an undefined command} \section{Changes to packages in the \pkg{graphics} category} \subsection{More accessibility keys in \pkg{graphicx}} + The \cs{includegraphics} command now accepts \verb|actualtext| and \verb|artifact| keys, which by default do nothing but are used by the tagging code to provide an ActualText string and a boolean flag that the @@ -437,8 +438,8 @@ \subsection{\pkg{multicol}:\ Full support for extended marks} \subsection{\pkg{array}:\ Improve preamble setup code for \texttt{p} and friends} While the preamble of a \env{tabular} or \env{array} is being built -the arguments to \texttt{p}, \texttt{m}, or \texttt{b} columns were -expanded several times. That is normally harmless because that +the arguments to \texttt{p}, \texttt{m}, or \texttt{b} columns +expanded several times. This is normally harmless because that argument contains usually just a dimension. However, in a case like \verb=p{\fpeval{15}pt}= this resulted in an error, because \cs{fpeval} was expanded a few times, but not often enough to result in a single @@ -446,7 +447,7 @@ \subsection{\pkg{array}:\ Improve preamble setup code for \texttt{p} and friends at all to allow for such edge cases as well as the extension available with the \pkg{calc} package, such as \verb=p{\widthof{AAAAAA}}= (the latter was possible before but needed to be taken into account while -the correction was implemented. +the correction was implemented). % \githubissue{1585} diff --git a/required/tools/array.dtx b/required/tools/array.dtx index af74f36b3..404435f05 100644 --- a/required/tools/array.dtx +++ b/required/tools/array.dtx @@ -39,7 +39,7 @@ % \begin{macrocode} %<+package>\NeedsTeXFormat{LaTeX2e}[2024/06/01] %<+package>\ProvidesPackage{array} -%<+package> [2024/12/20 v2.6h Tabular extension package (FMi)] +%<+package> [2025/01/03 v2.6h Tabular extension package (FMi)] % % \fi % @@ -2288,10 +2288,10 @@ Bug reports can be opened (category \texttt{#1}) at\\% % \end{macrocode} % % \changes{v2.6h}{2024/12/17}{New \cs{@startpbox@action} to do the real work -% after preamble was built (gh/1585)} -% Starting with 2.6h \cs{@startpbox} is only used during the -% built-up of the preamble changing there to \cs{@startpbox@action} -% To do the real work. For an explanation of this code see +% after the preamble is built (gh/1585)} +% Starting with 2.6h, \cs{@startpbox} is used only during the +% built-up of the preamble and then changed to \cs{@startpbox@action} +% which does the real work. For an explanation of this code see % the documentation in \cs{@mkpream}. We keep the \cs{@startpbox} % definition on top-level in case there are tabular packages that % built the preamble differently and expect that it contains @@ -3296,19 +3296,19 @@ Bug reports can be opened (category \texttt{#1}) at\\% % simple length expression, but with the calc package involved it % could break under an "\edef" operation, which is how the preamble % is constructed. We now make use of "\unexpanded" here to prevent that. The -% "\expandafter" gymnastics is necessary to expand the "#1" exactly +% "\expandafter" gymnastics are necessary to expand the "#1" exactly % once (since it will get "\@nextchar" as its value and need its % content). However, once added to the preamble, no further % expansion should happen if the preamble is extended. Therefore we % change from \cs{@startpbox} to \cs{@startpbox@action}. The latter % then has a trivial definition and expands (including its % argument) to itself while the preamble is being built. Outside of this -% preamble built-up \cs{@startpbox@action} then does the actual work. +% preamble build up \cs{@startpbox@action} does the actual work. % % \changes{v2.4j}{2018/11/13}{Do not expand argument of % \cs{@startpbox} while building the tabular preamble (sx/459285)} % \changes{v2.6h}{2024/12/17}{Expand argument of \cs{@startpbox} -% exactly once while the preamble is built and use +% exactly once while the preamble is being built, and use % \cs{@startpbox@action} later to do the real work (gh/1585)} % \begin{macrocode} \def\@startpbox##1{\unexpanded\expandafter{\expandafter