summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorrrt <unknown>2000-01-24 17:09:40 +0000
committerrrt <unknown>2000-01-24 17:09:40 +0000
commit55400852aca70c1c43d559f445e6a92b9eba097a (patch)
treefce5c8cf2584d3a12e8ca7fa55c01e478424825d /docs
parentf5b98196d524126a125efb9ab097801f05c4be48 (diff)
downloadhaskell-55400852aca70c1c43d559f445e6a92b9eba097a.tar.gz
[project @ 2000-01-24 17:09:40 by rrt]
Added table example.
Diffstat (limited to 'docs')
-rw-r--r--docs/docbook-cheat-sheet.sgml39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/docbook-cheat-sheet.sgml b/docs/docbook-cheat-sheet.sgml
index 5462c11598..affdf2d1e7 100644
--- a/docs/docbook-cheat-sheet.sgml
+++ b/docs/docbook-cheat-sheet.sgml
@@ -141,4 +141,43 @@ Used for variables, but not type variables.
</Sect1>
+<Sect1><Title>Tables</Title>
+
+<Para>
+Tables are quite complicated to write in SGML (as in HTML, there are lots of fiddly tags), so here's an example you can cannibalise. In the spirit of the LaTeX short introduction I don't repeat all the markup verbatim; you have to look at the source for that.
+</Para>
+
+<Para>
+<InformalTable>
+<TGroup cols="3">
+<ColSpec Colname="one" Align="Left" Colsep="0">
+<ColSpec Colname="two" Align="Center" Colsep="0">
+<ColSpec Colname="three" Align="Right" Colsep="0">
+<TBody>
+
+<Row>
+<Entry>Here's</Entry>
+<Entry>a sample</Entry>
+<Entry>table</Entry>
+</Row>
+
+<Row>
+<Entry>With differently</Entry>
+<Entry>aligned</Entry>
+<Entry>cells</Entry>
+</Row>
+
+<Row>
+<Entry namest="one" nameend="three" morerows="1"><Para>
+There's not much else to it. Entries can span both extra rows and extra columns; just be careful when using block markup (such as <SGMLTag class="starttag">Para</SGMLTag>s) within an <SGMLTag class="starttag">Entry</SGMLTag> that there is no space between the open and close <SGMLTag class="starttag">Entry</SGMLTag> tags and the adjacent text, as otherwise you will suffer from <ULink URL="http://www.docbook.org/tdg/html/entry.html">Pernicious Mixed Content</ULink> (the parser will think you're using inline markup).</Para></Entry>
+</Row>
+
+</TBody>
+
+</TGroup>
+</InformalTable>
+</Para>
+
+</Sect1>
+
</Article>