home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 26.ddi / root.3 / usr / ucblib / doctools / tmac / footnote.me < prev    next >
Encoding:
Text File  |  1990-12-20  |  1.7 KB  |  103 lines

  1. '\"#ident    "@(#)//usr/ucblib/doctools/tmac/footnote.me.sl 1.1 4.0 12/08/90 53516 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. .nr _0 \n(c.
  21. .\"    @(#)footnote.me    2.4    9/23/80
  22. .\" This version has had comments stripped; an unstripped version is available.
  23. .de (f
  24. .ec
  25. .if "\\n(.z"|f" .tm Line \\n(c. -- Illegal footnote nesting
  26. .ie "\\n(.z"" \
  27. \{\
  28. .    nr _D \\n(dn
  29. .    nr _0 1v+\\n(nlu
  30. .    ev 2
  31. .    da |f
  32. .    in 0
  33. .    xl \\n($lu-\\n(fuu
  34. .    @F \\n(ff
  35. .    sz \\n(fpu
  36. .    vs \\n(.su*\\n($Ru
  37. .    if !\\n(?f \
  38. \{\
  39. .        nr _b +2u*\n(.Vu
  40. .        $s
  41. .    \}
  42. .    br
  43. .    if \\n(.p-\\n(_b-\\n(_0-\\n(.h-1v-\\n(fs<0 \
  44. \{\
  45. .        da\"
  46. .        bc
  47. .        if !\\n(?f \
  48. .            rm |f
  49. .        da |f
  50. .        in 0
  51. .        xl \\n($lu-\\n(fuu
  52. .        @F \\n(ff
  53. .        sz \\n(fpu
  54. .        vs \\n(.su*\\n($Ru
  55. .        if !\\n(?f \
  56. .            $s
  57. .        br
  58. .    \}
  59. .    rr _0
  60. .    sp \\n(fsu
  61. .    nr ?f 1
  62. .    fi
  63. .    if !"\\$1"_" \
  64. .        ti \\n(fiu
  65. .\}
  66. .el \
  67. \{\
  68. .    ev 2
  69. \!.(f \\$1
  70. .\}
  71. ..
  72. .de )f
  73. .ie "\\n(.z"|f" \
  74. \{\
  75. .    if \\n* \
  76. .        nr $f +1
  77. .    ds * \\*[\\n($f\\*]\k*
  78. .    rr *
  79. .    in 0
  80. .    da
  81. .    ev
  82. .    if \\n(_w<\\n(dl \
  83. .        nr _w \\n(dl
  84. .    nr _b +\\n(dn
  85. .    ch @f -\\n(_bu
  86. .    if \\n(.p-\\n(_b<=\\n(nl \
  87. .        ch @f \\n(nlu+\n(.Vu
  88. .    nr dn _D
  89. .    rr _D
  90. .\}
  91. .el \
  92. \{\
  93. .    br
  94. \!.)f
  95. .    ev
  96. .\}
  97. ..
  98. .if \n(ff<=0 \
  99. .    nr ff 1
  100. .if \n(fp<=0 \
  101. .    nr fp 8
  102. .nr c. \n(_0
  103.