MathJax

作者: 华山论剑 | 来源:发表于2017-02-04 19:12 被阅读47次

官方文档:http://docs.mathjax.org/en/latest/

MathJax有三种使用方式:CDN,在自己的server上安装或者在本机上不连网使用。

CDN方式:

<!DOCTYPE html>
<html>
<head>
<title>MathJax TeX Test Page</title>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML">
</script>
</head>
<body>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>

相关文章

网友评论

      本文标题:MathJax

      本文链接:https://www.haomeiwen.com/subject/hihsittx.html