X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fdocbook-cheat-sheet.sgml;h=affdf2d1e76372d3adb97b10f37ce915677f75fc;hb=8ad8c309e8d8e70811415574b43fae6bce396054;hp=5462c115987ed99888086cf4a93664a1ee21078a;hpb=e19d4f2ddc642d15a6e5e1b24afc1f1890e034a0;p=ghc-hetmet.git diff --git a/docs/docbook-cheat-sheet.sgml b/docs/docbook-cheat-sheet.sgml index 5462c11..affdf2d 100644 --- a/docs/docbook-cheat-sheet.sgml +++ b/docs/docbook-cheat-sheet.sgml @@ -141,4 +141,43 @@ Used for variables, but not type variables. +Tables + + +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. + + + + + + + + + + + +Here's +a sample +table + + + +With differently +aligned +cells + + + + +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 Paras) within an Entry that there is no space between the open and close Entry tags and the adjacent text, as otherwise you will suffer from Pernicious Mixed Content (the parser will think you're using inline markup). + + + + + + + + + +