Skip to content

LaTeX2e 更新への対応 #75

@aminophen

Description

@aminophen

LaTeX2e 2021-11-15 において eqnarray 環境が更新されており,jsclasses はそれを上書きしてしまう。

diff --git a/base/ltmath.dtx b/base/ltmath.dtx
index aadb96fb..0eded696 100644
--- a/base/ltmath.dtx
+++ b/base/ltmath.dtx
@@ -38,7 +38,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmath.dtx}
-              [2021/04/20 v1.2i LaTeX Kernel (Math Setup)]
+              [2021/10/14 v1.2j LaTeX Kernel (Math Setup)]
 % \iffalse
 %</driver>
 %
@@ -915,10 +915,13 @@
 %    whole display. Note that we can't use \cs{refstepcounter} as this
 %    results in |\@currentlabel| getting restored at the wrong and
 %    thus always writing the first label to the \texttt{.aux} file.
+% \changes{v1.2j}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 \def\eqnarray{%
    \stepcounter{equation}%
    \def\@currentlabel{\p@equation\theequation}%
+   \def\@currentcounter{equation}%
    \global\@eqnswtrue
    \m@th
    \global\@eqcnt\z@
@@ -1231,10 +1234,13 @@
 %
 % \begin{environment}{eqnarray}
 %    The \textsf{eqnarray} environment
+% \changes{v1.2j}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 \renewenvironment{eqnarray}{%
     \stepcounter{equation}%
     \def\@currentlabel{\p@equation\theequation}%
+    \def\@currentcounter{equation}%
     \global\@eqnswtrue\m@th
     \global\@eqcnt\z@
     \tabskip\mathindent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions