MathJax auto equation numbering does not work in Jupyter properly

孤街浪徒 提交于 2020-07-09 12:57:25

问题


I want to number the LaTeX equation, I searched internet that I shall use

%%javascript 
MathJax.Hub.Config({
    TeX:{equationNumbers:{autoNumber:'all'}}
});

I tested with an equation also with \eqref{}:

In equation $\eqref{eq:sample}$, we find the value of an interesting integral:
\begin{equation}
  \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
  \label{eq:sample}{\tag{99}}
\end{equation}

The output in JupyterLab is

So far everything looks alright, however I start any another cell, use \eqref{eq:sample} or \ref{eq:sample} again.

In equation $\eqref{eq:sample}$, we find the value of an interesting integral:

it turns out to be a bunch of question marks.

So I tested in Jupyter Notebook as well, as long as I call the reference from another cell, MathJax failed to link the reference.

How can I solve the problem? Any suggestions?

来源:https://stackoverflow.com/questions/61442253/mathjax-auto-equation-numbering-does-not-work-in-jupyter-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!