1 .\" $Id: eqn.7,v 1.3 2011/07/17 14:08:49 kristaps Exp $
3 .\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: July 17 2011 $
22 .Nd eqn language reference for mandoc
26 language is a equation-formatting language.
33 This manual describes the subset of the
35 language accepted by the
43 documents are enclosed by the standalone
48 Equations are multi-line blocks consisting of formulas and control
50 .Sh EQUATION STRUCTURE
51 Each equation is bracketed by
57 these are not the same as
59 macros, and may only be invoked as
62 The equation grammar is as follows:
63 .Bd -literal -offset indent
72 Data in TEXT form is a non-empty sequence of non-space characters or a
73 non-empty quoted string.
74 White-space (and enclosing literal quote pairs) is thrown away and
75 productions may not be broken by newlines.
77 The following control statements are available:
80 Replace all occurances of a key with a value.
81 Its syntax is as follows:
85 It is an error to have an empty
92 implementations and should not be considered portable.
95 Both arguments are thrown away.
97 Unset a previously-defined key.
98 Its syntax is as follows:
102 Once invoked, the definition for
113 .%A Brian W. Kernighan
114 .%A Lorinda L. Cherry
115 .%T System for Typesetting Mathematics
116 .%J Communications of the ACM
122 .\" The tbl utility, a preprocessor for troff, was originally written by M.
123 .\" E. Lesk at Bell Labs in 1975.
124 .\" The GNU reimplementation of tbl, part of the groff package, was released
125 .\" in 1990 by James Clark.
126 .\" A standalone tbl implementation was written by Kristaps Dzonsons in
128 .\" This formed the basis of the implementation that is part of the
134 reference was written by
135 .An Kristaps Dzonsons Aq kristaps@bsd.lv .