如何使用数学jax? [英] How to use math jax?
问题描述
我已经阅读了文档,但仍然不知道如何从TeX中应用它
I've been read the docs and I still don't get how to apply it from TeX
所以基本上我想转换此字符串
so basically i wanted to convert this string
<p><span class='math-tex'>\\( x>0,y>0 \\)</span></p>
<p><span class='math-tex'>( (\\frac{2}{7},\\frac{2}{18}) )</span></p>
他们是tex版本吗?使用\\( \\)
they are tex version right ? using \\( \\)
从我的API开始,我仍然不知道如何转换
from my API and I still have no idea how to convert it
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
}
};
</script>
<script type='text/javascript' async
src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'>
</script>
<p>
<span class='math-tex'>( (\\frac{2}{7},\\frac{2}{18}) )</span>
</p>
我也一直在检查示例,甚至实时演示
I also have been inspect the example and even the live demo
When $a \ne 0$, there are two solutions to \(\\frac{2}{7}\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
When $a \ne 0$, there are two solutions to \(\\frac{2}{7}\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
而且我仍然不知道如何转换此tex $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
and i still have no idea how to convert this tex $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
推荐答案
您正在使用\\
,而应该使用\
.
You are using \\
instead you should use \
.
这是您的工作代码.
<script>
MathJax = {
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)']
],
}
};
</script>
<script type='text/javascript' async src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'>
</script>
<p>
<span class='math-tex'>( \(\frac{2}{7},\frac{2}{18}\) )</span>
</p>
这篇关于如何使用数学jax?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!