version 1.5, 2011/07/21 10:24:35 |
version 1.9, 2011/07/21 13:18:24 |
Line 63 The equation grammar is as follows: |
|
Line 63 The equation grammar is as follows: |
|
.Bd -literal -offset indent |
.Bd -literal -offset indent |
eqn : box | eqn box |
eqn : box | eqn box |
box : text |
box : text |
|
| { eqn } |
| DEFINE text text |
| DEFINE text text |
| SET text text |
| SET text text |
| UNDEF text |
| UNDEF text |
|
| box mark |
text : TEXT |
text : TEXT |
|
mark : DOT |
|
| DOTDOT |
|
| HAT |
|
| TILDE |
|
| VEC |
|
| DYAD |
|
| BAR |
|
| 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 |
non-empty quoted string. |
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. |
.Pp |
.Pp |
The following control statements are available: |
The following control statements are available: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
Line 99 Note that a quoted |
|
Line 110 Note that a quoted |
|
causes errors in some |
causes errors in some |
.Nm |
.Nm |
implementations and should not be considered portable. |
implementations and should not be considered portable. |
|
It is not expanded for replacements. |
Definitions may refer to other definitions; these are evaluated |
Definitions may refer to other definitions; these are evaluated |
recursively when text replacement occurs and not when the definition is |
recursively when text replacement occurs and not when the definition is |
created. |
created. |
Line 114 Self-referencing definitions will raise an error. |
|
Line 126 Self-referencing definitions will raise an error. |
|
.It Cm set |
.It Cm set |
Set an equation mode. |
Set an equation mode. |
Both arguments are thrown away. |
Both arguments are thrown away. |
|
Its syntax is as follows: |
|
.Pp |
|
.D1 set Ar key val |
|
.Pp |
|
The |
|
.Ar key |
|
and |
|
.Ar val |
|
are not expanded for replacements. |
.It Cm undef |
.It Cm undef |
Unset a previously-defined key. |
Unset a previously-defined key. |
Its syntax is as follows: |
Its syntax is as follows: |
Line 123 Its syntax is as follows: |
|
Line 144 Its syntax is as follows: |
|
Once invoked, the definition for |
Once invoked, the definition for |
.Ar key |
.Ar key |
is discarded. |
is discarded. |
|
The |
|
.Ar key |
|
is not expanded for replacements. |
.El |
.El |
.Sh COMPATIBILITY |
.Sh COMPATIBILITY |
This section documents the compatibility of mandoc |
This section documents the compatibility of mandoc |