diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 19:21:41 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 19:21:41 +0000 |
commit | 71bdb35d52747e6d7d9f55df4524d57c2966be94 (patch) | |
tree | 480ee5eefccc40d5f3331cc52d66f722fd19bfb9 /doc/user/tbl_inde | |
parent | b41263ea7578fa9742486135c762803b52794105 (diff) | |
download | lout-71bdb35d52747e6d7d9f55df4524d57c2966be94.tar.gz |
Lout 3.17.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@2 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/user/tbl_inde')
-rw-r--r-- | doc/user/tbl_inde | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/user/tbl_inde b/doc/user/tbl_inde new file mode 100644 index 0000000..75a3471 --- /dev/null +++ b/doc/user/tbl_inde @@ -0,0 +1,58 @@ +@Section + @Title { Indenting and struts } + @Tag { tbl_inde } +@Begin +@PP +By default, entries appear at the left within cells, not counting the +cell margin. The @Code indent option causes entries to be indented +horizontally. For example, +@ID @OneRow @Code "@Cell indent { ctr }" +horizontally centres the entry within the cell. The other possible values +centred.entries @Index { centred entries in tables } +right.justified.entries @Index { right justified entries in tables } +of this option are {@Code "left"}, {@Code "right"}, or any length (for +example, {@Code 2f}) meaning that much indent. +@PP +There is a corresponding @Code "indentvertical" option for vertical indenting +within the cell. It takes the same values except that @Code "left" is +renamed {@Code "top"}, and @Code "right" is renamed {@Code foot}. +A common problem with vertical placement is that words that lack +ascenders (parts of letters that rise up) or descenders (parts that +sink down) can easily become misaligned with words that +don't. Looking at +@CD @Tbl + aformat { @Cell A | @Cell B | @Cell C } + marginvertical { 0i } +{ +@Rowa + A { resume } + B { poppy } + C { title } +} +which is the result of +@ID @OneRow @Code @Verbatim { +@Tbl + aformat { @Cell A | @Cell B | @Cell C } +{ +@Rowa + A { resume } + B { poppy } + C { title } +} +} +we see that the words are aligned correctly despite the absence of +ascenders from the first two words, and of descenders from the first +and last; and this despite the fact that these words are vertically +placed at the top of the cell. This is because by default +@Code "@Tbl" adds a @I { vertical strut } to each entry: an invisible +object of zero width and height {@Code "1f"}, which covers for any absent +ascenders and descenders. The option +@ID @OneRow @Code "@Cell strut { no }" +can be used to remove the strut; other acceptable values for this +option are {@Code yes} (the default value), and any length, which will +add a strut of that length. +@PP +For completeness there is a corresponding @Code "struthorizontal" option; it +takes the same values, its default value is {@Code no}, and it unlikely +ever to be used. +@End @Section |