To Top
首页 > 其它 > 正文

markdown中如何书写公式

标签:markdown公式


目录

1. 在线编写公式

在线网站 可以在该网站编写公式

公式编写规则: https://www.jianshu.com/p/7c34f5099b7e



2. 借助其他插件显示

2.1 借助Google Chart服务器

<img src="http://chart.googleapis.com/chart?cht=tx&chl= 在此插入Latex公式" style="border:none;">
ex:
<img src="http://chart.googleapis.com/chart?cht=tx&chl=\Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}" style="border:none;">

2.2 借助forkosh服务器

<img src="http://www.forkosh.com/mathtex.cgi? 在此处插入Latex公式">
ex:
<img src="http://www.forkosh.com/mathtex.cgi? \Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}">

2.3 借助MathJax引擎

在markdown头部添加外部js引用

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

在markdown中直接输入公式

  • 行间公式
$$公式$$
  • 行内公式
\\(公式\\)

原创文章,转载请注明出处!
本文链接:https://leo4678.github.io/posts/other-markdown-math-formula.html
上篇: C++ 字符串处理技巧
下篇: 数学基础