如何在MathJax中使用张量?

时间:2018-09-04 14:49:36

标签: javascript html latex mathjax

我是HTML的新手,正在尝试将大量LaTeX文档转移到新格式。到目前为止,使用MathJax进行的大多数数学到目前为止都还不错,但是张量似乎是一个更困难的问题。有没有简单的方法来实现它们?即使这是一个廉价的黑客。

<!DOCTYPE html>
<html>
<head>
<!--MathJax-->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!--LaTeX commands-->
$ \newcommand{\pd}[2]{ \frac{\partial #1}{\partial #2}}$
</head>
<body>
<p>I would like this to come out well:
    $\tensor{\Lambda}{^\nu_\mu^{\gamma\beta}} $</p>
<p>I imagine it isn't as simple as defining a new command like I've done for partial differentiation:
    $\pd{y}{x}$.</p>
</body>
</html>

0 个答案:

没有答案