home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man6 / tbl.6 < prev    next >
Encoding:
Text File  |  1975-06-26  |  4.8 KB  |  204 lines

  1. .th TBL VI 2/2/75
  2. .sh NAME
  3. tbl \*- format tables for nroff or troff
  4. .sh SYNOPSIS
  5. .bd tbl
  6. [ files ] ...
  7. .sh DESCRIPTION
  8. .it Tbl
  9. is an nroff (I)
  10. or troff(I)
  11. preprocessor for formatting tables.
  12. The input files are copied to the standard output,
  13. except for lines between .TS and .TE
  14. command lines, which are assumed to describe tables
  15. and reformatted.
  16. The first line after .TS specifies
  17. the various columns: it consists of a list of column
  18. describers separated by blanks or tabs. Each column
  19. describer is a character string
  20. made up of the letters `n', `r', `c', `l' and `s',
  21. which mean:
  22. .lp +4 4
  23. .sp 
  24. c    center within the column
  25. .lp +4 4
  26. .if n .sp 1
  27. .if t .sp .3
  28. r    right-adjust
  29. .lp +4 4
  30. .if n .sp 1
  31. .if t .sp .3
  32. l    left-adjust
  33. .lp +4 4
  34. .if n .sp 1
  35. .if t .sp .3
  36. n    numerical adjustment: the units digits of numbers are aligned.
  37. .lp +4 4
  38. .if n .sp 1
  39. .if t .sp .3
  40. s    span the previous entry over this column.
  41. .if n .sp 1
  42. .if t .sp .3
  43. .i0
  44. .s3
  45. The column describer
  46. may be followed
  47. by an integer
  48. giving the number of spaces between this column and the next; 3 is default.
  49. The describer
  50. `ccr5' indicates that the first two lines in this column are
  51. centered; the third and remaining lines are right-adjusted; and
  52. the column should be separated
  53. from the column to the right by 5 spaces.
  54. Letting \\t represent a tab (which must be typed as a genuine tab)
  55. the input
  56. .s3
  57. .nf
  58.     .TS
  59.     cccl sccn sscn
  60.     Household Population
  61.     Town\\tHouseholds
  62.     \\tNumber\\tSize
  63.     Bedminster\\t789\\t3.26
  64.     Bernards Twp.\\t3087\\t3.74
  65.     Bernardsville\\t2018\\t3.30
  66.     Bound Brook\\t3425\\t3.04
  67.     Branchburg\\t1644\\t3.49
  68.     Bridgewater\\t7897\\t3.81
  69.     Far Hills\\t240\\t3.19
  70.     .TE
  71. .fi
  72. yields
  73. .nf
  74. .TS
  75. .nr 49 0
  76. .nr 50 0
  77. .nr 47 \n(49+\w'Town'+1n
  78. .if \n(47-\n(50 .nr 50 \n(47
  79. .nr 47 \n(49+\w''+1n
  80. .if \n(47-\n(50 .nr 50 \n(47
  81. .nr 47 \n(49+\w'Bedminster'+1n
  82. .if \n(47-\n(50 .nr 50 \n(47
  83. .nr 47 \n(49+\w'Bernards Twp.'+1n
  84. .if \n(47-\n(50 .nr 50 \n(47
  85. .nr 47 \n(49+\w'Bernardsville'+1n
  86. .if \n(47-\n(50 .nr 50 \n(47
  87. .nr 47 \n(49+\w'Bound Brook'+1n
  88. .if \n(47-\n(50 .nr 50 \n(47
  89. .nr 47 \n(49+\w'Branchburg'+1n
  90. .if \n(47-\n(50 .nr 50 \n(47
  91. .nr 47 \n(49+\w'Bridgewater'+1n
  92. .if \n(47-\n(50 .nr 50 \n(47
  93. .nr 47 \n(49+\w'Far Hills'+1n
  94. .if \n(47-\n(50 .nr 50 \n(47
  95. .nr 30 \n(49+\w'Household Population'+1n
  96. .nr 51 0
  97. .nr 47 \n(50+\w'789'+4n
  98. .if \n(47-\n(51 .nr 51 \n(47
  99. .nr 47 \n(50+\w'3087'+4n
  100. .if \n(47-\n(51 .nr 51 \n(47
  101. .nr 47 \n(50+\w'2018'+4n
  102. .if \n(47-\n(51 .nr 51 \n(47
  103. .nr 47 \n(50+\w'3425'+4n
  104. .if \n(47-\n(51 .nr 51 \n(47
  105. .nr 47 \n(50+\w'1644'+4n
  106. .if \n(47-\n(51 .nr 51 \n(47
  107. .nr 47 \n(50+\w'7897'+4n
  108. .if \n(47-\n(51 .nr 51 \n(47
  109. .nr 47 \n(50+\w'240'+4n
  110. .if \n(47-\n(51 .nr 51 \n(47
  111. .nr 31 \n(50+\w'Households'+4n
  112. .nr 52 0
  113. .nr 48 \n(50+\w'Households'+0n
  114. .if \n(48-\n(52 .nr 52 \n(48
  115. .nr 48 \n(50+\w'Number'+0n
  116. .if \n(48-\n(52 .nr 52 \n(48
  117. .nr 47 \n(51+\w''+1n
  118. .if \n(47-\n(52 .nr 52 \n(47
  119. .nr 47 \n(51+\w''+1n
  120. .if \n(47-\n(52 .nr 52 \n(47
  121. .nr 47 \n(51+\w''+1n
  122. .if \n(47-\n(52 .nr 52 \n(47
  123. .nr 47 \n(51+\w''+1n
  124. .if \n(47-\n(52 .nr 52 \n(47
  125. .nr 47 \n(51+\w''+1n
  126. .if \n(47-\n(52 .nr 52 \n(47
  127. .nr 47 \n(51+\w''+1n
  128. .if \n(47-\n(52 .nr 52 \n(47
  129. .nr 47 \n(51+\w''+1n
  130. .if \n(47-\n(52 .nr 52 \n(47
  131. .nr 47 \n(51+\w''+1n
  132. .if \n(47-\n(52 .nr 52 \n(47
  133. .nr 53 0
  134. .nr 47 \n(52+\w'3'+4n
  135. .if \n(47-\n(53 .nr 53 \n(47
  136. .nr 47 \n(52+\w'3'+4n
  137. .if \n(47-\n(53 .nr 53 \n(47
  138. .nr 47 \n(52+\w'3'+4n
  139. .if \n(47-\n(53 .nr 53 \n(47
  140. .nr 47 \n(52+\w'3'+4n
  141. .if \n(47-\n(53 .nr 53 \n(47
  142. .nr 47 \n(52+\w'3'+4n
  143. .if \n(47-\n(53 .nr 53 \n(47
  144. .nr 47 \n(52+\w'3'+4n
  145. .if \n(47-\n(53 .nr 53 \n(47
  146. .nr 47 \n(52+\w'3'+4n
  147. .if \n(47-\n(53 .nr 53 \n(47
  148. .nr 54 0
  149. .nr 48 \n(52+\w'Size'+0n
  150. .if \n(48-\n(54 .nr 54 \n(48
  151. .nr 47 \n(53+\w''+1n
  152. .if \n(47-\n(54 .nr 54 \n(47
  153. .nr 47 \n(53+\w'.26'+1n
  154. .if \n(47-\n(54 .nr 54 \n(47
  155. .nr 47 \n(53+\w'.74'+1n
  156. .if \n(47-\n(54 .nr 54 \n(47
  157. .nr 47 \n(53+\w'.30'+1n
  158. .if \n(47-\n(54 .nr 54 \n(47
  159. .nr 47 \n(53+\w'.04'+1n
  160. .if \n(47-\n(54 .nr 54 \n(47
  161. .nr 47 \n(53+\w'.49'+1n
  162. .if \n(47-\n(54 .nr 54 \n(47
  163. .nr 47 \n(53+\w'.81'+1n
  164. .if \n(47-\n(54 .nr 54 \n(47
  165. .nr 47 \n(53+\w'.19'+1n
  166. .if \n(47-\n(54 .nr 54 \n(47
  167. .if \n(30-\n(54 .nr 54 \n(30
  168. .if \n(31-\n(54 .nr 54 \n(31
  169. .fc  @
  170. .ta \n(54u 
  171. @Household Population@   
  172. .ta \n(50u \n(54u 
  173. @Town@   @Households@   
  174. .ta \n(50u \n(52u \n(54u 
  175. @@   @Number@   @Size@   
  176. .ta \n(50u \n(51u \n(52u \n(53u \n(54u 
  177. Bedminster@   @789@   @3.26@   
  178. Bernards Twp.@   @3087@   @3.74@   
  179. Bernardsville@   @2018@   @3.30@   
  180. Bound Brook@   @3425@   @3.04@   
  181. Branchburg@   @1644@   @3.49@   
  182. Bridgewater@   @7897@   @3.81@   
  183. Far Hills@   @240@   @3.19@   
  184. .fc
  185. .TE
  186. .fi
  187. .s3
  188. .s3
  189. If no arguments are given,
  190. .it tbl
  191. reads the standard input,
  192. so it may be used as a filter.
  193. When it is used with
  194. .it eqn
  195. or
  196. .it neqn
  197. the
  198. .it tbl
  199. command should be first, to minimize the volume
  200. of data passed through
  201. pipes.
  202. .sh BUGS
  203. No column describer may end with `s'.
  204.