summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-07-06 23:05:58 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-07-06 23:05:58 -0700
commitcbac17cfd20ead56def539fdf0817b1297f36833 (patch)
tree5dced20c89da3e6532cd8e7cdf0695c82ff5b0a6
parent73b4cc089728abdfdaa37f5f2cd97eb3a1c12561 (diff)
Documented grid tables in README.
Resolves Issue #43.
-rw-r--r--README28
1 files changed, 25 insertions, 3 deletions
diff --git a/README b/README
index 1519c8113..fac6251aa 100644
--- a/README
+++ b/README
@@ -792,10 +792,10 @@ Inline and regular footnotes may be mixed freely.
Tables
------
-Two kinds of tables may be used. Both kinds presuppose the use of
+Three kinds of tables may be used. All three kinds presuppose the use of
a fixed-width font, such as Courier.
-Simple tables look like this:
+**Simple tables** look like this:
Right Left Center Default
------- ------ ---------- -------
@@ -840,7 +840,7 @@ When headers are omitted, column alignments are determined on the basis
of the first line of the table body. So, in the tables above, the columns
would be right, left, center, and right aligned, respectively.
-Multiline tables allow headers and table rows to span multiple lines
+**Multiline tables** allow headers and table rows to span multiple lines
of text. Here is an example:
-------------------------------------------------------------
@@ -887,6 +887,28 @@ It is possible for a multiline table to have just one row, but the row
should be followed by a blank line (and then the row of dashes that ends
the table), or the table may be interpreted as a simple table.
+**Grid tables** look like this:
+
+ : Sample grid table.
+
+ +---------------+---------------+--------------------+
+ | Fruit | Price | Advantages |
+ +===============+===============+====================+
+ | Bananas | $1.34 | - built-in wrapper |
+ | | | - bright color |
+ +---------------+---------------+--------------------+
+ | Oranges | $2.10 | - cures scurvy |
+ | | | - tasty |
+ +---------------+---------------+--------------------+
+
+The row of `=`s separates the header from the table body, and can be
+omitted for a headerless table. The cells of grid tables may contain
+arbitrary block elements (multiple paragraphs, code blocks, lists,
+etc.). Alignments are not supported, nor are multi-column or multi-row
+cells. Grid tables can be created easily using [Emacs table mode].
+
+ [Emacs table mode]: http://table.sourceforge.net/
+
Delimited Code blocks
---------------------