Skip to content
Permalink
Browse files

Merge pull request #1623 from basvandertol/FIX_AMSmath_ID_initilization

Fix for minor bug in fix for issue #240
  • Loading branch information...
dpvc committed Sep 27, 2016
2 parents e1810fe + e891f23 commit 33bcd3336c1b5292a15e2d3794899d11960b2dc1
Showing with 7 additions and 2 deletions.
  1. +7 −2 unpacked/extensions/TeX/AMSmath.js
@@ -603,7 +603,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
TEX.prefilterHooks.Add(function (data) {
AMS.display = data.display;
AMS.number = AMS.startNumber; // reset equation numbers (in case the equation restarted)
AMS.eqlabels = AMS.eqIDs = {}; AMS.badref = false;
AMS.eqlabels = {};
AMS.eqIDs = {};
AMS.badref = false;
if (AMS.refUpdate) {AMS.number = data.script.MathJax.startNumber}
});
TEX.postfilterHooks.Add(function (data) {
@@ -637,7 +639,10 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
//
TEX.resetEquationNumbers = function (n,keepLabels) {
AMS.startNumber = (n || 0);
if (!keepLabels) {AMS.labels = AMS.IDs = {}}
if (!keepLabels) {
AMS.labels = {};
AMS.IDs = {};
}
}

/******************************************************************************/

0 comments on commit 33bcd33

Please sign in to comment.
You can’t perform that action at this time.