4 Copyright (c) 2014 - 2017 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
6 Copyright (C) 1999 - 2008
7 Free Software Foundation, Inc.
9 Permission is granted to make and distribute verbatim copies of this
10 manual provided the copyright notice and this permission notice are
11 preserved on all copies.
13 Permission is granted to copy and distribute modified versions of this
14 manual under the conditions for verbatim copying, provided that the
15 entire resulting derived work is distributed under the terms of a
16 permission notice identical to this one.
18 Permission is granted to copy and distribute translations of this
19 manual into another language, under the above conditions for modified
20 versions, except that this permission notice may be included in
21 translations approved by the Free Software Foundation instead of in
25 .do nr __compat \n[.C]
29 .TH @U_ROFF@_MAN @MAN7EXT@ "@MDATE@" "@T_ROFF@ v@VERSION@"
34 @L_ROFF@_man \- @T_ROFF@ `man' macros to support generation of man pages
45 .SY "@L_ROFF@\ \-m\ man"
57 macros used to generate
61 were written by James Clark (for GNU troff).
62 This document provides a brief summary of the use of each macro in that
70 macros understand the following command line options (which define
75 This option (the default if in nroff mode) creates a single, very
76 long page instead of multiple pages.
83 If more than one manual page is given on the command line, number the
84 pages continuously, rather than starting each at\~1.
88 Double-sided printing.
89 Footers for even and odd pages are formatted differently.
93 Set distance of the footer relative to the bottom of the page if
94 negative or relative to the top if positive.
95 The default is \-0.5i.
99 Set hyphenation flags.
100 Possible values are 1\~to hyphenate without restrictions, 2\~to not
101 hyphenate the last word on a page, 4\~to not hyphenate the last two
102 characters of a word, and 8\~to not hyphenate the first two characters
104 These values are additive; the default is\~14.
108 Set body text indentation to
110 The default is 7n for
116 this value should always be an integer multiple of unit `n' to get
117 consistent indentation.
120 .BI \-rLL= line-length
122 If this option is not given,
123 the line length is set to respect any value set by a prior `.ll' request
126 be in effect when the
129 if this differs from the built\-in default for the formatter;
130 otherwise it defaults to 78n in
137 Note that the use of a `.ll' request to initialize the line length
138 is supported for backward compatibility with some versions of the
141 direct initialization of the `LL' register should
143 be preferred to the use of such a request.
144 In particular, note that a `.ll\ 65n' request does
151 default initialization to 78n prevails),
153 the `\-rLL=65n' option, or an equivalent `.nr\ LL\ 65n'
154 request preceding the use of the
158 set a line length of 65n.
161 .BI \-rLT= title-length
163 If this option is not given, the title length defaults to the line
168 Enumeration of pages start with
174 Base document font size is
178 can be 10, 11, or\~12) rather than 10\~points.
182 Set sub-subheading indentation to
195 For example, the option `\-rX2' produces the following page
196 numbers: 1, 2, 2a, 2b, 2c, etc.
201 This section describes the available macros for manual pages.
202 For further customization, put additional macros and requests into the
205 which is loaded immediately after the
217 filling is disabled and the font is set to constant-width.
218 This is useful for formatting code, command, and
219 configuration-file examples.
222 macro restores filling and the previous font.
225 These macros are defined on many (but not all) legacy Unix systems
226 running classic troff.
227 To be certain your page will be portable to those systems, copy
228 their definitions from the
235 .BI .HP " \fR[\fPnnn\fR]\fP"
236 Set up a paragraph with hanging left indentation.
237 The indentation is set to
239 if that argument is supplied (the default unit is `n' if omitted),
240 otherwise it is set to the previous indentation value specified with
245 (or to the default value if none of them have been used yet).
246 Font size and face are reset to its default values.
247 The following paragraph illustrates the effect of this macro with
248 hanging indentation set to\~4 (enclosed by
252 to set the left margin temporarily to the current indentation):
256 This is a paragraph following an invocation of the
259 As you can see, it produces a paragraph where all lines but the first
264 Use of this presentation-level macro is deprecated.
265 While it is universally portable to legacy Unix systems, a hanging
266 indentation cannot be expressed naturally under HTML, and many
267 HTML-based manual viewers simply interpret it as a starter for a
269 Thus, any information or distinction you tried to express with the
270 indentation may be lost.
273 .BI .IP " \fR[\fPdesignator\fR]\fP \fR[\fPnnn\fR]\fP"
274 Set up an indented paragraph, using
276 as a tag to mark its beginning.
277 The indentation is set to
279 if that argument is supplied (the default unit is `n' if omitted),
280 otherwise it is set to the previous indentation value specified with
285 (or to the default value if none of them have been used yet).
286 Font size and face of the paragraph (but not the designator) are reset
287 to its default values.
290 To start an indented paragraph with a particular indentation but
291 without a designator, use `""' (two doublequotes) as the second
295 For example, the following paragraphs were all set up with bullets as
296 the designator, using `.IP\ \\(bu\ 4'.
297 The whole block has been enclosed with
302 margin temporarily to the current indentation value.
307 is one of the three macros used in the
309 package to format lists.
314 This macro produces a paragraph with a left hanging indentation.
319 This macro produces an unindented label followed by an indented
329 These macros are mutual aliases.
330 Any of them causes a line break at the current position, followed by a
331 vertical space downwards by the amount specified by the
334 The font size and shape are reset to the default value (normally 10pt
336 Finally, the current left margin and the indentation is reset to default
340 .BI .RE " \fR[\fPnnn\fR]\fP"
341 This macro moves the left margin back to level
343 restoring the previous left margin.
344 If no argument is given, it moves one level back.
345 The first level (i.e., no call to
347 yet) has number\~1, and each call to
349 increases the level by\~1.
352 .BI .RS " \fR[\fPnnn\fR]\fP"
353 This macro moves the left margin to the right by the value
355 if specified (default unit is `n'); otherwise it is set to the
356 previous indentation value specified with
361 (or to the default value if none of them have been used yet).
362 The indentation value is then set to the default.
370 .BI .SH " \fR[\fPtext for a heading\fR]\fP"
371 Set up an unnumbered section heading sticking out to the left.
372 Prints out all the text following
374 up to the end of the line (or the text in the next input line if there
378 (or the font specified by the string
380 one size larger than the base document size.
381 Additionally, the left margin and the indentation for the following
382 text is reset to the default values.
385 .BI .SS " \fR[\fPtext for a heading\fR]\fP"
386 Set up a secondary, unnumbered section heading.
387 Prints out all the text following
389 up to the end of the line (or the text in the next input line if there
393 (or the font specified by the string
395 at the same size as the base document size.
396 Additionally, the left margin and the indentation for the following
397 text is reset to the default values.
400 .BI .TH " title section \fR[\fPextra1\fR]\fP \fR[\fPextra2\fR]\fP \fR[\fPextra3\fR]"
407 which must take on a value between 1 and\~8.
410 may also have a string appended, e.g.\& `.pm', to indicate a specific
417 are positioned at the left and right in the header line (with
419 in parentheses immediately appended to
422 is positioned in the middle of the footer line.
424 is positioned at the left in the footer line (or at the left on
425 even pages and at the right on odd pages if double-sided printing is
428 is centered in the header line.
431 For HTML output, headers and footers are completely suppressed.
434 Additionally, this macro starts a new page; the new line number is\~1
435 again (except if the `\-rC1' option is given on the command line) --
436 this feature is intended only for formatting multiple
440 should contain exactly one
442 macro at the beginning of the file.
445 .BI .TP " \fR[\fPnnn\fR]\fP"
446 Set up an indented paragraph with label.
447 The indentation is set to
449 if that argument is supplied (the default unit is `n' if omitted),
450 otherwise it is set to the previous indentation value specified with
455 (or to the default value if none of them have been used yet).
458 The first input line of text following this macro is interpreted as a
459 string to be printed flush-left, as it is appropriate for a label.
460 It is not interpreted as part of a paragraph, so there is no attempt
461 to fill the first line with text from the following input lines.
462 Nevertheless, if the label is not as wide as the indentation the
463 paragraph starts at the same line (but indented), continuing on the
465 If the label is wider than the indentation the descriptive part of the
466 paragraph begins on the line following the label, entirely indented.
467 Note that neither font shape nor font size of the label is set to a
468 default value; on the other hand, the rest of the text has default
474 macro is the macro used for the explanations you are just reading.
480 macro sets up header continuation for a
483 With it, you can stack up any number of labels (such as in a
484 glossary, or list of commands) before beginning the indented
486 For an example, look up the documentation of the
494 This macro is not defined on legacy Unix systems running classic
496 To be certain your page will be portable to those systems,
497 copy its definition from the
504 To summarize, the following macros cause a line break with the
505 insertion of vertical space (which amount can be changed with the
524 also cause a break but no insertion of vertical space.
527 .SH "MACROS TO SET FONTS"
529 The standard font is Roman; the default text size is 10\~point.
532 .BI .B " \fR[\fPtext\fR]\fP"
535 to appear in bold face.
536 If no text is present on the line where the macro is called the text
537 of the next input line appears in bold face.
541 Causes text on the same line to appear alternately in bold face and
543 The text must be on the same line as the macro call.
548 \&.BI this "word and" that
551 would cause `this' and `that' to appear in bold face, while `word and'
557 Causes text on the same line to appear alternately in bold face and
559 The text must be on the same line as the macro call.
562 .BI .I " \fR[\fPtext\fR]\fP"
566 If no text is present on the line where the macro is called the text
567 of the next input line appears in italic.
571 Causes text to appear alternately in italic and bold face.
572 The text must be on the same line as the macro call.
576 Causes text on the same line to appear alternately in italic and
578 The text must be on the same line as the macro call.
582 Causes text on the same line to appear alternately in roman and bold
584 The text must be on the same line as the macro call.
588 Causes text on the same line to appear alternately in roman and
590 The text must be on the same line as the macro call.
593 .BI .SB " \fR[\fPtext\fR]\fP"
594 Causes the text on the same line or the text on the next input line to
595 appear in boldface font, one point size smaller than the default font.
598 .BI .SM " \fR[\fPtext\fR]\fP"
599 Causes the text on the same line or the text on the next input line to
600 appear in a font that is one point size smaller than the default font.
604 .SH "MACROS TO DESCRIBE HYPERLINKS AND EMAIL ADDRESSES"
606 The following macros are not defined on legacy Unix systems
607 running classic troff.
608 To be certain your page will be portable to those systems, copy
609 their definitions from the
616 Using these macros helps ensure that you get hyperlinks when your
617 manual page is rendered in a browser or other program that is
623 .BI .ME " \fR[\fPpunctuation\fR]\fP"
624 Wrap an email address.
627 is the address; text following, until
629 is a name to be associated with the address.
632 macro is pasted to the end of the link text.
633 On a device that is not a browser,
639 \&.MT fred.foonly@\e:fubar.net
647 usually displays like this: \[lq]contact Fred Foonly
648 <fred.foonly@\:fubar.net> for more information\[rq].
653 to insert hyphenless breakpoints is a @T_ROFF@ extension and can
659 .BI .UE " \fR[\fPpunctuation\fR]\fP"
660 Wrap a World Wide Web hyperlink.
663 is the URL; thereafter, lines until
665 are collected and used as the link text.
668 macro is pasted to the end of the text.
669 On a device that is not a browser,
675 \&.UR http://\e:randomsite.org/\e:fubar
683 usually displays like this: \[lq]this is a link to some random
684 site <http://\:randomsite.org/\:fubar>, given as an example\[rq].
689 to insert hyphenless breakpoints is a groff extension and can
693 .SH "MACROS TO DESCRIBE COMMAND SYNOPSES"
695 The following macros are not defined on legacy Unix systems
696 running classic troff.
697 To be certain your page will be portable to those systems, copy their
705 These macros are a convenience for authors.
706 They also assist automated translation tools and help browsers in
707 recognizing command synopses and treating them differently from
712 Describe an optional command argument.
713 The arguments of this macro are set surrounded by option braces
714 in the default Roman font; the first argument is printed with
715 a bold face, while the second argument is typeset as italic.
720 Takes a single argument, the name of a command.
721 Text following, until closed by
723 is set with a hanging indentation with the width of
726 This produces the traditional look of a Unix command synopsis.
730 This macro restores normal indentation at the end of a command
734 Here is a real example:
747 produces the following output:
760 If necessary, you might use
762 requests to control line breaking.
763 You can insert plain text as well; this looks like the traditional
764 (unornamented) syntax for a required command argument or filename.
769 The default indentation is 7.2n in troff mode and 7n in nroff mode
772 which ignores indentation.
775 .BI .AT " \fR[\fPsystem \fR[\fPrelease\fR]]\fP"
776 Alter the footer for use with \f[CR]AT&T\f[]
778 This command exists only for compatibility; don't use it.
782 Print the footer string.
783 Redefine this macro to get control of the footer.
787 Set tabs every 0.5\~inches.
788 Since this macro is always called during a
790 request, it makes sense to call it only if the tab positions have been
794 Use of this presentation-level macro is deprecated.
795 It translates poorly to HTML, under which exact whitespace control
796 and tabbing are not readily available.
797 Thus, information or distinctions that you use
799 to express are likely to be lost.
800 If you feel tempted to use it, you should probably be composing a
802 .BR @L_PRE_TBL@ (@MAN1DIR@)
806 .BI .PD " \fR[\fPnnn\fR]\fP"
807 Adjust the empty space before a new paragraph or section.
808 The optional argument gives the amount of space (default unit is `v');
809 without parameter, the value is reset to its default value (1\~line in
810 nroff mode, 0.4v\~otherwise).
811 This affects the macros
825 Use of this presentation-level macro is deprecated.
826 It translates poorly to HTML, under which exact control of
827 inter-paragraph spacing is not readily available.
828 Thus, information or distinctions that you use
830 to express are likely to be lost.
834 Print the header string.
835 Redefine this macro to get control of the header.
838 .BI .UC " \fR[\fPversion\fR]\fP"
839 Alter the footer for use with \f[CR]BSD\f[]
841 This command exists only for compatibility; don't use it.
844 The following strings are defined:
848 The `registered' sign.
852 Switch back to the default font size.
858 Left and right quote.
859 This is equal to `\e(lq' and `\e(rq', respectively.
863 The typeface used to print headings and subheadings.
868 The `trademark' sign.
871 If a preprocessor like
875 is needed, it has become usage to make the first line of the
885 Note the single space character after the double quote.
887 consists of letters for the needed preprocessors: `e' for
893 Modern implementations of the
895 program read this first line and automatically call the right
899 .SH "PORTABILITY AND TROFF REQUESTS"
903 macros consist of groups of troff requests, one can, in principle,
904 supplement the functionality of the
906 macros with individual troff requests where necessary.
909 Note, however, that using raw troff requests is likely to make your
910 page render poorly on the (increasingly common) class of viewers that
912 Troff requests make implicit assumptions about things like character
913 and page sizes that may break in an HTML environment; also, many of
914 these viewers don't interpret the full troff vocabulary, a problem
915 which can lead to portions of your text being silently dropped.
918 Note that for the portability to modern viewers, it is best to write
919 your page entirely in the requests described on this page.
920 Further, it is best to completely avoid those we have described as
921 \[oq]presentation-level\[cq]
928 The macros we have described as extensions
930 .BR .SY / .OP / .YS ,
934 should be used with caution, as they may not yet be built in to
935 some viewer that is important to your audience.
937 If in doubt, copy the implementation onto your page.
947 These are wrapper files to call
952 Use this file in case you don't know whether the
956 package should be used.
957 Multiple man pages (in either format) can be handled.
963 macros are contained in this file.
967 The extension macro definitions for
976 are contained in this file.
977 It is written in classic troff, and released for free re-use,
978 and not copylefted; manual page authors concerned about
979 portability to legacy Unix systems are encouraged to copy these
980 definitions into their pages, and maintainers of troff
981 or its workalikes are encouraged to re-use them.
984 Note that the definitions for these macros are read after the call of
986 so they will replace macros of the same names given at the beginning of
989 If you must use your own definitions for these macros, they must be
995 Local changes and customizations should be put into this file.
1001 .BR @L_P_TBL@ (@MAN1EXT@),
1002 .BR @L_P_EQN@ (@MAN1EXT@),
1003 .BR @L_P_REFER@ (@MAN1EXT@),
1006 .BR @L_ROFF@_mdoc (7)
1011 This manual page was originally written for the Debian GNU/Linux
1014 Susan G.\& Kleinmann
1016 It was corrected and updated by
1020 The extension macros were documented (and partly designed) by