1 .\" $Id: man.7,v 1.5 2009/03/26 23:01:26 kristaps Exp $
3 .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the
7 .\" above copyright notice and this permission notice appear in all
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 .\" WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 .\" AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16 .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 .\" PERFORMANCE OF THIS SOFTWARE.
19 .Dd $Mdocdate: March 26 2009 $
25 .Nd man language reference
30 language was historically used to format
32 manuals. In this reference document, we describe the syntax and
40 to write your manuals. Use the
47 document follows simple rules: lines beginning with the control
50 are parsed for macros. Other lines are interpreted within the scope of
52 .Bd -literal -offset indent
53 \&.SH Macro lines change control state.
54 Other lines are interpreted within the current state.
59 documents may contain only graphable 7-bit ASCII characters and the
67 Blank lines are acceptable; where found, the output will assert a
72 escape is common in historical
74 documents; if encountered at the end of a word, it ensures that the
75 subsequent word isn't off-set by whitespace.
77 .Ss Special Characters
78 Special character sequences begin with the escape character
80 followed by either an open-parenthesis
82 for two-character sequences; an open-bracket
84 for n-character sequences (terminated at a close-bracket
86 or a single one-character sequence.
88 Characters may alternatively be escaped by a slash-asterisk,
90 with the same combinations as described above. This form is deprecated.
94 contains a table of all available escapes.
97 Macros are one to three three characters in length and begin with a
100 at the beginning of the line. An arbitrary amount of whitespace may
101 sit between the control character and the macro name. Thus,
109 macros follow the same structural rules:
110 .Bd -literal -offset indent
111 \&.YO \(lBbody...\(rB
116 consists of zero or more arguments to the macro.
119 has a primitive notion of multi-line scope for the following macros:
133 When these macros are invoked without arguments, the subsequent line is
134 considered a continuation of the macro. Thus:
135 .Bd -literal -offset indent
142 If two consecutive lines exhibit the latter behaviour,
143 an error is raised. Thus, the following is not acceptable:
144 .Bd -literal -offset indent
152 macro is similar, but does not need an empty argument line to trigger
156 This section contains a complete list of all
158 macros and corresponding number of arguments.
160 .Bl -column "MacroX" "Arguments" -compact -offset indent
161 .It Em Macro Ta Em Arguments
190 utility was written by
191 .An Kristaps Dzonsons Aq kristaps@openbsd.org .
194 Do not use this language. Use