aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user/prg_tabs
diff options
context:
space:
mode:
authorJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:36:35 +0000
committerJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:36:35 +0000
commitb10d39aec443165093f8f28bc6f940530b89cdaf (patch)
tree63a1ef3b3f1d2562c498291cda341a2171a1fe1c /doc/user/prg_tabs
parent2f4268e5e02216be53cd85816362191373512463 (diff)
downloadlout-b10d39aec443165093f8f28bc6f940530b89cdaf.tar.gz
Lout 3.21.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@11 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'doc/user/prg_tabs')
-rw-r--r--doc/user/prg_tabs14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/user/prg_tabs b/doc/user/prg_tabs
index 3a04bfa..9fe101d 100644
--- a/doc/user/prg_tabs
+++ b/doc/user/prg_tabs
@@ -24,10 +24,10 @@ must be a Lout length. For example,
requests that tab stops be placed at half-inch intervals. In other
words, a distance of one tab stop in the program text will be equivalent to a
distance of half an inch on the printed page. For example,
-@ID @Code "@CP style { varying } tabout { 3f }"
+@ID @Code "@CP style { varying } tabout { 3f } numbered { Yes }"
might produce the following, where tab characters in the program text
have been used for indenting and also to align the comments:
-@ID @OneRow @CP style { varying } tabout { 3f } {
+@ID @OneRow @CP style { varying } tabout { 3f } numbered { Yes } {
struct tnode { /* the basic node */
char *word; /* points to the text */
int count; /* number of occurrences */
@@ -35,10 +35,12 @@ struct tnode { /* the basic node */
struct tnode *right; /* right child */
};
}
-The value {@Code "3f"} means three times the current font size, and
-it is the default value of @Code "tabout" for the @Code { varying }
-and @Code { symbol } styles (Section {@NumberOf cpsetup}). In a
-12 point font this is 36 points, or half an inch.
+We've used @Code "numbered { Yes }" to demonstrate that the features
+for dealing with tabs work even with line numbers. The value {@Code "3f"}
+means three times the current font size, and it is the default value of
+@Code "tabout" for the @Code { varying } and @Code { symbol } styles
+(Section {@NumberOf cpsetup}). In a 12 point font this is 36 points,
+or half an inch.
@PP
If @Code "tabout" is too small, there is a danger that the
alignment might fail. For example,