eqn.me 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .\"
  2. .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved.
  3. .\" Use is subject to license terms.
  4. .\"
  5. .\" CDDL HEADER START
  6. .\"
  7. .\" The contents of this file are subject to the terms of the
  8. .\" Common Development and Distribution License, Version 1.0 only
  9. .\" (the "License"). You may not use this file except in compliance
  10. .\" with the License.
  11. .\"
  12. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  13. .\" or http://www.opensolaris.org/os/licensing.
  14. .\" See the License for the specific language governing permissions
  15. .\" and limitations under the License.
  16. .\"
  17. .\" When distributing Covered Code, include this CDDL HEADER in each
  18. .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  19. .\" If applicable, add the following below this CDDL HEADER, with the
  20. .\" fields enclosed by brackets "[]" replaced with your own identifying
  21. .\" information: Portions Copyright [yyyy] [name of copyright owner]
  22. .\"
  23. .\" CDDL HEADER END
  24. .\"
  25. .\"ident "@(#)eqn.me 1.5 05/06/08 SMI"
  26. .\"
  27. .\" University Copyright- Copyright (c) 1982, 1986, 1988
  28. .\" The Regents of the University of California
  29. .\" All Rights Reserved
  30. .\"
  31. .\" University Acknowledgment- Portions of this document are derived from
  32. .\" software developed by the University of California, Berkeley, and its
  33. .\" contributors.
  34. .\"
  35. .nr _0 \n(c.
  36. .\" @(#)eqn.me 2.1 8/18/80
  37. .de EQ
  38. .ec
  39. .if !\\n(?e \
  40. \{\
  41. . if "\\n(.z"|e" .tm Line \\n(c. -- Nested .EQ request
  42. . @D 1 "\\$1" "\\$2"
  43. . @C 2
  44. . di |e
  45. .\}
  46. .ls 1
  47. .in 0
  48. .nf
  49. ..
  50. .de EN
  51. .br
  52. .ie "\\$1"C" \
  53. \{\
  54. . nr ?e 1
  55. . sp \\n(esu
  56. .\}
  57. .el \
  58. \{\
  59. . nr ?e 0
  60. . di
  61. . if \\n(dn \
  62. . @q
  63. . rm |e
  64. . rm 10
  65. . rm 11
  66. . rm 12
  67. . rm 13
  68. . rm 14
  69. . rm 15
  70. . rm 16
  71. . rm 17
  72. . rm 18
  73. . rm 19
  74. . rm 20
  75. . rm 21
  76. . rm 22
  77. . rm 23
  78. . ev
  79. .\}
  80. ..
  81. .de @q
  82. .nr _Q \\n(dnu
  83. .ev
  84. .sp \\n(esu
  85. .@C 2
  86. .ie \\n(_d=1 \
  87. . in (\\n(.lu+\\n($iu-\\n(dlu)/2u
  88. .el .ie \\n(_d=2 \
  89. . in \\n($iu
  90. .el .ie \\n(_d=3 \
  91. . in \\n(biu+\\n($iu
  92. .el .if \\n(_d=4 \
  93. . in 0
  94. .if !"\\n(.z"" \!.ne \\n(_Qu
  95. .ne \\n(_Qu+\n(.Vu
  96. .mk _q
  97. .if !"\\*(|p"" \
  98. \{\
  99. . rs
  100. . sp (\\n(_Qu-\\n(.vu)/2u
  101. . tl """\\*(|p"
  102. . rt \\n(_qu
  103. .\}
  104. .|e
  105. .sp |\\n(_qu+\\n(_Qu
  106. .sp \\n(esu+\\n(.Lv-1v
  107. .rr _q
  108. .rr _Q
  109. ..
  110. .nr c. \n(_0