Comments (4)
有可能是MathJax插件的问题.. 请务必确认MathJax的使用姿势是否正确
from jekyll-theme-h2o.
谢谢,我不太懂这方面的东西,所以只是用用。我感觉是某个地方和mathjax产生冲突了
from jekyll-theme-h2o.
你试试把你的那段代码放至 _includes/post-head.html
中,代码位置大概如下:
<!DOCTYPE html>
<html>
<head>
<title>MathJax TeX Test Page</title>
<link rel="stylesheet" href="/assets/css/github-markdown.css">
<link rel="stylesheet" href="/assets/css/xxx.css">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>
我看了下mathjax.js的文档,有说Markdown可能会和mathjax有冲突,具体请查看 TeX和LaTeX支持 获取这个问题的解决方法。
目前看来,使用mathjax.js插件对于Markdown并不能很好的支持,我还找到了其他几种解决方案:
- 使用Google Chart的服务器
<img src="http://chart.googleapis.com/chart?cht=tx&chl= 在此插入Latex公式" style="border:none;">
- 使用forkosh服务器
<img src="http://www.forkosh.com/mathtex.cgi? 在此处插入Latex公式">
参考:http://blog.csdn.net/xiahouzuoxin/article/details/26478179
希望对你有帮助
from jekyll-theme-h2o.
非常感谢
from jekyll-theme-h2o.
Related Issues (20)
- PC端首页壁纸不能够很好显示的bug?
- 版权信息添加
- 怎么添加网页的置顶功能,有些文章太长了 HOT 1
- sidebar的recommend-tag的size设置失效
- 请问文件目录树是怎么生成的呀?thanks HOT 2
- 根目录下新建文件夹的md文件解析疑问
- 如何修改正文的宽度,感觉好屏幕都浪费了 HOT 1
- 请问在tags.html文件中如何配置使得tag界面能加载背景图片呢
- 如何新建一个菜单栏关于ABOUT的html的配置 HOT 2
- 请问下该如何实现站点中英双语的切换? HOT 2
- 新增 Category 功能 HOT 2
- https://liaokeyu.disqus.com/embed.js文件无法加载
- 如何显示网页标签的图标?
- 请问 我的 代码块不指定语言的话背景为白色,字体也是白色,不能看出来,不知道是不是bug HOT 1
- New Feature: Content outdated notice HOT 2
- 请问要怎么修改博文的时间格式?
- 设置字体颜色的问题
- 请问能否支持Gitalk? HOT 2
- GIT提示We found potential security vulnerabilities in your dependencies.
- 博客中Markdown无法渲染目录
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-theme-h2o.