tablesΒΆ

Tables are entered literally:

=====  ===== ============
  x    y     x implies y
=====  ===== ============
True   True  True
True   False False
False  True  True
False  False True
=====  ===== ============

yield

x y x implies y
True True True
True False False
False True True
False False True

You can source from csv (either inline or from a file):

.. csv-table:: Frozen Delights!
   :header: "Treat", "Quantity", "Description"
   :widths: 15, 10, 30

   "Albatross", 2.99, "On a stick!"
   "Crunchy Frog", 1.49, "If we took the bones out, it wouldn't be
   crunchy, now would it?"
   "Gannet Ripple", 1.99, "On a stick!"

to produce

Frozen Delights!
Treat Quantity Description
Albatross 2.99 On a stick!
Crunchy Frog 1.49 If we took the bones out, it wouldn’t be crunchy, now would it?
Gannet Ripple 1.99 On a stick!

or source the csv from a file with the :file: filename/here.csv mode.

A simple list-entry table is generated with:

.. list-table:: Caption
   :header-rows: 1

   *  - Left
      - Right
   *  - 1
      - 2

which produces :

Caption
Left Right
1 2

Previous topic

links

Next topic

images

This Page