reStructuredText, or reST, is designed to be a simple yet unobtrusive markup language.
Title
=====
Section
-------
Subsection
~~~~~~~~~~
italic *text* for emphasis
boldface **text** for strong emphasis
backquote ``text`` for code samples
- available signs: + - *
- nested lists must be seperated
- by an empty line
- and here the parent list continues
#. auto numbering is feasible
#. using prefix sign '#'
term
Definition must be indented
and multiple paragraphs are possible
detergent
a chemical liquid or powder for cleaning
fieldname: | Field Content |
---|
:fieldname: Field Content
def my_function(my_arg, my_other_arg):
"""A function just for me.
:param my_arg: The first of my arguments.
:param my_other_arg: The second of my arguments.
:returns: A message (just for me, of course).
"""
prefix every line with | to preserve line breaks
| These lines are
| broken exactly like in
| the source file
For grid tables, grid cells must be painted manually.
Header row, column 1 (header rows optional) | Header 2 | Header 3 | Header 4 |
---|---|---|---|
body row 1, column 1 | column 2 | column 3 | column 4 |
body row 2 | ... | ... |
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
| (header rows optional) | | | |
+========================+============+==========+==========+
| body row 1, column 1 | column 2 | column 3 | column 4 |
+------------------------+------------+----------+----------+
| body row 2 | ... | ... | |
+------------------------+------------+----------+----------+
A | B | A and B |
---|---|---|
T | F | F |
F | T | F |
T | T | T |
F | F | F |
=== === =======
A B A and B
=== === =======
T F F
F T F
T T T
F F F
=== === =======
`Link Text <https://example.com>`_
`Another Link Text`_
.. _Another Link Text: https://example.com
.. code-block:: python
import sys
print(sys.executable)
.. image:: /path/to/image.png
:alt: Alternative Text is useful to those who probably lose image
According to Leonhard Euler, we have Euler's formula which states that for any real number x:
\begin{equation*} e^ix = cos x + i sin x \end{equation*}
.. math::
e^ix = cos x + i sin x
Mean Squared Error Loss, or MSE Loss:
Here inlined a famous formula: \(a^2 + b^2 = c^2\).
:math:`a^2 + b^2 = c^2`
For another instance, sigmoid function is defined as \(f(x) = \frac{1}{1+e^{-x}}\)
Since emacs v24.3 reST support is integrated.
C-c C-l
Present table of contents in a temporary buffer. C-c C-t
insert table-of-contents