MathJax 没有在 Github 页面上正确渲染一些方程 [英] MathJax not rendering some equations properly on Github pages

查看:13
本文介绍了MathJax 没有在 Github 页面上正确渲染一些方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 Github 页面站点上配置了 Mathjax,它可以正确呈现一些方程,但不能正确呈现其他方程.

I've configured Mathjax on my Github pages site and it can render some equations properly but not others.

它可以正确渲染以下方程:

It can render properly the following equations:

\[ frac{1}{n^{2}} \]

\[ J(	heta) = frac{1}{2m}[sum_{i=1}^m(h_	heta (x^{(i)}) - y^{(i)})^2 + lambdasum_{j=1}^n	heta^2_j] \]

但它无法呈现如下等式:

But it can't render equations like below:

\[ F'(	heta_*)=limlimits_{	heta	o	heta_*}frac{F(	heta)-F(	heta_*)}{	heta-	heta_*} \]

谁能看看问题出在哪里?

Can someone please see where the problem might be?

推荐答案

您应该尝试发布或链接到一些 HTML 输出,但通常这是由于 markdown 将下划线转换为 标签反过来使 MathJax 跳过一个等式(参见 MathJax 文档).

You should try to post or link to some HTML output but usually this is due to markdown converting the underscores into <em> tags which in turn makes MathJax skip an equation (cf. the MathJax docs).

Kramdown(在 GitHub 页面上使用)特别支持 $$ 来分隔内联和块方程,这将阻止这种交互,参见.kramdown 文档)

Kramdown (used on GitHub-pages) has special support for $$ to delimit both inline and block equations, which will prevent this kind of interaction, cf. the kramdown docs)

这篇关于MathJax 没有在 Github 页面上正确渲染一些方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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