|
kuing
Posted at 2022-4-29 21:33:04
按我的理解,\hat\mathbf e 这写法本来应该是错误的,LaTeX 里竟然没问题,我也想不明白……
\hat 命令需要一个必要参数,而这后面并没有 { },于是 \mathbf 就成了它的参数,因此 \hat\mathbf e 等价于 \hat{\mathbf}e ,而 \mathbf 也需要参数,但 e 落在外面了,所以 \mathbf 就缺少参数了,MathJax 报“Missing argument”正是这原因,可见 MathJax 的处理和我的理解应该是一样的。
正确的写法应该是 \hat{\mathbf e},效果:$\hat{\mathbf e}$
难道 LaTeX 能智能地将 \hat\mathbf e 补全为 \hat{\mathbf e} ?并不是,因为如果将 \mathbf 换成 \sqrt ,则 LaTeX 同样也报错:
而 \hat{\sqrt e} 是没问题的,这就证明了 \hat\sqrt e 并不会自动补全为 \hat{\sqrt e}。
又在 LaTeX 里尝试 \hat{\mathbf}e 也是报错喔,看来 \hat\mathbf e 并不等价于 \hat{\mathbf}e !
由此推得:我一开始就判断错了,在 LaTeX 里,\hat 命令可能并不带参数!那它展开成什么?
看来我得看看内部代码先…… |
|