home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / eqn.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  3.1 KB  |  170 lines

  1. .EQ
  2. delim $$
  3. .EN
  4. .th EQN I 2/22/74
  5. .sh NAME
  6. eqn  \*-  typeset mathematics
  7. .sh SYNOPSIS
  8. .bd eqn
  9. [ file ] ...
  10. .sh DESCRIPTION
  11. .it Eqn
  12. is a
  13. troff (I)
  14. preprocessor
  15. for typesetting mathematics
  16. on the Graphics Systems phototypesetter.
  17. Usage is almost always
  18. .s3
  19.     eqn file ... | troff
  20. .s3
  21. If no files are specified, 
  22. .it eqn
  23. reads from the standard input.
  24. A line beginning with ``.EQ'' marks the start of an equation;
  25. the end of an equation
  26. is marked by a line beginning with ``.EN''.
  27. Neither of these lines is altered or defined by
  28. .it eqn,
  29. so you can define them yourself to get
  30. centering, numbering, etc.
  31. All other lines are treated as comments, and passed through
  32. untouched.
  33. .s3
  34. Spaces, tabs, newlines, braces, double quotes,
  35. tilde and circumflex are the only delimiters.
  36. Braces ``{}'' are used for grouping.
  37. Use tildes ``~'' to get extra spaces in an equation.
  38. .s3
  39. .vs 13p
  40. Subscripts and superscripts are produced with the keywords
  41. .bd sub
  42. and
  43. .bd sup.
  44. Thus
  45. .it "x sub i" 
  46. makes
  47. $x sub i$, 
  48. .it "a sub i sup 2"
  49. produces
  50. $a sub i sup 2$,
  51. and
  52. .it "e sup {x sup 2 + y sup 2}"
  53. gives
  54. $e sup {x sup 2 + y sup 2}$.
  55. Fractions are made with
  56. .bd over.
  57. .it "a over b"
  58. is $a over b$ and
  59. .it "1 over sqrt {ax sup 2 +bx+c}"
  60. is
  61. $1 over sqrt {ax sup 2 +bx+c}$ .
  62. .bd sqrt
  63. makes square roots.
  64. .s3
  65. The keywords
  66. .bd from
  67. and
  68. .bd to
  69. introduce lower and upper
  70. limits on arbitrary things:
  71. $lim from {n-> inf} sum from 0 to n x sub i$
  72. is made with
  73. .it "lim from {n-> inf} sum from 0 to n x sub i."
  74. Left and right brackets, braces, etc., of the right height are made with
  75. .bd left
  76. and
  77. .bd right:
  78. .it "left [ x sup 2 + y sup 2 over alpha right ] ~=~1"
  79. produces
  80. $left [ x sup 2 + y sup 2 over alpha right ] ~=~1$.
  81. The
  82. .bd right
  83. clause is optional.
  84. .s3
  85. Vertical piles of things are made with 
  86. .bd "pile, lpile, cpile,"
  87. and
  88. .bd rpile:
  89. .it "pile {a above b above c}"
  90. produces
  91. $pile {a above b above c}$.
  92. There can be an arbitrary number of elements in a pile.
  93. .bd lpile
  94. left-justifies,
  95. .bd pile
  96. and
  97. .bd cpile
  98. center, with different vertical spacing,
  99. and 
  100. .bd rpile
  101. right justifies.
  102. .s3
  103. .vs 12p
  104. Diacritical marks are made with
  105. .bd dot,
  106. .bd dotdot,
  107. .bd hat,
  108. .bd bar:
  109. .it "x dot = f(t) bar"
  110. is
  111. $x dot = f(t) bar$.
  112. Default sizes and fonts can be changed with
  113. .bd "size n"
  114. and various of
  115. .bd roman,
  116. .bd italic,
  117. and
  118. .bd bold.
  119. .s3
  120. Keywords like 
  121. .it sum
  122. .EQ
  123. ( sum )
  124. .EN
  125. .it int
  126. .EQ
  127. ( int )
  128. .EN
  129. .it inf
  130. .EQ
  131. ( inf )
  132. .EN
  133. and shorthands like
  134. >=
  135. .EQ
  136. (>=)
  137. .EN
  138. \*->
  139. .EQ
  140. (->),
  141. .EN
  142. !=
  143. .EQ
  144. ( != ),
  145. .EN
  146. are recognized.
  147. Spell out Greek letters in the desired case, as in
  148. .it "alpha, GAMMA."
  149. Mathematical words like sin, cos, log are made Roman automatically.
  150. Troff (I)
  151. four-character escapes like \\(bs (\(bs)
  152. can be used anywhere.
  153. Strings enclosed in double quotes "..."
  154. are passed through untouched.
  155. .sh "SEE ALSO"
  156. A System for Typesetting Mathematics
  157. (Computer Science Technical Report #17, Bell Laboratories, 1974.)
  158. .br
  159. TROFF Users' Manual (internal memorandum)
  160. .br
  161. TROFF Made Trivial (internal memorandum)
  162. .br
  163. troff (I), neqn (I)
  164. .sh BUGS
  165. Undoubtedly.
  166. Watch out for small or large point sizes \*-
  167. it's tuned too well for size 10.
  168. Be cautious if inserting horizontal or vertical motions,
  169. and of backslashes in general.
  170.