[latex3-commits] [git/LaTeX3-latex3-latex2e] edef-opts: changes and news doc (1475bf23)

David Carlisle d.p.carlisle at gmail.com
Tue Oct 11 00:45:35 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : edef-opts
Link       : https://github.com/latex3/latex2e/commit/1475bf2367624de1e02d5876c2dc380d09411451

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

commit 1475bf2367624de1e02d5876c2dc380d09411451
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Mon Oct 10 23:45:35 2022 +0100

    changes and news doc


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

1475bf2367624de1e02d5876c2dc380d09411451
 base/changes.txt      |  4 ++++
 base/doc/ltnews36.tex | 15 +++++++++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 102f31e4..df16ba48 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2022-10-10  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltclass.dtx: use \protected at edef rather than \edef wehe expanding option lists
+
 2022-10-03  Marcel Krüger  <marcel.krueger at latex-project.org>
 
 	* ltluatex.dtx:
diff --git a/base/doc/ltnews36.tex b/base/doc/ltnews36.tex
index 0ed38263..fbb47d56 100644
--- a/base/doc/ltnews36.tex
+++ b/base/doc/ltnews36.tex
@@ -255,6 +255,18 @@ already contains footnotes.
 \githubissue{168}
 
 
+\subsection{Robust commands in package options}
+With the standard key-based option handler added at the last release,
+or with contributed packages offering similar features, users may
+expect to be able to use a package option such as
+\verb|[font=\bfseries]|.
+Previously this failed with internal errors as the option list was
+expanded via \verb|\edef|. This has now been changed to use the
+existing command \verb|\protected at edef| so that any \LaTeX\ robust
+command should be safe to pass to a key value option.
+%
+\githubissue{932}
+
 
 \subsection{\LuaTeX\ callback efficiency improvement}
 
@@ -335,7 +347,7 @@ rules explicitly.
 
 \section{Bug fixes}
 
-\subsection{Prevent \TeX{} from loosing a \cs{smash}}
+\subsection{Prevent \TeX{} from losing a \cs{smash}}
 
 When \TeX{} is typesetting a fraction, it will rebox the material in
 either numerator or the denumerator depending on which is wider. If
@@ -381,7 +393,6 @@ approach altogether.
 \githubissue{921}
 
 
-
 \section{Changes to packages in the \pkg{amsmath} category}
 
 





More information about the latex3-commits mailing list.