2 Copyright (C) 1999-2000 Free Software Foundation, Inc.
4 Permission is granted to make and distribute verbatim copies of
5 this manual provided the copyright notice and this permission notice
6 are preserved on all copies.
8 Permission is granted to copy and distribute modified versions of this
9 manual under the conditions for verbatim copying, provided that the
10 entire resulting derived work is distributed under the terms of a
11 permission notice identical to this one.
13 Permission is granted to copy and distribute translations of this
14 manual into another language, under the above conditions for modified
15 versions, except that this permission notice may be included in
16 translations approved by the Free Software Foundation instead of in
24 .TH GROFF_MAN @MAN7EXT@ "@MDATE@" "Groff Version @VERSION@"
28 groff_man \- groff `man' macros to support generation of man pages
33 .B \-m@TMAC_AN_PREFIX@an
44 .B tmac.@TMAC_AN_PREFIX@an
45 macros used to generate man pages with
47 were written by James Clark.
48 This document provides a brief summary of the use of each macro in that
55 macros understand the following command line options (which define various
59 If more than one manual page is given on the command line, number the
60 pages continuously, rather than starting each at\ 1.
63 Double-sided printing.
64 Footers for even and odd pages are formatted differently.
67 Enumeration of pages will start with
79 For example, the option `\-rX2' will produce the following page numbers:
80 1, 2, 2a, 2b, 2c, etc.
84 This section describes the available macros for manual pages.
85 For further customization, put additional macros and requests into the file
87 which will be loaded immediately after
88 .BR tmac.@TMAC_AN_PREFIX@an .
90 .BI .TH " title section " [ extra1 "] [" extra2 "] [" extra3 ]
91 Sets the title of the man page to
95 which must take on a value between 1 and\ 8.
98 may also have a string appended, e.g. `.pm', to indicate a specific
99 subsection of the man pages.
104 are positioned at the left and right in the header line (with
106 in parentheses immediately appended to
109 will be positioned in the middle of the footer line.
111 will be positioned at the left in the footer line (resp. at the left on
112 even pages and at the right on odd pages if double-sided printing is
115 is centered in the header line.
117 For HTML output, headers and footers are completely supressed.
119 Additionally, this macro starts a new page; the new line number is\ 1 again
120 (except if the `-rC1' option is given on the command line) -- this feature
121 is intended only for formatting multiple man pages; a single man page should
124 macro at the beginning of the file.
126 .BI ".SH [" "text for a heading" ]
127 Sets up an unnumbered section heading sticking out to the left.
128 Prints out all the text following
130 up to the end of the line (resp. the text in the next line if there is no
133 in bold face, at a default size of 9\ point.
134 Additionally, the left margin for the following text is reset to its default
137 .BI ".SS [" "text for a heading" ]
138 Sets up an unnumbered section heading.
139 Prints out all the text following
141 up to the end of the line (resp. the text in the next line if there is no
144 in bold face, at a default size of 10\ point.
145 Additionally, the left margin for the following text is reset to its default
149 Sets up an indented paragraph with label.
150 The indentation is set to
152 if that argument is supplied (the default unit is `n' if omitted), otherwise
153 it is set to the default indentation value.
154 The first line of text following this macro is interpreted as a string to be
155 printed flush-left, as it is appropriate for a label.
156 It is not interpreted as part of a paragraph, so there is no attempt to fill
157 the first line with text from the following input lines.
158 Nevertheless, if the label is not as wide as the indentation, then the
159 paragraph starts at the same line (but indented), continuing on the
161 If the label is wider than the indentation, then the descriptive part of the
162 paragraph begins on the line following the label, entirely indented.
163 Note that neither font shape nor font size of the label is set to a default
164 value; on the other hand, the rest of the text will have default font
168 macro is the macro used for the explanations you are just reading.
175 These macros are mutual aliases.
176 Any of them causes a line break at the current position, followed by a
177 vertical space downwards by the amount specified by the
180 The font size and shape are reset to the default value (10pt resp. Roman).
181 Finally, the current left margin is restored.
183 .BI ".IP [" designator "] [" nnn ]
184 Sets up an indented paragraph, using
186 as a tag to mark its beginning.
187 The indentation is set to
189 if that argument is supplied (default unit is `n'), otherwise the default
190 indentation value is used.
191 Font size and face of the paragraph (but not the designator) are reset to
193 To start an indented paragraph with a particular indentation but without a
194 designator, use `""' (two doublequotes) as the second argument.
196 For example, the following paragraphs were all set up with bullets as the
197 designator, using `.IP\ \\(bu\ 4':
201 is one of the three macros used in
202 .B tmac.@TMAC_AN_PREFIX@an
207 This macro produces a paragraph with a left hanging indentation.
211 This macro produces an unindented label followed by an indented paragraph.
215 Sets up a paragraph with hanging left indentation.
216 The indentation is set to
218 if that argument is supplied (default unit is `n'), otherwise the default
219 indentation value is used.
220 Font size and face are reset to its default values.
221 The following paragraph illustrates the effect of this macro with hanging
222 indentation set to\ 4:
225 This is a paragraph following an invocation of the
228 As you can see, it produces a paragraph where all lines but the first are
233 This macro moves the left margin to the right by the value
235 if specified (default unit is `n'); otherwise the default indentation value
242 This macro moves the left margin back to level
244 if no argument is given, it moves one level back.
245 The first level (i.e., no call to
247 yet) has number\ 1, and each call to
249 increases the level by\ 1.
251 To summarize, the following macros cause a line break with the insertion of
252 vertical space (which amount can be changed with the
268 also cause a break but no insertion of vertical space.
270 .SH "MACROS TO SET FONTS"
272 The standard font is Roman; the default text size is 10\ point.
275 Causes the text on the same line or the text on the next line to appear in a
276 font that is one point size smaller than the default font.
279 Causes the text on the same line or the text on the next line to appear in
280 boldface font, one point size smaller than the default font.
283 Causes text on the same line to appear alternately in bold face and italic.
284 The text must be on the same line as the macro call.
288 \&.BI this "word and" that
290 would cause `this' and `that' to appear in bold face, while `word and'
295 Causes text to appear alternately in italic and bold face.
296 The text must be on the same line as the macro call.
299 Causes text on the same line to appear alternately in roman and italic.
300 The text must be on the same line as the macro call.
303 Causes text on the same line to appear alternately in italic and roman.
304 The text must be on the same line as the macro call.
307 Causes text on the same line to appear alternately in bold face and roman.
308 The text must be on the same line as the macro call.
311 Causes text on the same line to appear alternately in roman and bold face.
312 The text must be on the same line as the macro call.
317 to appear in roman font.
318 If no text is present on the line where the macro is called, then the text
319 of the next line appears in roman.
320 This is the default font to which text is returned at the end of processing
326 to appear in bold face.
327 If no text is present on the line where the macro is called, then the text
328 of the next line appears in bold face.
334 If no text is present on the line where the macro is called, then the text
335 of the next line appears in italic.
339 The default indentation is 7.2n for all output devices except for
341 which uses 1.2i instead.
344 Sets tabs every 0.5 inches.
345 Since this macro is always called during a
347 request, it makes sense to call it only if the tab positions have been
351 Adjusts the empty space before a new paragraph (resp. section).
352 The optional argument gives the amount of space (default units are `v');
353 without parameter, the value is reset to its default value (1\ line for tty
354 devices, 0.4v\ otherwise).
355 This affects the macros
368 The following strings are defined:
371 Switch back to the default font size.
374 The `registered' sign.
377 The `trademark' sign.
382 Left and right quote.
383 This is equal to `\e(lq' and `\e(rq', respectively.
385 If a preprocessor like
389 is needed, it has become usage to make the first line of the man page look
396 Note the single space character after the double quote.
398 consists of letters for the needed preprocessors: `e' for
404 Modern implementations of the
406 program read this first line and automatically call the right
412 .B tmac.@TMAC_AN_PREFIX@an
413 macros consist of groups of
415 requests, one can, in principle, supplement the functionality of the
416 .B tmac.@TMAC_AN_PREFIX@an
417 macros with individual
419 requests where necessary.
420 A complete list of these requests is available on the WWW at
423 http://www.cs.pdx.edu/~trent/gnu/groff/groff_toc.html
425 .BR @g@tbl (@MAN1EXT@),
426 .BR @g@eqn (@MAN1EXT@),
427 .BR @g@refer (@MAN1EXT@),
432 This manual page was originally written for the Debian GNU/Linux system by
433 Susan G. Kleinmann <sgk@debian.org>, corrected and updated by Werner Lemberg
434 <wl@gnu.org>, and is now part of the GNU troff distribution.