[BACK]Return to eqn.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/eqn.7 between version 1.13 and 1.17

version 1.13, 2011/07/21 23:30:39 version 1.17, 2011/07/22 14:55:07
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          | "gsize" text
         | UNDEF text          | "set" text text
           | "undef" text
         | box pos box          | box pos box
         | box mark          | box mark
         | pile { list }          | pile "{" list "}"
         | font box          | font box
         | SIZE text box          | "size" text box
         | LEFT text box [RIGHT text]          | "left" text eqn ["right" text]
 text    : TEXT  text    : TEXT
 pile    : LPILE  pile    : "lpile" | "cpile" | "rpile"
         | CPILE  pos     : "over" | "sup" | "sub" | "to" | "from"
         | RPILE  mark    : "dot" | "dotdot" | "hat" | "tilde" | "vec"
 pos     : OVER          | "dyad" | "bar" | "under"
         | SUP  font    : "roman" | "italic" | "bold"
         | SUB  list    : eqn
         | TO          | list "above" eqn
         | FROM  
 mark    : DOT  
         | DOTDOT  
         | HAT  
         | TILDE  
         | VEC  
         | DYAD  
         | BAR  
         | UNDER  
 font    : ROMAN  
         | ITALIC  
         | BOLD  
 list    : eqn | list ABOVE eqn  
 .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 102  Unless within a quoted string, white-space (and enclos
Line 91  Unless within a quoted string, white-space (and enclos
 pairs) is thrown away.  pairs) is thrown away.
 Quoted strings are not scanned for replacement definitions.  Quoted strings are not scanned for replacement definitions.
 .Pp  .Pp
   The following TEXT terms are translated into a rendered glyph, 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, XI, inter (intersection), union (union), prod (product),
   int (integral), sum (summation), grad (gradient), del (vector
   differential), times (multiply), cdot (centre-dot), nothing (zero-width
   space), approx (approximately equals), prime (prime), half (one-half),
   partial (partial differential), inf (infinity), >> (much greater), <<
   (much less), \-> (left arrow), <\- (right arrow), += (plus-minus), !=
   (not equal), == (equivalence), <= (less-than-equal), and >=
   (more-than-equal).
   .Pp
 The following control statements are available:  The following control statements are available:
 .Bl -tag -width Ds  .Bl -tag -width Ds
 .It Cm define  .It Cm define
Line 140  foo bar 'baz'
Line 142  foo bar 'baz'
 .Ed  .Ed
 .Pp  .Pp
 Self-referencing definitions will raise an error.  Self-referencing definitions will raise an error.
   .It Cm gsize
   Set the default size of subsequent output.
   Its syntax is as follows:
   .Pp
   .D1 define Ar size
   .Pp
   The
   .Ar size
   value should be an integer.
 .It Cm set  .It Cm set
 Set an equation mode.  Set an equation mode.
 Both arguments are thrown away.  Both arguments are thrown away.
Line 207  In mandoc, this is interpreted as a comment.
Line 218  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.

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.17

CVSweb