You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanid="tex-eq-numbers"></span><h2>Autmatic Equation Numering<aclass="headerlink" href="#autmatic-equation-numering" title="Permalink to this headline">¶</a></h2>
279
+
<p>New in MathJax v2.0 is the ability to have equations be numbered
280
+
automatically. This is off by default, so that pages don’t change
281
+
when you update from v1.1 to v2.0, but it is easy to configure MathJax
282
+
to produce automatic equation numbers by adding:</p>
<p>Equations can be numbered in two ways: either number the AMSmath
293
+
environments as LaTeX would, or number all displayed equations (the
294
+
example above uses AMS-style numbering). Set <ttclass="docutils literal"><spanclass="pre">autoNumber</span></tt> to
295
+
<ttclass="docutils literal"><spanclass="pre">"all"</span></tt> if you want every displayed equation to be numbered.
296
+
You can use <ttclass="docutils literal"><spanclass="pre">\notag</span></tt> or <ttclass="docutils literal"><spanclass="pre">\nonumber</span></tt> to prevent
297
+
individual equations from being numbered, and <ttclass="docutils literal"><spanclass="pre">\tag{}</span></tt> can be used
298
+
to override the usual equation number with your own symbol instead.</p>
299
+
<p>Note that the AMS environments come in two forms: starred and
300
+
unstarred. The unstarred versions produce equation numbers (when
301
+
<ttclass="docutils literal"><spanclass="pre">autoNumber</span></tt> is set to <ttclass="docutils literal"><spanclass="pre">"AMS"</span></tt>) and the starred ones don’t. For
<p>won’t be numbered (when <ttclass="docutils literal"><spanclass="pre">autoNumber</span></tt> is <ttclass="docutils literal"><spanclass="pre">"AMS"</span></tt>).</p>
315
+
<p>You can use <ttclass="docutils literal"><spanclass="pre">\label</span></tt> to give an equation an identifier that you can
316
+
use to refer to it later, and then use <ttclass="docutils literal"><spanclass="pre">\ref</span></tt> or <ttclass="docutils literal"><spanclass="pre">\eqref</span></tt> within
317
+
your document to insert the actual equation number at that location,
318
+
as a reference. For example,</p>
319
+
<divclass="highlight-latex"><divclass="highlight"><pre>In equation <spanclass="k">\eqref</span><spanclass="nb">{</span>eq:sample<spanclass="nb">}</span>, we find the value of an
<p>includes a labeled equation and a reference to that equation. Note
329
+
that references can come before the corresponding formula as well as
330
+
after them. See the equation numbering links in the <aclass="reference external" href="http://cdn.mathjax.org/mathjax/latest/test/examples.html">MathJax examples
331
+
page</a> for
332
+
more examples.</p>
333
+
<p>You can configure the way that numbers are displayed and how the
334
+
references to them are made using paramters in the <ttclass="docutils literal"><spanclass="pre">equationNumbers</span></tt>
335
+
block of your <ttclass="docutils literal"><spanclass="pre">TeX</span></tt> configuration. See the <aclass="reference internal" href="options/TeX.html#configure-tex"><em>TeX configuration
<spanid="tex-extensions"></span><h2>TeX and LaTeX extensions<aclass="headerlink" href="#tex-and-latex-extensions" title="Permalink to this headline">¶</a></h2>
279
340
<p>While MathJax includes nearly all of the Plain TeX math macros, and
@@ -1824,6 +1885,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
1824
1885
<li><aclass="reference internal" href="#tex-and-latex-math-delimiters">TeX and LaTeX math delimiters</a></li>
1825
1886
<li><aclass="reference internal" href="#tex-and-latex-in-html-documents">TeX and LaTeX in HTML documents</a></li>
0 commit comments