Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many formulas are not rendered #18

Open
scruel opened this issue Jan 7, 2018 · 2 comments
Open

Many formulas are not rendered #18

scruel opened this issue Jan 7, 2018 · 2 comments

Comments

@scruel
Copy link

scruel commented Jan 7, 2018

$$J(\theta_0, \theta_1) = \dfrac {1}{2m} \displaystyle \sum {i=1}^m \left ( \hat{y}{i}- y_{i} \right)^2 = \dfrac {1}{2m} \displaystyle \sum {i=1}^m \left (h\theta (x_{i}) - y_{i} \right)^2$$

This formula could not be rendered in the following link, and there are much more formulas could not be rendered like this, although it can be rendered in this issue post.
https://github.com/scruel/ML-AndrewNg-Notes/blob/master/notes/week1.md#22-%E6%8D%9F%E5%A4%B1%E5%87%BD%E6%95%B0cost-function

snipaste20180107_200058

$ h_\theta(x) \geqslant 0.5 $
shows error "Undefined control sequence \geqslant"

@scruel scruel changed the title This formula is not rendered Many formulas are not rendered Jan 9, 2018
@muzimuzhi
Copy link

muzimuzhi commented Mar 11, 2019

\geqslant is defined by MathJax extension AMSsymbol [1], and it can be loaded by [2]

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

However, github-mathjax does not load any MathJax TeX extensions. Hence \geqslant is undefined.

TeX: { equationNumbers: { autoNumber: "AMS" } }

[1] http://docs.mathjax.org/en/latest/tex.html#g
[2] MathJax doc - How to load extension AMSsymbol

@xwang233
Copy link

@muzimuzhi Thanks! This works for me.

@ghost ghost mentioned this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants