diff options
Diffstat (limited to 'example.t')
-rw-r--r-- | example.t | 41 |
1 files changed, 25 insertions, 16 deletions
@@ -56,14 +56,13 @@ .ec . .\" configure environments -.@e p -. nr sq \n(sp -. nr sp 0 .@e l . fam M . vs +1p .@e n . @c p +. nr sq \n(sp +. nr sp 0 . ta 3n +3n +3n +3n .@e . @@ -75,8 +74,15 @@ a simple macro package for troff John Ankarstr\(:om .d e . -.p +.s +.ft I +.tl ''TABLE OF CONTENTS'' +.ft +.sp 4p +.@e .to +.sp 0.5i +.ns . .he Introduction .p @@ -415,7 +421,7 @@ Documented in this section are the exceptions to this rule. For examples of how these macros are used in practice, see the FAQ section on page \n[&faq]. . -.se Margin macros +.se Page header and footer .p The .c @h , @@ -454,7 +460,7 @@ and .c @f to change the content of the header and footer. . -.se Environment macros +.se Environments .p The environment-related macros .c (e , @@ -561,6 +567,7 @@ or \&.(e @f \\" footnote environment \&.ps +1p . +.w s ll .se How do I redefine the page header? .l \&.de @h @@ -572,6 +579,7 @@ or \&. sp |1i \&.. . +.w s ll .se How do I redefine the page footer? .l \&.\\" set position of footer trap @@ -661,6 +669,7 @@ and defines a corresponding macro: \&. \&.de n \&. br \\" finish current environment +.ne 1 \&. @e n \\" activate new environment \&.. . @@ -679,13 +688,13 @@ and .c to macros .n -.i troc , +.i toc , a script that invokes troff in three passes in order to allow a table of contents to be generated .n -.i groc , +.i gtoc , an alias of -.i troc +.i toc that invokes groff instead of troff .p Use @@ -730,16 +739,16 @@ you may simply invoke .c to . .p Just remember to run -.c troc /\c -.c groc +.c toc /\c +.c gtoc instead of .c troff /\c .c groff : .l -groc -Tps example.t > example.ps +gtoc -Tps example.t > example.ps .p Thanks to the multiple passes performed by -.i troc , +.i toc , .c to can be invoked at any place in the document, including the beginning. @@ -751,15 +760,15 @@ by setting the .i TROFF environment variable. This may be useful if you need to combine -.i troc -with certain troff post-processors. +.i toc +with certain troff post-pocessors. . .se How do I create a reference to a later page? .p Use the macros provided by .i toc.tmac in combination with the -.i troc +.i toc program. Near the beginning of your document, invoke .c to . |