Skip to content
Browse files

Add example of CSV Table and List table.

  • Loading branch information...
1 parent e929ad9 commit bcf012e4470aa8ec1ed21a12f1cf85c1564baa2e Bartosz Grzys committed Jun 6, 2013
Showing with 50 additions and 0 deletions.
  1. +50 −0 ch-figs/index.rst
View
50 ch-figs/index.rst
@@ -209,3 +209,53 @@ raggedright.
============================== ==============================================================================================================================
A text wrapping table example is shown in Figure |nbsp| :num:`fig-open3dhub-cfs`.
+
+CSV and List Tables
+=======================
+
+You can use CSV Table and List table from
+`docutils directives <http://docutils.sourceforge.net/docs/ref/rst/directives.html#tables>`_.
+
+.. figtable::
+ :label: table-csv
+ :caption: CSV table
+ :alt: CSV table
+ :spec: >{\raggedright\arraybackslash}p{0.15\linewidth} p{0.20\linewidth} p{0.30\linewidth}
+
+
+ .. csv-table::
+ :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!"
+
+
+.. figtable::
+ :label: table-list
+ :caption: List table
+ :alt: List table
+ :spec: >{\raggedright\arraybackslash}p{0.15\linewidth} p{0.20\linewidth} p{0.30\linewidth}
+
+ .. list-table::
+ :widths: 15 10 30
+ :header-rows: 1
+
+ * - 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!vvv
+
+
+A CSV table example is shown in Figure |nbsp| :num:`table-csv` and List table in Figure |nbsp| :num:`table-list`.

0 comments on commit bcf012e

Please sign in to comment.
Something went wrong with that request. Please try again.