等价于Mathjax中的\ DeclareMathOperator? [英] Equivalent of \DeclareMathOperator in mathjax?

查看:317
本文介绍了等价于Mathjax中的\ DeclareMathOperator?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在mathjax中实现相同的效果?

How do I achieve the same effect in mathjax?

插入

\DeclareMathOperator{\E}{\mathbb{E}}

html中的

不起作用,mathjax引发Undefined control sequence \DeclareMathOperator错误.我可以,但是可以使用`newcommand'.有解决方法吗?

in the html does not work, mathjax throws Undefined control sequence \DeclareMathOperator error. I can, however use `newcommand. Is there a workaround?

推荐答案

您需要加载AMSmath扩展名(该扩展名包含在所有预定义的配置文件中,因此我假设您正在使用自己的配置).添加

You need to load the AMSmath extension (which is included in all the pre-defined configuration files, so I'm assuming you are using your own configuration). Add

TeX: {
  extensions: ["AMSmath.js","AMSsymbols.js"]
}

您的配置,应该这样做.

to your configuration and that should do it.

编辑: 此外,看起来orgmode.org已安装了MathJax的古代版本(v1.0.1),已经过了年.我为您提供的配置过程已添加到v2.0中,因此这就是为什么不进行加载的原因.可能还有\DeclareMathOperator不在v1.0.1中(我记得不是).您应该切换到 http://cdn.mathjax.org/mathjax/latest/MathJax.js 以获得当前版本.

EDIT: Also, it looks like orgmode.org has an ancient version of MathJax installed (v1.0.1) that is several years out of date. The configuration process that I gave you was added in v2.0, so that is why that isn't being loaded. It may also be that \DeclareMathOperator was not in v1.0.1 (I kind of recall that it wasn't). You should switch to http://cdn.mathjax.org/mathjax/latest/MathJax.js to get a current version.

这篇关于等价于Mathjax中的\ DeclareMathOperator?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆