Annotation of researchv10no/cmd/troff/ancient.nroff/macros.d/an.src, revision 1.1.1.1

1.1       root        1: '''\"  PWB Manual Entry Macros - 1.36 of 11/11/80
                      2: '''\"  Nroff/Troff Version     @(#)1.36
                      3: .de th \" version 6 title macro
                      4: .tm wrong version of man entry macros - use -man6
                      5: .ab 
                      6: ..
                      7: '''\"  Tm: Trademark indicator
                      8: .if n .ds Tm \uTM\d
                      9: .if t .ds Tm \v'-0.5m'\s-4TM\s+4\v'0.5m'
                     10: .de }E\"reset basic page layout
                     11: .}f
                     12: .in \\n()Ru+\\n(INu
                     13: .ll \\n(LLu
                     14: .lt \\n(LLu
                     15: .pl \\n()Lu
                     16: ..
                     17: .de DT\"default tabs
                     18: .if t .ta 3.6m 7.2m 10.8m 14.4m 18m 21.6m 25.2m 28.8m 32.4m 36m 39.6m 43.2m 46.8m
                     19: .if n .ta 5n 10n 15n 20n 25n 30n 35n 40n 45n 50n 55n 60n 65n
                     20: ..
                     21: .de }f\"set font and size
                     22: .if t .vs \\n()Vp
                     23: .ps \\n()S
                     24: .ft 1
                     25: ..
                     26: .de }H\"header
                     27: .ev 1
                     28: .}C
                     29: .}E
                     30: .ie \\n()s 'sp 2v
                     31: .el 'sp 3v
                     32: .ps \\n()S-1
                     33: .bd 1 3
                     34: .ie @@\\*(]L@ .tl @\\*(]H@\\*(]D@\\*(]H@
                     35: .el .tl @\\*(]H@\\*(]D \|\\*(]L@\\*(]H@
                     36: .bd 1
                     37: .ps \\n()S
                     38: .ie \\n()s 'sp 1.5v
                     39: .el 'sp 3v
                     40: .ev
                     41: .ns
                     42: ..
                     43: .de }F\"footer
                     44: .ev 1
                     45: .}E
                     46: .if \\n()s 'sp |\\n(.pu-1v-1p
                     47: .if \\n()t 'sp |\\n(.pu-3v
                     48: .if n 'sp |\\n(.pu-4v
                     49: .if n .tl @Page %@@\\*(]W@
                     50: .if \\n()s .tl @@- % -@@
                     51: .if \\n()t \{.if o .tl @Page %@@\\*(]W@
                     52: .            if e .tl @\\*(]W@@Page %@ \}
                     53: 'bp
                     54: .ev
                     55: ..
                     56: .if n .ig
                     57: .de }C\"cut mark
                     58: .po 0i
                     59: .lt 7.5i
                     60: .if \\n()s .tl @\[email protected]@@@\[email protected]@\h@1i@\[email protected]@@
                     61: .if \\n()t .tl @\[email protected]@@@\[email protected]@@
                     62: .lt
                     63: .po
                     64: ..
                     65: .de }M\"final cut mark
                     66: .}N
                     67: .wh -.5p }C
                     68: .ll \\n(LLu
                     69: .bp
                     70: ..
                     71: .de }K\"no run-out unless there was a .TH
                     72: .}N
                     73: .pl 1
                     74: .ll \\n(LLu
                     75: ..
                     76: .de TH\"set title and heading
                     77: .PD
                     78: .nr IN \\n()Mu
                     79: .if t .ds ]H \\$1\^(\^\\$2\^)
                     80: .if n .ds ]H \\$1(\\$2)
                     81: '\"next 6 lines define center part of header
                     82: .if \\n()s .ds ]D
                     83: .if \\n()t .ds ]D UNIX Programmer's Manual
                     84: .if n .ds ]D UNIX Programmer's Manual
                     85: .ds ]L\"
                     86: .if !@\\$3@@ .ds ]L (\^\\$3\^)
                     87: .if !@\\$4@@ .ds ]D \\$4
                     88: .wh 0 }H
                     89: .wh -\\n(:mu }F
                     90: .em }M
                     91: .if \\n(nl .bp 1
                     92: .nr )I \\n()Mu
                     93: .nr )R 0
                     94: .}E
                     95: .DT
                     96: .if n \{.na
                     97: .       nh \}
                     98: .if t \{.bd S 3 3
                     99: .       hy 14 \}
                    100: ..
                    101: .de SH\"section heading
                    102: .}X 0 "\\$1" smaller
                    103: .nr )E 2
                    104: \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
                    105: ..
                    106: .de SS\"sub section heading
                    107: .}X 3n "" ""
                    108: .nr )E 2
                    109: \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
                    110: ..
                    111: .de }X\"subroutine for section heading
                    112: .}E
                    113: .ti \\$1
                    114: .sp \\n(PDu
                    115: .ne 1.1v
                    116: .nr )R 0
                    117: .fi
                    118: .ss 12
                    119: .if @\\$2@SYNOPSIS@ .ss 18
                    120: .it 1 }N
                    121: .if !@\\$3@@ .SM
                    122: .bd 1 3
                    123: ..
                    124: .de }2\"end of SH (cf .}X above and .}N below)
                    125: .nr )E 0
                    126: .}E
                    127: .nr )I \\n()Mu
                    128: .ns
                    129: .bd 1
                    130: ..
                    131: .de SM\"small
                    132: .ps \\n()S-1
                    133: .if !@\\$1@@ \&\\$1
                    134: .if !@\\$2@@ \&\\$2
                    135: .if !@\\$3@@ \&\\$3
                    136: .if !@\\$4@@ \&\\$4
                    137: .if !@\\$5@@ \&\\$5
                    138: .if !@\\$6@@ \&\\$6
                    139: .if !@\\$1@@ .ps \\n()S
                    140: .if @\\$1@@ .it 1 }N
                    141: ..
                    142: .de I\"italic
                    143: .ft 2
                    144: .it 1 }N
                    145: .if !@\\$1@@ \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
                    146: ..
                    147: .de B\"bold
                    148: .ft 3
                    149: .it 1 }N
                    150: .if !@\\$1@@ \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
                    151: ..
                    152: .de RI\"roman-italic
                    153: .}S 1 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    154: ..
                    155: .de IR\"italic-roman
                    156: .}S 2 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    157: ..
                    158: .de IB\"italic-bold
                    159: .if t .}S 2 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    160: .if n .}S 2 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    161: ..
                    162: .de RB\"roman-bold
                    163: .if t .}S 1 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    164: .if n .}S 1 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    165: ..
                    166: .de BR\"bold-roman
                    167: .if t .}S 3 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    168: .if n .}S 3 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    169: ..
                    170: .de BI\"bold-italic
                    171: .if t .}S 3 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    172: .if n .}S 3 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
                    173: ..
                    174: .de }S\"handle mixed fonts by making special case of shift-out of italic
                    175: .ds ]F
                    176: .if @\\$1@2@ .if !@\\$5@@ .ds ]F\^
                    177: .ie !@\\$4@@ .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
                    178: .el \\$3
                    179: .}f
                    180: ..
                    181: .de PP\"paragraph
                    182: .sp \\n(PDu
                    183: .ne 1.1v
                    184: .}E
                    185: .nr )I \\n()Mu
                    186: .ns
                    187: ..
                    188: .de P\"synonym for .PP
                    189: .PP
                    190: ..
                    191: .de LP\"obsolete synonym for PP (not advertised)
                    192: .PP
                    193: ..
                    194: .de PD\"paragraph distance
                    195: .if t .nr PD .4v
                    196: .if n .nr PD 1v
                    197: .if !@\\$1@@ .nr PD \\$1v
                    198: ..
                    199: .de HP\"paragraph with hanging indent
                    200: .sp \\n(PDu
                    201: .ne 1.1v
                    202: .if !@\\$1@@ .nr )I \\$1n
                    203: .ll \\n(LLu
                    204: .in \\n()Ru+\\n(INu+\\n()Iu
                    205: .ti \\n()Ru+\\n(INu
                    206: .}f
                    207: ..
                    208: .de IP\"indented paragraph
                    209: .TP \\$2
                    210: \&\\$1
                    211: ..
                    212: .de TP\"tagged paragraph (paragraph with hanging label)
                    213: .if !@\\$1@@ .nr )I \\$1n
                    214: .sp \\n(PDu
                    215: .ne 1.1v
                    216: .in \\n()Ru
                    217: .lg 0
                    218: .ns
                    219: .it 1 }N
                    220: .nr )E 1
                    221: .di ]B
                    222: ..
                    223: .de }1\"end of TP (cf .}N below)
                    224: .ds ]X \&\\*(]B\\
                    225: .rm ]B
                    226: .nr )E 0
                    227: .if !@\\$1@@ .nr )I \\$1n
                    228: .}f
                    229: .ll \\n(LLu
                    230: .in \\n()Ru+\\n(INu+\\n()Iu
                    231: .ti \\n(INu
                    232: .ie !\\n()Iu+\\n()Ru-\w@\\*(]X@u-3p \{\\*(]X
                    233: .br \}
                    234: .el \\*(]X\h@|\\n()Iu+\\n()Ru@\c
                    235: .}f
                    236: .lg
                    237: ..
                    238: .de }N\"end of 1-line features
                    239: .if \\n()E .br
                    240: .di
                    241: .if @\\n()E@0@ .}f
                    242: .if @\\n()E@1@ .}1
                    243: .if @\\n()E@2@ .}2
                    244: ..
                    245: .de RS\"increase relative indent
                    246: .nr ]\\n+()p \\n()I
                    247: .nr )\\n()p \\n()R
                    248: .ie !@\\$1@@ .nr )R +\\$1n
                    249: .el .nr )R +\\n()I
                    250: .nr )I \\n()Mu
                    251: .}E
                    252: ..
                    253: .de RE\"decrease relative indent
                    254: .if !@\\$1@@ \{.ie @\\$1@0@ .nr )p 1 1
                    255: .              el .nr )p \\$1 1 \}
                    256: .ds ]i \\*(]I\\n()p
                    257: .ds ]r \\*(]R\\n()p
                    258: .nr )I \\*(]i
                    259: .nr )R \\*(]r
                    260: .if \\n()p .nr )p -1
                    261: .}E
                    262: ..
                    263: '''\"  .de PM [N:P:BP:BR:]
                    264: '\"    Disclosure notice macro.
                    265: .de PM
                    266: .if @\\$1@@ .nr !K 0
                    267: .if \w@\\$1@ \{\
                    268: .   ie @\\$1@P@ .nr !K 1
                    269: .   el .ie @\\$1@BP@ .nr !K 3
                    270: .      el .ie @\\$1@BR@ .nr !K 4
                    271: .         el .nr !K 2 \}
                    272: .if \\n(!K .wh -(\\n(:mu+5v) )G        \" set trap at bottom of page to print
                    273: ..
                    274: '\"    )G - print disclosure notice
                    275: '\"    traps at -(:mu+5v) - set by PM macro
                    276: .de )G
                    277: .if \\n(!K 'sp 2v
                    278: .ie \\n(!K=1 \{\
                    279: .      bd 1 3
                    280: .      tl @@PRIVATE@@
                    281: .      bd 1
                    282: .      tl @@This information should not be disclosed to unauthorized persons.@@
                    283: .      tl @@It is meant solely for use by authorized Bell System employees.@@ \}
                    284: .el .ie \\n(!K=3 \{\
                    285: .      bd 1 3
                    286: .      tl @@BELL LABORATORIES PROPRIETARY@@
                    287: .      bd 1
                    288: .      tl @@Not for use or disclosure outside Bell Laboratories except by@@
                    289: .      tl @@written approval of the director of the distributing organization.@@ \}
                    290: .el .ie \\n(!K=4 \{\
                    291: .      bd 1 3
                    292: .      tl @@BELL LABORATORIES RESTRICTED@@
                    293: .      bd 1
                    294: .      tl @@The information herein is meant solely for use by authorized@@
                    295: .      tl @@Bell Laboratories employees and is not to be disclosed to others.@@ \}
                    296: .el .if \\n(!K=2 \{\
                    297: .      bd 1 3
                    298: .      tl @@NOTICE@@
                    299: .      bd 1
                    300: .      tl @@Not for use or disclosure outside the@@
                    301: .      tl @@Bell System except under written agreement.@@ \}
                    302: ..
                    303: '''>S>NOCOMPACT<<name>>
                    304: '\"DT, PD, and SM invoked internally!
                    305: '\"set page size
                    306: .nr )s 0
                    307: .if t .if \ns .nr )s 1\"register )s=1 iff troff & small format; 0 otherwise
                    308: .nr )t 0
                    309: .if t .if !\ns .nr )t 1\"register )t=1 iff troff & large format; 0 otherwise
                    310: .if \n()s \{.nr )L 9i
                    311: .           nr LL 4.75i
                    312: .           nr )O .75i
                    313: .           nr )S 9
                    314: .           nr )V 10 \}
                    315: .if \n()t \{.nr )L 11i
                    316: .           nr LL 6.5i
                    317: .           nr )O .463i
                    318: .           nr )S 10
                    319: .           nr )V 12 \}
                    320: .if t \{.ds R \(rg
                    321: .       ds S \s\n()S
                    322: '       br \}
                    323: .if n \{.nr )L 11i
                    324: .       nr LL 6.5i
                    325: .       nr )O .463i
                    326: .       ds R (Reg.)
                    327: .       ds S
                    328: '       br \}
                    329: .if \nT .nr LL 80n\" for TTY-43
                    330: .if \nV>1 \{\" for Versatec
                    331: .      nr LL 82n
                    332: .      nr )L 84v
                    333: .      rm ul \}
                    334: .nr )p 0 1
                    335: .ds ]I \\\\n(]
                    336: .ds ]R \\\\n()
                    337: '\"set month
                    338: .if @\nd@0@ .nr m \n(mo-1
                    339: .if @\nm@0@ .ds ]m January
                    340: .if @\nm@1@ .ds ]m February
                    341: .if @\nm@2@ .ds ]m March
                    342: .if @\nm@3@ .ds ]m April
                    343: .if @\nm@4@ .ds ]m May
                    344: .if @\nm@5@ .ds ]m June
                    345: .if @\nm@6@ .ds ]m July
                    346: .if @\nm@7@ .ds ]m August
                    347: .if @\nm@8@ .ds ]m September
                    348: .if @\nm@9@ .ds ]m October
                    349: .if @\nm@10@ .ds ]m November
                    350: .if @\nm@11@ .ds ]m December
                    351: '\"set date
                    352: .if n \{.nr m \nm+1
                    353: .       ie \nd .ds ]W (last mod. \nm/\nd/\ny)
                    354: .       el .ds ]W (printed \n(mo/\n(dy/\n(yr)
                    355: '       br \}
                    356: .if \n()s .ds ]W
                    357: .if \n()t \{.ie \nd .ds ]W \*(]m \nd, 19\ny
                    358: .            el .ds ]W \*(]m \n(dy, 19\n(yr
                    359: '            br \}
                    360: .pl \n()Lu
                    361: .ll \n(LLu
                    362: .lt \n(LLu
                    363: .po \n()Ou
                    364: .}f
                    365: .if \n()s .nr :m 3.5v
                    366: .if \n()t .nr :m 6v
                    367: .if n .nr :m 7v
                    368: .if t .nr )M 3.6m
                    369: .if n .nr )M 5n
                    370: .em }K\"redefined in .TH
                    371: '''>E>NOCOMPACT<<name>>

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.