Example

Contents are inserted with

.. contents:: Contents
   :depth: 2

Level 1

Level 1

.. _reference_to_level2:

is embedded below this line for the demo in inner reference.

Level 2

Level 2

glossary

To insert glossary, use

.. glossary::

   glossary
   Write glossary

      1. bullet1

      2. bullet2
glossary
Write glossary
  1. bullet1
  2. bullet2

note

To insert note, use

.. note::

write note

(a) item (a)

(b) item (b)

注釈

write note

  1. item (a)
  2. item (b)

math

To insert math, use

.. math::
   :nowrap:

   \begin{align*}
   E = mc^2
   \end{align*}
\begin{align*} E = mc^2 \end{align*}

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`.

figure

Figurer is insreted as follows.

.. figure:: /_images/example.png
   :align: center
   :width: 100%
   :alt: example.png
example.png