[latex3-commits] [latex3/latex2e] develop: Add that \CurrentOption is available in \DeclareUnknownKeyHandler (8d41d11b)

github at latex-project.org github at latex-project.org
Sat Oct 14 15:58:29 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/8d41d11bcc9ba0adecc9e45471712ad1ab111e20

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

commit 8d41d11bcc9ba0adecc9e45471712ad1ab111e20
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Oct 14 14:58:29 2023 +0100

    Add that \CurrentOption is available in \DeclareUnknownKeyHandler


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

8d41d11bcc9ba0adecc9e45471712ad1ab111e20
 base/changes.txt      | 3 +++
 base/doc/clsguide.tex | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index 69d5bc08..1ad87cca 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,9 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2023-10-14 Joseph Wright  <Joseph.Wright at latex-project.org>
+	* clsguide.tes:
+	Add that \CurrentOption is available in \DeclareUnknownKeyHandler
 
 2023-10-10  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index 7225425e..68e0a9a3 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -875,7 +875,9 @@ options.
 The command |\DeclareUnknownKeyHandler| may be used to define the behavior when
 an undefined key is encountered. The \m{code} will receive the unknown key name
 as |#1| and the value as |#2|. These can then be processed as appropriate,
-e.g.~by forwarding to another package.
+e.g.~by forwarding to another package. The entire option is available as
+\cs{CurrentOption}, should it be necessary to pass on options which may or
+may not contain an |=|~sign.
 
 \begin{decl}
   |\ProcessKeyOptions| \oarg{family}





More information about the latex3-commits mailing list.