Example¶
Contents are inserted with
.. contents:: Contents
:depth: 2
Contents
Level 1¶
Level 1
.. _reference_to_level2:
is embedded below this line for the demo in inner reference.
glossary¶
To insert glossary, use
.. glossary::
glossary
Write glossary
1. bullet1
2. bullet2
- glossary
- Write glossary
- bullet1
- bullet2
note¶
To insert note, use
.. note::
write note
(a) item (a)
(b) item (b)
注釈
write note
- item (a)
- item (b)
math¶
To insert math, use
.. math::
:nowrap:
\begin{align*}
E = mc^2
\end{align*}
\begin{align*}
E = mc^2
\end{align*}
link¶
Link to github is inserted with `Link to github <https://github.com/>`_
code block¶
Following code-block
(this is inserted with ``code-block``
)
.. code-block:: python
import sys
for i in range(1, 10):
print("Hello World")
gives
import sys
for i in range(1, 10):
print("Hello World")
inner reference¶
Add link to Level 2 (which is labeled .. _reference_to_level2
above) with :ref:`reference_to_level2`
.