version 1.9, 2011/07/21 13:18:24 |
version 1.15, 2011/07/22 13:48:52 |
Line 59 these are not the same as |
|
Line 59 these are not the same as |
|
macros, and may only be invoked as |
macros, and may only be invoked as |
.Sq \&.EQ . |
.Sq \&.EQ . |
.Pp |
.Pp |
The equation grammar is as follows: |
The equation grammar is as follows, where quoted strings are |
|
case-sensitive literals in the input: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
eqn : box | eqn box |
eqn : box | eqn box |
box : text |
box : text |
| { eqn } |
| "{" eqn "}" |
| DEFINE text text |
| "define" text text |
| SET text text |
| "set" text text |
| UNDEF text |
| "undef" text |
|
| box pos box |
| box mark |
| box mark |
|
| pile "{" list "}" |
|
| font box |
|
| "size" text box |
|
| "left" text eqn ["right" text] |
text : TEXT |
text : TEXT |
mark : DOT |
pile : "lpile" | "cpile" | "rpile" |
| DOTDOT |
pos : "over" | "sup" | "sub" | "to" | "from" |
| HAT |
mark : "dot" | "dotdot" | "hat" | "tilde" | "vec" |
| TILDE |
| "dyad" | "bar" | "under" |
| VEC |
font : "roman" | "italic" | "bold" |
| DYAD |
list : eqn |
| BAR |
| list "above" eqn |
| UNDER |
|
.Ed |
.Ed |
.Pp |
.Pp |
Data in TEXT form is a non-empty sequence of non-space characters or a |
Data in TEXT form is a non-empty sequence of non-space characters or a |
Line 84 non-empty quoted string. |
|
Line 89 non-empty quoted string. |
|
Unless within a quoted string, white-space (and enclosing literal quote |
Unless within a quoted string, white-space (and enclosing literal quote |
pairs) is thrown away. |
pairs) is thrown away. |
Quoted strings are not scanned for replacement definitions. |
Quoted strings are not scanned for replacement definitions. |
|
The following text tokens are translated into an acceptable front-end |
|
format, if available: alpha, beta, chi, delta, epsilon, eta, gamma, |
|
iota, kappa, lambda, mu, nu, omega, omicron, phi, pi, psi, rho, sigma, |
|
tau, theta, upsilon, xi, zeta, DELTA, GAMMA, LAMBDA, OMEGA, PHI, PI, |
|
PSI, SIGMA, THETA, UPSILON, and XI. |
.Pp |
.Pp |
The following control statements are available: |
The following control statements are available: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
Line 190 In mandoc, this is interpreted as a comment. |
|
Line 200 In mandoc, this is interpreted as a comment. |
|
.%D 1978 |
.%D 1978 |
.Re |
.Re |
.Sh HISTORY |
.Sh HISTORY |
The eqn utility, a preprocessor for troff, was originally written by |
The eqn utility, a preprocessor for troff, was originally written by |
Brian W. Kernighan and Lorinda L. Cherry in 1975. |
Brian W. Kernighan and Lorinda L. Cherry in 1975. |
The GNU reimplementation of eqn, part of the GNU troff package, was |
The GNU reimplementation of eqn, part of the GNU troff package, was |
released in 1989 by James Clark. |
released in 1989 by James Clark. |