Annotation of src/share/me/footnote.me, Revision 1.1
1.1 ! deraadt 1: .nr _0 \n(c.
! 2: .\" Copyright (c) 1988 The Regents of the University of California.
! 3: .\" All rights reserved.
! 4: .\"
! 5: .\" Redistribution and use in source and binary forms, with or without
! 6: .\" modification, are permitted provided that the following conditions
! 7: .\" are met:
! 8: .\" 1. Redistributions of source code must retain the above copyright
! 9: .\" notice, this list of conditions and the following disclaimer.
! 10: .\" 2. Redistributions in binary form must reproduce the above copyright
! 11: .\" notice, this list of conditions and the following disclaimer in the
! 12: .\" documentation and/or other materials provided with the distribution.
! 13: .\" 3. All advertising materials mentioning features or use of this software
! 14: .\" must display the following acknowledgement:
! 15: .\" This product includes software developed by the University of
! 16: .\" California, Berkeley and its contributors.
! 17: .\" 4. Neither the name of the University nor the names of its contributors
! 18: .\" may be used to endorse or promote products derived from this software
! 19: .\" without specific prior written permission.
! 20: .\"
! 21: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
! 22: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 23: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 24: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 25: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 26: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 27: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 28: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 29: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 30: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 31: .\" SUCH DAMAGE.
! 32: .\"
! 33: .\" @(#)footnote.me 5.1 (Berkeley) 4/17/91
! 34: .\"
! 35: .\" %beginstrip%
! 36: .\"
! 37: .de (f \" *** begin footnote
! 38: .ec
! 39: .if "\\n(.z"|f" .tm Line \\n(c. -- Illegal footnote nesting
! 40: .ie "\\n(.z"" \
! 41: \{\
! 42: . nr _D \\n(dn
! 43: . nr _0 1v+\\n(nlu
! 44: . ev 2
! 45: . da |f
! 46: . in 0
! 47: . xl \\n($lu-\\n(fuu
! 48: . @F \\n(ff
! 49: . sz \\n(fp
! 50: . vs \\n(.su*\\n($Ru
! 51: . if !\\n(?f \
! 52: \{\
! 53: . nr _b +1v \" allow space for $s
! 54: . $s
! 55: . \}
! 56: . br
! 57: . if \\n(.p-\\n(_b-\\n(_0-\\n(.h-1v-\\n(fs<0 \
! 58: \{\
! 59: . da\" \" won't fit on page at all
! 60: . bc
! 61: . if !\\n(?f \
! 62: . rm |f
! 63: . da |f
! 64: .\" next five lines could be dropped if headers had their own environment
! 65: . in 0 \" reset everything from .bc
! 66: . xl \\n($lu-\\n(fuu
! 67: . @F \\n(ff
! 68: . sz \\n(fp
! 69: . vs \\n(.su*\\n($Ru
! 70: . if !\\n(?f \
! 71: . $s
! 72: . br
! 73: . \}
! 74: . rr _0
! 75: . sp \\n(fsu
! 76: . nr ?f 1
! 77: . fi
! 78: . if !"\\$1"_" \
! 79: . ti \\n(fiu
! 80: . if \n@>2 .tm << (f $f=\\n($f
! 81: .\}
! 82: .el \
! 83: \{\
! 84: . ev 2
! 85: \!.(f \\$1
! 86: .\}
! 87: ..
! 88: .de )f \" *** end footnote
! 89: .ie "\\n(.z"|f" \
! 90: \{\
! 91: . if \\n* \
! 92: . nr $f +1
! 93: . ds * \\*[\\n($f\\*]\k*
! 94: . rr *
! 95: . in 0
! 96: . da
! 97: . ev
! 98: . if \\n(_w<\\n(dl \
! 99: . nr _w \\n(dl \" compute maximum fn width
! 100: . nr _b +\\n(dn
! 101: . ch @f -\\n(_bu
! 102: . if \\n(.p-\\n(_b<=\\n(nl \
! 103: . ch @f \\n(nlu+\n(.Vu
! 104: . nr dn _D
! 105: . rr _D
! 106: .\}
! 107: .el \
! 108: \{\
! 109: . br
! 110: \!.)f
! 111: . ev
! 112: .\}
! 113: ..
! 114: .if \n(ff<=0 \
! 115: . nr ff 1 \" footnote font: Times Roman
! 116: .if \n(fp<=0 \
! 117: . nr fp 8 \" footnote pointsize
! 118: .nr c. \n(_0