使用2.7版本的mathjax,inlineMath可以很好的显示,全部显示在一行。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
});
</script>
</head>
<body>
First of all, we can "relax" the $\forall$-Introduction rule (page 31): $A \to B \vdash A \to \forall x B$, provided that $x$ is not *free* in $A$.
</body>
</html>
现在,我做了个版本升级,并且将mathjax部署在本地。
git clone https://github.com/mathjax/MathJax.git mathjax
然后将mathjax目录全部复制到本地的apache根目录中。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script type="text/javascript">
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
</script>
<script type="text/javascript"
src="http://127.0.0.1/mathjax/es5/tex-chtml.js?config=TeX-MML-AM_CHTML">
</script>
</head>
<body>
First of all, we can "relax" the $\forall$-Introduction rule : $A \to B \vdash A \to \forall x B$, provided that $x$ is not *free* in $A$.
</body>
</html>
再用浏览器打开
不能一行显示了!
请问,如何解决?
反复测试过,下载2.7.7,2.7.9版本的mathjax到本地,全部都一行显示。
3.2.0,3.2.1.3.2.2的版本,都有这个问题,如何解决呢?
我用 master 分支应该是 3.2.2 测试了是正常的: