Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 659 Bytes

math.rst

File metadata and controls

36 lines (20 loc) · 659 Bytes

Math

https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#math

Inline: a2 + b2 = c2

https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#math

Block:


(a + b)2 = a2 + 2ab + b2

(a − b)2 = a2 − 2ab + b2

Another block:

$$\begin{aligned} (a + b)^2 &= (a + b)(a + b) \\\ &= a^2 + 2ab + b^2 \end{aligned}$$

https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#the-math-domain

With label (since Sphinx 1.8):


eiπ + 1 = 0


Euler's identity, equation euler, was elected one of the most beautiful mathematical formulas.