[latex3-commits] [git/LaTeX3-latex3-latex2e] main: Check for multiple classes (390834a2)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jun 20 14:33:12 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : main
Link       : https://github.com/latex3/latex2e/commit/390834a2a7136245897739ebeafa6120c8f9bcf2

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

commit 390834a2a7136245897739ebeafa6120c8f9bcf2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jun 20 13:32:58 2022 +0100

    Check for multiple classes


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

390834a2a7136245897739ebeafa6120c8f9bcf2
 base/ltkeys.dtx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 6bc96914..fbd5ce30 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -282,7 +282,7 @@
 % \changes{v1.0h}{2022/06/19}{Further work on handling of option removal}
 % \changes{v1.0h}{2022/06/20}{Use raw options data}
 % \begin{macro}{\@@_options_class:nnn}
-% \changes{v1.0h}{2022/06/19}{New function}
+% \changes{v1.0h}{2022/06/20}{New function}
 %   For classes, each option (stripped of any content after |=|)
 %   is checked for existence as a key. If found, the option is added to
 %   the combined list for processing. On the other hand, unused options
@@ -313,7 +313,12 @@
   {
     \keys_if_exist:nnTF {#3} {#1}
       { \clist_put_right:Nn \l_@@_options_clist {#2} }
-      { \clist_put_right:Nn \@unusedoptionlist {#1} }
+      {
+        \str_if_eq:eeF
+          { \exp_not:v { @raw at opt@ \@currname . \@currext } }
+          { \exp_not:V \@raw at classoption }
+          { \clist_put_right:Nn \@unusedoptionlist {#1} }
+      }
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.