home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucblib / doctools / tmac / man.macs < prev    next >
Encoding:
Text File  |  1990-12-20  |  3.4 KB  |  170 lines

  1. '\"#ident    "@(#)//usr/ucblib/doctools/tmac/man.macs.sl 1.1 4.0 12/08/90 63102 AT&T-USL"
  2. '\"        PROPRIETARY NOTICE (Combined)
  3. '\"
  4. '\"This source code is unpublished proprietary information
  5. '\"constituting, or derived under license from AT&T's UNIX(r) System V.
  6. '\"In addition, portions of such source code were derived from Berkeley
  7. '\"4.3 BSD under license from the Regents of the University of
  8. '\"California.
  9. '\"
  10. '\"
  11. '\"
  12. '\"        Copyright Notice 
  13. '\"
  14. '\"Notice of copyright on this source code product does not indicate 
  15. '\"publication.
  16. '\"
  17. '\"    (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  18. '\"    (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  19. '\"              All rights reserved.
  20. .ds ]W Sun Release 2.0 \s+4\(*a\s-4
  21. .if t .tr *\(**
  22. .ie n \{\
  23. .    ds lq \&"\"
  24. .    ds rq \&"\"
  25. .\}
  26. .el \{\
  27. .    ds rq ''
  28. .    ds lq ``
  29. .\}
  30. '    # reset the basic page layout
  31. .de }E
  32. .in \\n()Ru+\\n(INu
  33. .ll \\n(LLu
  34. ..
  35. '    # default tabs
  36. .de DT
  37. 'ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
  38. ..
  39. '    # handle the head of the page
  40. .de }H
  41. .ev 1
  42. .}C
  43. 'sp .5i
  44. .ft 1
  45. .ps 10
  46. .tl \\*(]H\\*(]D\\*(]H
  47. 'sp .5i
  48. .ev
  49. .ns
  50. ..
  51. '    # handle the foot of the page
  52. .de }F
  53. .ev 1
  54. .ft 1
  55. .ps 10
  56. 'sp .5i
  57. .if !\\nD .tl \\*(]W\\*(]L\\*(PN%
  58. .if  \\nD .if o .tl \\*(]W\\*(]L\\*(PN%
  59. .if  \\nD .if e .tl \\*(PN%\\*(]L\\*(]W
  60. .if !\\nX 'bp
  61. .if \\nX .if \\n%>=\\nX \{\
  62. .ds PN \\n%
  63. .pn 1
  64. .af % a
  65. .nr X 0
  66. 'bp 1\}
  67. .if \\nX .if \\n%<\\nX 'bp
  68. .ev
  69. ..
  70. '    # set title and heading
  71. .de TL
  72. .ds ]H \\$1\|(\|\\$2\|)
  73. .ds ]D UNKNOWN SECTION OF THE MANUAL
  74. .if '\\$2'1C' .ds ]D USER COMMANDS
  75. .if '\\$2'1G' .ds ]D USER COMMANDS
  76. .if '\\$2'1S' .ds ]D SUN-SPECIFIC USER COMMANDS
  77. .if '\\$2'1V' .ds ]D VAX-SPECIFIC USER COMMANDS
  78. .if '\\$2'1' .ds ]D USER COMMANDS
  79. .if '\\$2'6' .ds ]D GAMES AND DEMOS
  80. .if '\\$2'7' .ds ]D TABLES
  81. .if '\\$2'2' .ds ]D SYSTEM CALLS
  82. .if '\\$2'3' .ds ]D SUBROUTINES
  83. .if '\\$2'3C' .ds ]D COMPATIBILITY ROUTINES
  84. .if '\\$2'3F' .ds ]D FORTRAN LIBRARY ROUTINES
  85. .if '\\$2'3S' .ds ]D STANDARD I/O LIBRARY
  86. .if '\\$2'3M' .ds ]D MATHEMATICAL FUNCTIONS
  87. .if '\\$2'3N' .ds ]D NETWORK FUNCTIONS
  88. .if '\\$2'3X' .ds ]D MISCELLANEOUS FUNCTIONS
  89. .if '\\$2'5' .ds ]D FILE FORMATS
  90. .if '\\$2'4' .ds ]D SPECIAL FILES
  91. .if '\\$2'4F' .ds ]D SPECIAL FILES
  92. .if '\\$2'4I' .ds ]D SPECIAL FILES
  93. .if '\\$2'4P' .ds ]D SPECIAL FILES
  94. .if '\\$2'4N' .ds ]D SPECIAL FILES
  95. .if '\\$2'4S' .ds ]D SPECIAL FILES
  96. .if '\\$2'4V' .ds ]D SPECIAL FILES
  97. .if '\\$2'8' .ds ]D MAINTENANCE COMMANDS
  98. .if '\\$2'8C' .ds ]D MAINTENANCE COMMANDS
  99. .if '\\$2'8S' .ds ]D MAINTENANCE COMMANDS
  100. .if !\\n(nl .if \\nP .pn \\nP
  101. .if \\nX .if \\nP>=\\nX \{\
  102. .ds PN \\nP
  103. .pn 1
  104. .af % a
  105. .nr X 0 \}
  106. .if !\\n(nl .if \\nP .nr P 0
  107. .if  \\nC .if \\n(nl .bp
  108. .if  !\\nC .if \\n(nl .bp 1
  109. .ds ]L Last change: \\$3
  110. .}E
  111. .EH \\\\*(]H\\\\*(]D\\\\*(]H
  112. .OH \\\\*(]H\\\\*(]D\\\\*(]H
  113. .OF \\\\*(]W\\\\*(]L\\\\*(PN%
  114. .EF \\\\*(PN%\\\\*(]L\\\\*(]W
  115. .DT
  116. .nr )I .5i
  117. .nr )R 0
  118. ..
  119. '    # section heading
  120. .de SH
  121. .H 3 "\&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6"
  122. .LP
  123. ..
  124. '    # subroutine for section heading
  125. .de }X
  126. .}E
  127. .ti \\$1
  128. .sp \\n()Pu
  129. .ne 2
  130. .nr )R 0
  131. .fi
  132. .it 1 }N
  133. .SM
  134. .B
  135. ..
  136. '    # hanging indent
  137. .de HP
  138. .sp \\n()Pu
  139. .ne 2
  140. .if !"\\$1"" .nr )I \\$1n
  141. .ll \\n(LLu
  142. .in \\n()Ru+\\n(INu+\\n()Iu
  143. .ti \\n()Ru+\\n(INu
  144. ..
  145. '    # hanging label
  146. .de TP
  147. .RT
  148. .if !"\\$1"" .nr I\\n(IR \\$1n
  149. .sp \\n(PDu
  150. .if !\\n(IP .nr IP +1
  151. .ns
  152. .it 1 }1
  153. .di ]B
  154. ..
  155. '    # end of TP
  156. .de }1
  157. .br
  158. .di
  159. .ta \\n(GIu+\\n(I\\n(IRu
  160. .ds HT \&\\*(]B\\
  161. .in +\\n(I\\n(IRu
  162. .ti -(\\n(GIu+\\n(I\\n(IRu)
  163. \\*(HT\t\c
  164. .if \w\\*(HTu>(\\n(GIu+\\n(I\\n(IRu) .br
  165. ..
  166. .nr )p 0 1
  167. .ds ]I \\\\n(]
  168. .ds ]R \\\\n()
  169. .ds S \s10
  170.