.. _table-header: 

テーブルのヘッダを書く
------------------------------------

csv-tableおよびlist-tableでは、オプションを指定することでヘッダを指定
したり、一つ一つのカラムの幅を指定したりできます。

オプション
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

csv-tableのオプション
++++++++++++++++++++++


widths
    ","で区切ることで各カラムの大きさを%で指定できる
header-rows
    テーブルのヘッダーとして使う行を指定する
header
    ヘッダーを本文と同じ長さのcsv形式で定義する。 ``header-rows`` とは
    別に書ける

list-tableのオプション
++++++++++++++++++++++

.. todo:: list-tableのオプションを書く


適用例
~~~~~~~~~~~~

CSVテーブルのオプション
++++++++++++++++++++++++++++++++++++++++++

.. 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 becrunchy, now would it?"
   "Gannet Ripple", 1.99, "On a stick!"

listテーブルのオプション
+++++++++++++++++++++++++++++++++++++++++++++

.. list-table:: 
  
     * - Treat
       - Quantity
       - Description
     * - Crunchy Frog
       - 1.49
       - If we took the bones out, it wouldn't be
         crunchy, now would it?