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

next升级后的公式渲染问题 #2058

Closed
amjiuzi opened this issue Dec 28, 2017 · 4 comments
Closed

next升级后的公式渲染问题 #2058

amjiuzi opened this issue Dec 28, 2017 · 4 comments
Labels

Comments

@amjiuzi
Copy link

amjiuzi commented Dec 28, 2017

next升级之前mathjax公式显示一直正常
升级之后未做任何改动,公式无法正常显示
于是

npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-pandoc --save
hexo g -d
  1. markdown 公式:
### 原理
1. A/B系数计算
$$Score.....= A - B * log(odds)$$
$$Score + pdo = A - B * log(odds/2)$$

$$
\begin{aligned}
B &= \frac{pdo}{log(2)} \\\
A &= Score + B * log(odds)
\end{aligned}
$$

- $odds$ - 坏好比 , 目标变量值 $1$ 的占比 除以 $0$ 的占比
- $pdo$ - $odds$ 变化时 $Score$得分的上下浮动差
<!--more-->
初始计算A/B值时, $odds$ 为整体数据的坏好比,即 
$$odds = \frac {P_{B_{T}}}{1-P_{B_{T}}}$$
  1. 网站主页看到的文章
    math1.png
  2. 点击标题进入文章内容时
    math2.png
@sli1989
Copy link

sli1989 commented Jan 4, 2018

there is a problem: TypeError: Cannot read property 'template' of undefined when hexo g where the mathjax.js is used in post. Uninstalling the hexo-renderer-pandoc it works.

@ivan-nginx
Copy link
Collaborator

Don't understand u, write in English if not solved. If solved, close it please. Thank's!

Also, if your issue refers to 6.x version, please, create issue in corresponding repository.

@sli1989
Copy link

sli1989 commented Jan 6, 2018

try to modify mathjax and Romove the if(config.template) args.push("--template=" + config.template); in index.js using hexo-renderer-pandoc (the issue), at the same time, close the mathjax support in the theme's _config.yml.

@ivan-nginx
Copy link
Collaborator

NexT is rebased into organization repo.
If you want new feature, please, create new in NexT v6.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.0.x

You also may read this for details.

Repository owner locked as off-topic and limited conversation to collaborators Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants