[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh422: Copy option list to requested package (0da3c752)

PhelypeOleinik phelype.oleinik at latex-project.org
Sat Nov 14 23:48:42 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh422
Link       : https://github.com/latex3/latex2e/commit/0da3c752aa9052c34875495f8e7a53482a236c98

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

commit 0da3c752aa9052c34875495f8e7a53482a236c98
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sat Nov 14 19:48:42 2020 -0300

    Copy option list to requested package


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

0da3c752aa9052c34875495f8e7a53482a236c98
 base/ltclass.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 3c2c6bcd..036e9d3b 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -1174,7 +1174,10 @@
   \expandafter\xdef\csname opt@\reserved at a\endcsname{%
     \@ifundefined{opt@\reserved at a}\@empty
       {\csname opt@\reserved at a\endcsname,}%
-    \zap at space#2 \@empty}}
+    \zap at space#2 \@empty}
+  \expandafter\let
+    \csname opt@#3.#1\expandafter\endcsname
+    \csname opt@\reserved at a\endcsname}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %
@@ -2019,6 +2022,9 @@
 %    \begin{macrocode}
   \def\reserved at a{%
     \@pass at ptions\@currext{#1}{\@currname}%
+    \expandafter\let
+      \csname opt@\@currpkg at reqd\expandafter\endcsname
+      \csname opt@\@currname.\@currext\endcsname
     \global\expandafter
     \let\csname ver@\@currname.\@currext\endcsname\@empty
 %    \end{macrocode}





More information about the latex3-commits mailing list.