From b10d39aec443165093f8f28bc6f940530b89cdaf Mon Sep 17 00:00:00 2001 From: "Jeffrey H. Kingston" Date: Tue, 14 Sep 2010 20:36:35 +0000 Subject: Lout 3.21. git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@11 9365b830-b601-4143-9ba8-b4a8e2c3339c --- doc/user/prg_tabs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'doc/user/prg_tabs') 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, -- cgit