[latex3-commits] [git/LaTeX3-latex3-latex2e] gh513: support RequirePackage before documentclass (6bacf490)

David Carlisle d.p.carlisle at gmail.com
Sat Mar 6 01:27:54 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh513
Link       : https://github.com/latex3/latex2e/commit/6bacf4901d51c9c1ae3d29d401765695e934a5f7

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

commit 6bacf4901d51c9c1ae3d29d401765695e934a5f7
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Mar 6 00:27:54 2021 +0000

    support RequirePackage before documentclass


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

6bacf4901d51c9c1ae3d29d401765695e934a5f7
 base/ltclass.dtx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 2b14d58d..b7cf3e49 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -1386,6 +1386,7 @@
 %<*2ekernel|latexrelease>
 \def\@xprocess at ptions{%
   \ifx\@currext\@clsextension\else
+   \ifx\@classoptionslist\relax\else
     \@for\CurrentOption:=\@classoptionslist\do{%
       \ifx\CurrentOption\@empty\else
         \@ifundefined{ds@\CurrentOption}{}{%
@@ -1393,6 +1394,7 @@
           \expandafter\let\csname ds@\CurrentOption\endcsname\@empty
         }%
       \fi}%
+    \fi
   \fi
   \@process at pti@ns}
 %</2ekernel|latexrelease>





More information about the latex3-commits mailing list.