|
在GitHub能够预览数学公式的格式有
- md格式
- Inline equation: \( E = mc^2 \)
- Block equation:
- $$
- E = mc^2
- $$
Copy the Code - rst格式,比md更复杂(tables, footnotes, citations)
- Inline equation: :math:`E = mc^2`
- Block equation:
- .. math::
- E = mc^2
Copy the Code - ipynb格式
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Motivating Examples\n",
- "\n",
- "## The Lorenz Equations\n",
- "### Source\n",
- "```\n",
- "\\begin{align}\n",
- "\\dot{x} & = \\sigma(y-x) \\\\\n",
- "\\dot{y} & = \\rho x - y - xz \\\\\n",
- "\\dot{z} & = -\\beta z + xy\n",
- "\\end{align}\n",
- "```\n",
- "### Display\n",
- "\n",
- "$\\begin{align}\n",
- "\\dot{x} & = \\sigma(y-x) \\\\\n",
- "\\dot{y} & = \\rho x - y - xz \\\\\n",
- "\\dot{z} & = -\\beta z + xy\n",
- "\\end{align}$"
- ]
- },
Copy the Code ipynb用于执行代码来展示数据处理/交互图表,如果只是写写文档,没必要用它 |
|