MathJax无法在Github页面上正确渲染某些方程式 [英] MathJax not rendering some equations properly on Github pages

查看:186
本文介绍了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(\theta) = \frac{1}{2m}[\sum_{i=1}^m(h_\theta (x^{(i)}) - y^{(i)})^2 + \lambda\sum_{j=1}^n\theta^2_j] \\]

但是它不能渲染如下方程式:

But it can't render equations like below:

\\[ F'(\theta_*)=\lim\limits_{\theta\to\theta_*}\frac{F(\theta)-F(\theta_*)}{\theta-\theta_*} \\]

有人可以看看问题可能在哪里吗?

Can someone please see where the problem might be?

推荐答案

您应该尝试发布或链接到一些HTML输出,但这通常是由于markdown将下划线转换成<em>标记而导致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-pages上使用)对$$具有特殊支持,以分隔内联和块方程,这将防止此类交互. 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天全站免登陆