4 .\" A complete reference of the mdoc macro package for GNU troff.
6 .\" Based on NetBSD's mdoc.samples.7, version 1.21.
9 .\" Warning: You can't format this file with the old mdoc macros!
12 .\" Copyright (C) 1990, 1993
13 .\" The Regents of the University of California. All rights reserved.
15 .\" Redistribution and use in source and binary forms, with or without
16 .\" modification, are permitted provided that the following conditions
18 .\" 1. Redistributions of source code must retain the above copyright
19 .\" notice, this list of conditions and the following disclaimer.
20 .\" 2. Redistributions in binary form must reproduce the above copyright
21 .\" notice, this list of conditions and the following disclaimer in
22 .\" the documentation and/or other materials provided with the
25 .\" ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
26 .\" 4. Neither the name of the University nor the names of its
27 .\" contributors may be used to endorse or promote products derived
28 .\" from this software without specific prior written permission.
30 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS"
31 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
32 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
33 .\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
34 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
37 .\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
38 .\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
39 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
40 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 .\" @(#)mdoc.samples.7 8.2 (Berkeley) 12/30/93
45 .\" This reference invokes every macro in the package several times and
46 .\" is guaranteed to give a worst case performance for an already
47 .\" extremely slow package.
58 .Nd reference for groff's mdoc implementation
63 .Nm groff Fl m Ns Cm doc Ar
68 A complete reference for writing
76 formatting package for
81 package, addressed page layout leaving the manipulation of fonts and other
82 typesetting details to the individual author.
85 page layout macros make up the
86 .Em "page structure domain"
87 which consists of macros for titles, section headers, displays and lists
88 \(en essentially items which affect the physical position of text on a
90 In addition to the page structure domain, there are two more domains, the
95 The general text domain is defined as macros which perform tasks such as
96 quoting or emphasizing pieces of text.
97 The manual domain is defined as macros that are a subset of the day to day
98 informal language used to describe commands, routines and related
101 Macros in the manual domain handle command names, command-line arguments and
102 options, function names, function parameters, pathnames, variables, cross
103 references to other manual pages, and so on.
104 These domain items have value for both the author and the future user of the
106 Hopefully, the consistency gained across the manual set will provide easier
107 translation to future documentation tools.
111 manual pages, a manual entry is simply referred to as a man page, regardless
112 of actual length and without sexist intention.
115 .Sh "GETTING STARTED"
117 The material presented in the remainder of this document is outlined
120 .Bl -enum -width 3n -offset indent
122 . Tn "TROFF IDIOSYNCRASIES"
124 . Bl -tag -width 2n -compact
126 . It "Passing Space Characters in an Argument"
127 . It "Trailing Blank Space Characters"
128 . It "Escaping Special Characters"
129 . It "Other Possible Pitfalls"
133 . Tn "A MANUAL PAGE TEMPLATE"
142 . Tn "INTRODUCTION OF MANUAL AND GENERAL TEXT DOMAINS"
144 . Bl -tag -width 2n -compact
145 . It "What's in a Name" Ns ...
146 . It "General Syntax"
152 . Bl -tag -width 2n -compact
156 . It "Configuration Declarations (Section Four Only)"
157 . It "Command Modifiers"
158 . It "Defined Variables"
160 . It "Environment Variables"
162 . It "Function Declarations"
163 . It "Function Types"
164 . It "Functions (Library Routines)"
165 . It "Function Arguments"
168 . \" .It "Header File (including source code)"
169 . It "Interactive Commands"
176 . It "Variable Types"
178 . It "Manual Page Cross References"
182 . Tn "GENERAL TEXT DOMAIN"
184 . Bl -tag -width 2n -compact
189 . It "DragonFly Macro"
193 . It "Emphasis Macro"
195 . It "Enclosure and Quoting Macros"
196 . It "No-Op or Normal Text Macro"
197 . It "No-Space Macro"
198 . It "Section Cross References"
200 . It "Mathematical Symbols"
201 . It "References and Citations"
202 . It "Trade Names (or Acronyms and Type Names)"
203 . It "Extended Arguments"
207 . Tn "PAGE STRUCTURE DOMAIN"
209 . Bl -tag -width 2n -compact
210 . It "Section Headers"
211 . It "Subsection Headers"
212 . It "Paragraphs and Line Spacing"
214 . It "Examples and Displays"
215 . It "Lists and Columns"
219 . Tn "MISCELLANEOUS MACROS"
222 . Tn "PREDEFINED STRINGS"
228 . Tn "FORMATTING WITH GROFF, TROFF, AND NROFF"
245 .Sh "TROFF IDIOSYNCRASIES"
249 package attempts to simplify the process of writing a man page.
250 Theoretically, one should not have to learn the tricky details of
255 however, there are a few limitations which are unavoidable and best gotten
257 And, too, be forewarned, this package is
266 a macro is called by placing a
268 (dot character) at the beginning of a line followed by the two-character
269 (or three-character) name for the macro.
270 There can be space or tab characters between the dot and the macro name.
271 Arguments may follow the macro separated by spaces (but
274 It is the dot character at the beginning of the line which causes
277 to interpret the next two (or more) characters as a macro name.
278 A single starting dot followed by nothing is ignored.
281 (dot character) at the beginning of an input line in some context other than
282 a macro invocation, precede the
286 escape sequence which translates literally to a zero-width space, and is
287 never displayed in the output.
292 macros accept an unlimited number of arguments (contrary to other versions
293 of troff which can't handle more than nine arguments).
294 In limited cases, arguments may be continued or extended on the next
296 .Sx Extended Arguments
298 Almost all macros handle quoted arguments (see
299 .Sx Passing Space Characters in an Argument
304 general text domain and manual domain macros are special in that their
307 for callable macro names.
308 This means an argument on the argument list which matches a general text or
309 manual domain macro name (and which is defined to be callable) will be
310 executed or called when it is processed.
311 In this case the argument, although the name of a macro, is not preceded by
315 This makes it possible to nest macros; for example the option macro,
319 the flag and argument macros,
323 to specify an optional flag with an argument:
325 .Bl -tag -width ".Op Fl s Ar bytes" -offset indent
328 .Ql ".Op Fl s Ar bytes"
332 To prevent a string from being interpreted as a macro name, precede the
333 string with the escape sequence
336 .Bl -tag -width ".Op \&Fl s \&Ar bytes" -offset indent
337 .It Op \&Fl s \&Ar bytes
339 .Ql ".Op \e&Fl s \e&Ar bytes"
347 are not interpreted as macros.
348 Macros whose argument lists are parsed for callable arguments are referred
351 and macros which may be called from an argument list are referred to as
353 throughout this document.
356 as almost all of the macros in
358 are parsed, but as it was cumbersome to constantly refer to macros as
359 being callable and being able to call other macros, the term parsed
363 In the following, we call an
365 macro which starts a line (with a leading dot) a
367 if this distinction is necessary.
369 .Ss "Passing Space Characters in an Argument"
371 Sometimes it is desirable to give as an argument a string containing one or
372 more blank space characters, say, to specify arguments to commands which
373 expect particular arrangement of items in the argument list.
374 Additionally, it makes
377 For example, the function command
379 expects the first argument to be the name of a function and any remaining
380 arguments to be function parameters.
383 stipulates the declaration of function parameters in the parenthesized
384 parameter list, each parameter is guaranteed to be at minimum a two word
389 There are two possible ways to pass an argument which contains
391 One way of passing a string containing blank spaces is to use the hard or
392 unpaddable space character
394 that is, a blank space preceded by the escape character
396 This method may be used with any macro but has the side effect of
397 interfering with the adjustment of text over the length of a line.
399 sees the hard space as if it were any other printable character and cannot
400 split the string into blank or newline separated pieces as one would expect.
401 This method is useful for strings which are not expected to overlap a line
403 An alternative is to use
405 a paddable (i.e.\& stretchable), unbreakable space (this is a
409 The second method is to enclose the string with double quotes.
413 .Bl -tag -width ".Fn fetch char\ *str" -offset indent
414 .It Fn fetch char\ *str
416 .Ql ".Fn fetch char\e *str"
417 .It Fn fetch "char *str"
418 can also be created by
419 .Ql ".Fn fetch \*[q]char *str\*[q]"
425 before the space in the first example
426 or double quotes in the second example
429 would see three arguments, and the result would be:
431 .Dl Fn fetch char *str
433 .\" For an example of what happens when the parameter list overlaps a newline
434 .\" boundary, see the
438 .Ss "Trailing Blank Space Characters"
441 can be confused by blank space characters at the end of a line.
442 It is a wise preventive measure to globally remove all blank spaces
444 .Ao blank-space Ac Ns Ao end-of-line Ac
446 Should the need arise to use a blank character at the end of a line, it
447 may be forced with an unpaddable space and the
453 .Ss "Escaping Special Characters"
455 Special characters like the newline character
457 are handled by replacing the
463 to preserve the backslash.
465 .Ss "Other Possible Pitfalls"
467 A warning is emitted when an empty input line is found outside of displays
472 (Well, it is even better to use
474 macros to avoid the usage of low-level commands.)
476 Leading spaces will cause a break and are output directly.
477 Avoid this behaviour if possible.
478 Similarly, do not use more than one space character between words in an
479 ordinary text line; contrary to other text formatters, they are
481 replaced with a single space.
485 directly as an argument.
494 inserts two space characters after a punctuation mark closing a sentence;
499 are treated transparently, not influencing the sentence-ending behaviour.
500 To change this, insert
502 before or after the dot:
504 .Bd -literal -offset indent
523 .Bd -filled -offset indent
540 As can be seen in the first and third line,
542 handles punctuation characters specially in macro arguments.
543 This will be explained in section
546 In the same way, you have to protect trailing full stops of abbreviations
547 with a trailing zero-width space:
550 A comment in the source file of a man page can be either started with
556 anywhere (the latter is a
559 extension); the rest of such a line is ignored.
562 .Sh "A MANUAL PAGE TEMPLATE"
564 The body of a man page is easily constructed from a basic template:
566 .Bd -literal -offset indent
567 \&.\e" The following commands are required for all man pages.
568 \&.Dd Month day, year
569 \&.Dt DOCUMENT_TITLE [section number] [architecture/volume]
570 \&.Os [OPERATING_SYSTEM] [version/release]
573 \&.Nd one line description of name
574 \&.\e" This next command is for sections 2 and 3 only.
578 \&.\e" The following commands should be uncommented and
579 \&.\e" used where appropriate.
580 \&.\e" .Sh IMPLEMENTATION NOTES
581 \&.\e" This next command is for sections 2, 3, and 9 only
582 \&.\e" (function return values).
583 \&.\e" .Sh RETURN VALUES
584 \&.\e" This next command is for sections 1, 6, 7, and 8 only.
585 \&.\e" .Sh ENVIRONMENT
587 \&.\e" This next command is for sections 1, 6, and 8 only
588 \&.\e" (command return values to the shell).
589 \&.\e" .Sh EXIT STATUS
591 \&.\e" This next command is for sections 1, 4, 6, 7, 8, and 9 only
592 \&.\e" (fprintf/stderr type diagnostics).
593 \&.\e" .Sh DIAGNOSTICS
594 \&.\e" .Sh COMPATIBILITY
595 \&.\e" This next command is for sections 2, 3, 4, and 9 only
596 \&.\e" (settings of the errno variable).
607 The first items in the template are the commands
612 the document date, the operating system the man page or subject source is
613 developed or modified for, and the man page title (in
615 along with the section of the manual the page belongs in.
616 These commands identify the page and are discussed below in
619 The remaining items in the template are section headers
627 The headers are discussed in
628 .Sx "PAGE STRUCTURE DOMAIN" ,
629 after presentation of
630 .Sx "MANUAL DOMAIN" .
631 Several content macros are used to demonstrate page layout macros; reading
632 about content macros before page layout macros is recommended.
637 In the description of all macros below, optional arguments are put into
641 represents zero or more additional arguments.
642 Alternative values for a parameter are separated with
644 If there are alternative values for a mandatory parameter, braces are used
647 to enclose the value set.
648 Meta-variables are specified within angles.
652 .Bl -tag -width 6n -offset indent
656 .Op \-test1 Op \-test2 | \-test3
662 Except stated explicitly, all macros are parsed and callable.
664 Note that a macro takes effect up to the next nested macro.
671 Consequently, a warning message is emitted for most commands if the first
672 argument is a macro itself since it cancels the effect of the calling
674 Another consequence is that quoting macros never insert literal quotes;
677 .Ql ".Ic \*[q]foo <bar>\*[q]" .
679 Most macros have a default width value which can be used to specify a label
689 It is recommended not to use this rather obscure feature to avoid
690 dependencies on local modifications of the
697 The title macros are part of the page structure domain but are presented
698 first and separately for someone who wishes to start writing a man page
700 Three header macros designate the document title or manual page title, the
701 operating system, and the date of authorship.
702 These macros are called once at the very beginning of the document and are
703 used to construct headers and footers only.
707 .Op Aq document title
708 .Op Aq section number
711 The document title is the subject of the man page and must be in
713 due to troff limitations.
717 The section number may be a number in the range
718 .No 1,\~ Ns ... Ns ,\~9
724 If it is specified, and no volume name is given, a default volume name is
729 .Tn \*[doc-operating-system] ,
730 the following sections are defined:
734 1 \*[doc-volume-operating-system] \*[doc-volume-ds-1]
735 2 \*[doc-volume-operating-system] \*[doc-volume-ds-2]
736 3 \*[doc-volume-operating-system] \*[doc-volume-ds-3]
737 4 \*[doc-volume-operating-system] \*[doc-volume-ds-4]
738 5 \*[doc-volume-operating-system] \*[doc-volume-ds-5]
739 6 \*[doc-volume-operating-system] \*[doc-volume-ds-6]
740 7 \*[doc-volume-operating-system] \*[doc-volume-ds-7]
741 8 \*[doc-volume-operating-system] \*[doc-volume-ds-8]
742 9 \*[doc-volume-operating-system] \*[doc-volume-ds-9]
746 A volume name may be arbitrary or one of the following:
751 USD \*[doc-volume-ds-USD]
752 PS1 \*[doc-volume-ds-PS1]
753 AMD \*[doc-volume-ds-AMD]
754 SMM \*[doc-volume-ds-SMM]
755 URM \*[doc-volume-ds-URM]
756 PRM \*[doc-volume-ds-PRM]
757 KM \*[doc-volume-ds-KM]
758 IND \*[doc-volume-ds-IND]
759 LOCAL \*[doc-volume-ds-LOCAL]
760 CON \*[doc-volume-ds-CON]
772 Values from the previous table will specify a new volume name.
773 If the third parameter is a keyword designating a computer architecture,
774 its value is prepended to the default volume name as specified by the
776 By default, the following architecture keywords are defined:
778 \# we use 'No' to avoid hyphenation
779 .Bd -ragged -offset indent
780 .No acorn26 , acorn32 , algor , alpha , amd64 , amiga , amigappc ,
781 .No arc , arm , arm26 , arm32 , armish , atari , aviion ,
782 .No beagle , bebox , cats , cesfic , cobalt , dreamcast ,
783 .No emips , evbarm , evbmips , evbppc , evbsh3 , ews4800mips ,
784 .No hp300 , hp700 , hpcarm , hpcmips , hpcsh , hppa , hppa64 ,
785 .No i386 , ia64 , ibmnws , iyonix , landisk , loongson , luna68k , luna88k ,
786 .No m68k , mac68k , macppc , mips , mips64 , mipsco , mmeye ,
787 .No mvme68k , mvme88k , mvmeppc , netwinder , news68k , newsmips , next68k ,
788 .No ofppc , palm , pc532 , playstation2 , pmax , pmppc , powerpc , prep ,
789 .No rs6000 , sandpoint , sbmips , sgi , sgimips , sh3 , shark ,
790 .No socppc , solbourne , sparc , sparc64 , sun2 , sun3 ,
791 .No tahoe , vax , x68k , x86_64 , xen , zaurus
795 If the section number is neither a numeric expression in the range 1 to\~9
796 nor one of the above described keywords, the third parameter is used
797 verbatim as the volume name.
799 In the following examples, the left (which is identical to the right) and
800 the middle part of the manual page header strings are shown.
803 prevents the digit\~7 from being a valid numeric expression.
806 .Bl -tag -width ".Li .Dt\ FOO\ 2\ i386" -compact -offset indent
809 .Ql \*[doc-volume-operating-system] \*[doc-volume-ds-7]
810 .It Li ".Dt FOO 7 bar"
812 .Ql \*[doc-volume-operating-system] \*[doc-volume-ds-7]
813 .It Li ".Dt FOO \e&7 bar"
816 .It Li ".Dt FOO 2 i386"
818 .Ql \*[doc-volume-operating-system]/\*[doc-volume-as-i386] \*[doc-volume-ds-2]
819 .It Li ".Dt FOO \*[q]\*[q] bar"
826 Local, OS-specific additions might be found in the file
828 look for strings named
830 (for the former type) and
832 (for the latter type);
834 then denotes the keyword to be used with the
838 This macro is neither callable nor parsed.
841 .Op Aq operating system
844 If the first parameter is empty,
846 .Sq Tn "\*[doc-operating-system]"
848 This may be overridden in the local configuration file,
850 In general, the name of the operating system should be the common acronym,
855 The release should be the standard release nomenclature for the system
857 In the following table, the possible second arguments for some predefined
858 operating systems are listed.
861 local additions might be defined in
863 look for strings named
864 .Ql operating\-system\-XXX\-YYY ,
867 is the acronym for the operating system and
872 .Bl -tag -width ".No DragonFly" -offset indent
874 7th, 7, III, 3, V, V.2, V.3, V.4
876 3, 4, 4.1, 4.2, 4.3, 4.3t, 4.3T, 4.3r, 4.3R, 4.4
878 0.8, 0.8a, 0.9, 0.9a, 1.0, 1.0a, 1.1, 1.2, 1.2a, 1.2b, 1.2c, 1.2d, 1.2e,
879 1.3, 1.3a, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.6, 1.6.1,
880 1.6.2, 1.6.3, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.1, 3.0, 3.0.1, 3.0.2, 3.0.3,
881 3.1, 3.1.1, 4.0, 4.0.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.1.2, 5.1.3, 5.1.4,
882 5.2, 5.2.1, 5.2.2, 6.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.1, 6.1.1,
885 1.0, 1.1, 1.1.5, 1.1.5.1, 2.0, 2.0.5, 2.1, 2.1.5, 2.1.6, 2.1.7, 2.2, 2.2.1,
886 2.2.2, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 4.0, 4.1,
887 4.1.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.6.2, 4.7, 4.8, 4.9, 4.10, 4.11, 5.0, 5.1,
888 5.2, 5.2.1, 5.3, 5.4, 5.5, 6.0, 6.1, 6.2, 6.3, 6.4, 7.0, 7.1, 7.2, 7.3, 7.4,
889 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 9.2, 9.3, 10.0
891 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4,
892 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9,
893 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6
895 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.8, 1.8.1, 1.9, 1.10, 1.12, 1.12.2,
896 1.13, 2.0, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.9.1, 2.10, 2.10.1,
897 2.11, 2.12, 2.13, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8
899 8.0.0, 8.1.0, 8.2.0, 8.3.0, 8.4.0, 8.5.0, 8.6.0, 8.7.0, 8.8.0, 8.9.0,
900 8.10.0, 8.11.0, 9.0.0, 9.1.0, 9.2.0, 9.3.0, 9.4.0, 9.5.0, 9.6.0, 9.7.0,
901 9.8.0, 10.1.0, 10.2.0, 10.3.0, 10.4.0, 10.5.0, 10.6.0, 10.7.0, 10.8.0,
902 11.0.0, 11.1.0, 11.2.0, 11.3.0, 11.4.0, 11.5.0, 12.0.0, 12.1.0, 12.2.0,
903 13.0.0, 13.1.0, 13.2.0, 13.3.0, 13.4.0, 14.0.0
910 an unknown second parameter will be replaced with the string
912 for the other predefined acronyms it will be ignored and a warning message
914 Unrecognized arguments are displayed as given in the page footer.
915 For instance, a typical footer might be:
920 .Ql 4.3\~Berkeley Distribution ,
921 or for a locally produced set
923 .Dl .Os CS Department
930 macro is not present, the bottom left corner of the manual page will be
933 This macro is neither callable nor parsed.
944 is used for the date string.
945 If it has exactly three arguments, they are concatenated, separated with
948 .Dl .Dd January 25, 2001
950 The month's name shall not be abbreviated.
952 With any other number of arguments, the current date is used, ignoring
955 As a special exception, the format
956 .Bd -filled -offset indent
967 manuals to automatically insert the current date when committing.
969 This macro is neither callable nor parsed.
973 .Sh "INTRODUCTION OF MANUAL AND GENERAL TEXT DOMAINS"
975 .Ss "What's in a Name" Ns ...
977 The manual domain macro names are derived from the day to day informal
978 language used to describe commands, subroutines and related files.
979 Slightly different variations of this language are used to describe the
980 three different aspects of writing a man page.
981 First, there is the description of
984 Second is the description of a
989 macros, and third, the description of a command to a user in the verbal
990 sense; that is, discussion of a command in the text of a man page.
994 macros are themselves a type of command; the general syntax for a troff
997 .Bd -filled -offset indent
998 .Li ".Xx argument1 argument2" ...
1003 is a macro command, and anything following it are arguments to
1005 In the second case, the description of a
1007 command using the content macros is a bit more involved; a typical
1009 command line might be displayed as:
1011 .Bd -filled -offset indent
1014 .Ao Ar infile Ac Ao Ar outfile Ac
1020 is the command name and the
1025 argument designated as optional by the option brackets.
1033 .Em meta arguments ;
1034 in this example, the user has to replace the meta expressions given in angle
1035 brackets with real file names.
1036 Note that in this document meta arguments are used to describe
1038 commands; in most man pages, meta variables are not specifically written
1039 with angle brackets.
1040 The macros which formatted the above example:
1042 .Bd -literal -offset indent
1045 \&.Ao Ar infile Ac Ao Ar outfile Ac
1049 In the third case, discussion of commands and command syntax includes both
1050 examples above, but may add more detail.
1055 from the example above might be referred to as
1058 .Em file arguments .
1059 Some command-line argument lists are quite long:
1062 .Bl -tag -width ".Nm make" -offset indent -compact
1065 .Op Fl D Ar variable
1067 .Op Fl f Ar makefile
1068 .Op Fl I Ar directory
1069 .Op Fl j Ar max_jobs
1070 .Op Ar variable Ns = Ns Ar value
1078 Here one might talk about the command
1080 and qualify the argument,
1082 as an argument to the flag,
1084 or discuss the optional file operand
1086 In the verbal context, such detail can prevent confusion, however the
1088 package does not have a macro for an argument
1093 argument macro is used for an operand or file argument like
1095 as well as an argument to a flag like
1097 The make command line was produced from:
1099 .Bd -literal -offset indent
1102 \&.Op Fl D Ar variable
1104 \&.Op Fl f Ar makefile
1105 \&.Op Fl I Ar directory
1106 \&.Op Fl j Ar max_jobs
1107 \&.Op Ar variable Ns = Ns Ar value
1118 macros are explained in
1121 .Ss "General Syntax"
1123 The manual domain and general text domain macros share a similar syntax with
1124 a few minor deviations; most notably,
1130 differ only when called without arguments; and
1134 impose an order on their argument lists.
1135 All content macros are capable of recognizing and properly handling
1136 punctuation, provided each punctuation character is separated by a leading
1138 If a command is given:
1140 .Dl \&.Ar sptr, ptr),
1146 The punctuation is not recognized and all is output in the
1149 If the punctuation is separated by a leading white space:
1151 .Dl \&.Ar "sptr , ptr ) ,"
1155 .Dl Ar sptr , ptr ) ,
1157 The punctuation is now recognized and output in the default font
1158 distinguishing it from the argument strings.
1159 To remove the special meaning from a punctuation character escape it with
1162 The following punctuation characters are recognized by
1165 .Bl -column -offset indent-two XXXXXX XXXXXX XXXXXX XXXXXX
1166 .It Li .\& Ta Li ,\& Ta Li :\& Ta Li ;\& Ta Li (\&
1167 .It Li )\& Ta Li [\& Ta Li ]\& Ta Li ?\& Ta Li !\&
1172 is limited as a macro language, and has difficulty when presented with a
1173 string containing a member of the mathematical, logical or quotation set:
1175 .Bd -literal -offset indent-two
1176 {+,\-,/,*,%,<,>,<=,>=,=,==,&,`,',"}
1182 may assume it is supposed to actually perform the operation or evaluation
1183 suggested by the characters.
1184 To prevent the accidental evaluation of these characters, escape them with
1186 Typical syntax is shown in the first content macro displayed below,
1194 The address macro identifies an address construct.
1196 .Dl Usage: .Ad Ao address Ac ...
1198 .Bl -tag -width ".Li .Ad\ f1\ ,\ f2\ ,\ f3\ :" -compact -offset 15n
1201 .It Li ".Ad addr1 ."
1203 .It Li ".Ad addr1 , file2"
1205 .It Li ".Ad f1 , f2 , f3 :"
1207 .It Li ".Ad addr ) ) ,"
1212 The default width is 12n.
1218 macro is used to specify the name of the author of the item being
1219 documented, or the name of the author of the actual manual page.
1221 .Dl Usage: .An Ao author name Ac ...
1223 .Bl -tag -width ".Li .An\ \*[q]Joe\ Author\*[q]\ )\ )\ ," -offset 15n
1224 .It Li ".An \*[q]Joe Author\*[q]"
1226 .It Li ".An \*[q]Joe Author\*[q] ,"
1228 .It Li ".An \*[q]Joe Author\*[q] Aq nobody@FreeBSD.org"
1229 .An "Joe Author" Aq nobody@FreeBSD.org
1230 .It Li ".An \*[q]Joe Author\*[q] ) ) ,"
1231 .An "Joe Author" ) ) ,
1235 The default width is 12n.
1241 command causes a line break allowing each new name to appear on its own
1243 If this is not desirable,
1245 .Bd -literal -offset indent
1250 call will turn this off.
1251 To turn splitting back on, write
1253 .Bd -literal -offset indent
1261 argument macro may be used whenever an argument is referenced.
1262 If called without arguments, the
1266 .Dl Usage: .Ar Oo Ao argument Ac Oc ...
1268 .Bl -tag -width ".Li .Ar\ file1\ file2" -compact -offset 15n
1273 .It Li ".Ar file1 ."
1275 .It Li ".Ar file1 file2"
1277 .It Li ".Ar f1 f2 f3 :"
1279 .It Li ".Ar file ) ) ,"
1284 The default width is 12n.
1286 .Ss "Configuration Declaration (Section Four Only)"
1290 macro is used to demonstrate a
1292 declaration for a device interface in a section four manual.
1294 .Dl Usage: .Cd Ao argument Ac ...
1296 .Bl -tag -width ".Li .Cd\ Xdevice\ le0\ at\ scode?X" -offset 15n
1297 .It Li ".Cd \*[q]device le0 at scode?\*[q]"
1298 .Cd "device le0 at scode?"
1305 command causes a line break before and after its arguments are printed.
1308 The default width is 12n.
1310 .Ss "Command Modifiers"
1312 The command modifier is identical to the
1314 (flag) command with the exception that the
1316 macro does not assert a dash in front of every argument.
1317 Traditionally flags are marked by the preceding dash, however, some commands
1318 or subsets of commands do not use them.
1319 Command modifiers may also be specified in conjunction with interactive
1320 commands such as editor commands.
1324 The default width is 10n.
1326 .Ss "Defined Variables"
1328 A variable (or constant) which is defined in an include file
1329 is specified by the macro
1332 .Dl Usage: .Dv Ao defined variable Ac ...
1334 .Bl -tag -width ".Li .Dv\ MAXHOSTNAMELEN" -compact -offset 15n
1335 .It Li ".Dv MAXHOSTNAMELEN"
1337 .It Li ".Dv TIOCGPGRP )"
1342 The default width is 12n.
1348 errno macro specifies the error return value for section 2, 3, and\~9 library
1350 The second example below shows
1354 general text domain macro, as it would be used in a section two manual page.
1356 .Dl Usage: .Er Ao errno type Ac ...
1358 .Bl -tag -width ".Li .Bq\ Er\ ENOTDIR" -compact -offset 15n
1361 .It Li ".Er ENOENT ) ;"
1363 .It Li ".Bq Er ENOTDIR"
1368 The default width is 17n.
1370 .Ss "Environment Variables"
1374 macro specifies an environment variable.
1376 .Dl Usage: .Ev Ao argument Ac ...
1378 .Bl -tag -width ".Li .Ev\ PRINTER\ )\ )\ ," -compact -offset 15n
1379 .It Li ".Ev DISPLAY"
1383 .It Li ".Ev PRINTER ) ) ,"
1388 The default width is 15n.
1394 macro handles command-line flags.
1398 For interactive command flags, which are not prepended with a dash, the
1401 macro is identical, but without the dash.
1403 .Dl Usage: .Fl Ao argument Ac ...
1405 .Bl -tag -width ".Li .Fl\ xyz\ )\ ," -compact -offset 15n
1418 .It Li ".Fl xyz ) ,"
1426 macro without any arguments results in a dash representing stdin/stdout.
1429 a single dash will result in two dashes.
1431 The default width is 12n.
1433 .Ss "Function Declarations"
1437 macro is used in the
1439 section with section two or three functions.
1440 It is neither callable nor parsed.
1442 .Dl Usage: .Fd Ao argument Ac ...
1444 .Bl -tag -width ".Li .Fd\ X#include\ <sys/types.h>X" -compact -offset 15n
1445 .It Li ".Fd \*[q]#include <sys/types.h>\*[q]"
1446 .Fd "#include <sys/types.h>"
1453 command causes a line break if a function has already been presented and a
1454 break has not occurred.
1455 This leaves a nice vertical space in between the previous function call and
1456 the declaration for the next function.
1463 section, represents the
1465 statement, and is the short form of the above example.
1466 It specifies the C\~header file as being included in a C\~program.
1467 It also causes a line break.
1471 section, it represents the header file enclosed in angle brackets.
1473 .Dl Usage: .In Ao header file Ac
1475 .Bl -tag -width ".Li .In\ stdio.h" -compact -offset 15n
1476 .nr in-synopsis-section 1
1477 .It Li ".In stdio.h"
1479 .nr in-synopsis-section 0
1480 .It Li ".In stdio.h"
1484 .Ss "Function Types"
1486 This macro is intended for the
1489 It may be used anywhere else in the man page without problems, but its main
1490 purpose is to present the function type in kernel normal form for the
1492 of sections two and three (it causes a line break, allowing the function
1493 name to appear on the next line).
1495 .Dl Usage: .Ft Ao type Ac ...
1497 .Bl -tag -width ".Li .Ft\ struct\ stat" -compact -offset 15n
1498 .It Li ".Ft struct stat"
1502 .Ss "Functions (Library Routines)"
1510 .Dl Usage: .Fn Ao function Ac Oo Ao parameter Ac Oc ...
1512 .Bl -tag -width ".Li .Fn\ align\ Xchar\ *ptrX\ ," -compact -offset 15n
1513 .It Li ".Fn getchar"
1515 .It Li ".Fn strlen ) ,"
1517 .It Li ".Fn align \*[q]char *ptr\*[q] ,"
1518 .Fn align "char *ptr" ,
1521 Note that any call to another macro signals the end of the
1523 call (it will insert a closing parenthesis at that point).
1525 For functions with many parameters (which is rare), the macros
1533 (function argument).
1537 .Bd -literal -offset indent
1546 \&.Fa "struct rrec *newrr"
1555 .Bd -ragged -offset indent
1564 .Fa "struct rrec *newrr"
1573 section, the function will always begin at the beginning of line.
1574 If there is more than one function presented in the
1576 section and a function type has not been given, a line break will occur,
1577 leaving a nice vertical space between the current function name and the one
1580 The default width values of
1584 are 12n and 16n, respectively.
1586 .Ss "Function Arguments"
1590 macro is used to refer to function arguments (parameters) outside of the
1592 section of the manual or inside the
1594 section if the enclosure macros
1602 may also be used to refer to structure members.
1604 .Dl Usage: .Fa Ao function argument Ac ...
1606 .Bl -tag -width ".Li .Fa\ d_namlen\ )\ )\ ," -compact -offset 15n
1607 .It Li ".Fa d_namlen ) ) ,"
1609 .It Li ".Fa iov_len"
1614 The default width is 12n.
1620 macro generates text for use in the
1624 .Dl Usage: .Rv Oo \-std Oc Op Ao function Ac ...
1627 .Ql ".Rv \-std atexit"
1630 .Bd -ragged -offset indent
1631 \# a small hack to suppress a warning message
1632 .ds doc-section-old "\*[doc-section]
1635 .ds doc-section "\*[doc-section-old]
1641 option is valid only for manual page sections\~2 and\~3.
1642 Currently, this macro does nothing if used without the
1650 macro generates text for use in the
1654 .Dl Usage: .Ex Oo \-std Oc Op Ao utility Ac ...
1660 .Bd -ragged -offset indent
1661 \# a small hack to suppress a warning message
1662 .ds doc-section-old "\*[doc-section]
1665 .ds doc-section "\*[doc-section-old]
1671 option is valid only for manual page sections 1, 6 and\~8.
1672 Currently, this macro does nothing if used without the
1676 .Ss "Interactive Commands"
1680 macro designates an interactive or internal command.
1682 .Dl Usage: .Ic Ao argument Ac ...
1684 .Bl -tag -width ".Li .Ic\ setenv\ ,\ unsetenv" -compact -offset 15n
1687 .It Li ".Ic \*[q]do while {...}\*[q]"
1688 .Ic "do while {...}"
1689 .It Li ".Ic setenv , unsetenv"
1690 .Ic setenv , unsetenv
1694 The default width is 12n.
1700 macro is used to specify the library where a particular function is compiled
1703 .Dl Usage: .Lb Ao argument Ac ...
1705 Available arguments to
1707 and their results are:
1710 .Bl -tag -width ".Li librpcsec_gss" -compact -offset indent
1817 .It Li librpcsec_gss
1854 Local, OS-specific additions might be found in the file
1856 look for strings named
1859 then denotes the keyword to be used with the
1867 command causes a line break before and after its arguments are printed.
1874 literal macro may be used for special characters, variable constants, etc.\&
1875 \- anything which should be displayed as it would be typed.
1877 .Dl Usage: .Li Ao argument Ac ...
1879 .Bl -tag -width ".Li .Li\ cntrl\-D\ )\ ," -compact -offset 15n
1882 .It Li ".Li M1 M2 M3 ;"
1884 .It Li ".Li cntrl\-D ) ,"
1886 .It Li ".Li 1024 ..."
1891 The default width is 16n.
1897 macro is used for the document title or subject name.
1898 It has the peculiarity of remembering the first argument it was called with,
1899 which should always be the subject name of the page.
1900 When called without arguments,
1902 regurgitates this initial name for the sole purpose of making less work for
1905 causes a line break within the
1909 Note: A section two or three document function name is addressed with the
1917 and remaining sections.
1918 For interactive commands, such as the
1924 macro should be used.
1930 it can not recall the first argument it was invoked with.
1932 .Dl Usage: .Nm Oo Ao argument Ac Oc ...
1934 .Bl -tag -width ".Li .Nm\ groff_mdoc" -compact -offset 15n
1935 .It Li ".Nm groff_mdoc"
1937 .It Li ".Nm \e\-mdoc"
1939 .It Li ".Nm foo ) ) ,"
1946 The default width is 10n.
1952 macro places option brackets around any remaining arguments on the
1953 command line, and places any trailing punctuation outside the brackets.
1958 (which produce an opening and a closing option bracket respectively) may be used
1959 across one or more lines or to specify the exact position of the closing
1962 .Dl Usage: .Op Oo Ao option Ac Oc ...
1964 .Bl -tag -width ".Li .Op\ Fl\ c\ Ar\ objfil\ Op\ Ar\ corfil\ ," -compact -offset 15n
1969 .It Li ".Op Fl k ) ."
1971 .It Li ".Op Fl k Ar kookfile"
1972 .Op Fl k Ar kookfile
1973 .It Li ".Op Fl k Ar kookfile ,"
1974 .Op Fl k Ar kookfile ,
1975 .It Li ".Op Ar objfil Op Ar corfil"
1976 .Op Ar objfil Op Ar corfil
1977 .It Li ".Op Fl c Ar objfil Op Ar corfil ,"
1978 .Op Fl c Ar objfil Op Ar corfil ,
1979 .It Li ".Op word1 word2"
1981 .It Li ".Li .Op Oo Ao option Ac Oc ..."
1982 .Li .Op Oo Ao option Ac Oc ...
1985 Here a typical example of the
1991 .Bd -literal -offset indent
1993 \&.Op Fl k Ar kilobytes
1994 \&.Op Fl i Ar interval
2002 .Bd -filled -offset indent
2004 .Op Fl k Ar kilobytes
2005 .Op Fl i Ar interval
2011 The default width values of
2015 are 14n and 10n, respectively.
2021 macro formats path or file names.
2022 If called without arguments, the
2024 string is output, which represents the current user's home directory.
2026 .Dl Usage: .Pa Oo Ao pathname Ac Oc ...
2028 .Bl -tag -width ".Li .Pa\ /tmp/fooXXXXX\ )\ ." -compact -offset 15n
2031 .It Li ".Pa /usr/share"
2033 .It Li ".Pa /tmp/fooXXXXX ) ."
2034 .Pa /tmp/fooXXXXX ) .
2038 The default width is 32n.
2044 macro replaces standard abbreviations with their formal names.
2046 .Dl Usage: .St Ao abbreviation Ac ...
2049 .Dq Abbreviation/Formal Name
2055 .Bl -tag -width ".Li \-p1003.1g\-2000" -compact -offset indent
2074 .Bl -tag -width ".Li \-p1003.1g\-2000" -compact -offset indent
2075 .It Li \-iso9945\-1\-90
2077 .It Li \-iso9945\-1\-96
2081 .It Li \-p1003.1\-88
2083 .It Li \-p1003.1\-90
2085 .It Li \-p1003.1\-96
2087 .It Li \-p1003.1b\-93
2089 .It Li \-p1003.1c\-95
2091 .It Li \-p1003.1g\-2000
2093 .It Li \-p1003.1i\-95
2095 .It Li \-p1003.1\-2001
2097 .It Li \-p1003.1\-2004
2099 .It Li \-p1003.1\-2008
2105 Part 2: Shell and Utilities
2107 .Bl -tag -width ".Li \-p1003.1g\-2000" -compact -offset indent
2108 .It Li \-iso9945\-2\-93
2112 .It Li \-p1003.2\-92
2114 .It Li \-p1003.2a\-92
2121 .Bl -tag -width ".Li \-p1003.1g\-2000" -compact -offset indent
2151 .Bl -tag -width ".Li \-p1003.1g\-2000" -compact -offset indent
2160 .Ss "Variable Types"
2164 macro may be used whenever a type is referenced.
2167 section, it causes a line break (useful for old style variable declarations).
2169 .Dl Usage: .Vt Ao type Ac ...
2171 .Bl -tag -width ".Li .Vt\ extern\ char\ *optarg\ ;" -compact -offset 15n
2172 .It Li ".Vt extern char *optarg ;"
2173 .Vt extern char *optarg ;
2180 Generic variable reference.
2182 .Dl Usage: .Va Ao variable Ac ...
2184 .Bl -tag -width ".Li .Va\ Xchar\ sX\ ]\ )\ )\ ," -compact -offset 15n
2187 .It Li ".Va settimer ,"
2189 .It Li ".Va \*[q]int *prt\*[q] ) :"
2191 .It Li ".Va \*[q]char s\*[q] ] ) ) ,"
2192 .Va "char s" ] ) ) ,
2196 The default width is 12n.
2198 .Ss "Manual Page Cross References"
2202 macro expects the first argument to be a manual page name.
2203 The optional second argument, if a string (defining the manual section), is
2204 put into parentheses.
2206 .Dl Usage: .Xr Ao man page name Ac Oo Ao section Ac Oc ...
2208 .Bl -tag -width ".Li .Xr\ xinit\ 1x\ ;" -compact -offset 15n
2215 .It Li ".Xr xinit 1x ;"
2220 The default width is 10n.
2223 .Sh "GENERAL TEXT DOMAIN"
2228 .Dl Usage: .At Oo Ao version Ac Oc ...
2230 .Bl -tag -width ".Li .At\ v6\ ." -compact -offset 15n
2237 The following values for
2241 .Dl 32v, v1, v2, v3, v4, v5, v6, v7, III, V, V.1, V.2, V.3, V.4
2246 .Dl "Usage: .Bx" Bro \-alpha | \-beta | \-devel Brc ...
2247 .Dl " .Bx" Oo Ao version Ac Oo Ao release Ac Oc Oc ...
2249 .Bl -tag -width ".Li .Bx\ -devel" -compact -offset 15n
2254 .It Li ".Bx \-devel"
2259 will be prepended to the string
2261 The following values for
2265 .Dl Reno, reno, Tahoe, tahoe, Lite, lite, Lite2, lite2
2270 .Dl Usage: .Nx Oo Ao version Ac Oc ...
2272 .Bl -tag -width ".Li .Nx\ 1.4\ ." -compact -offset 15n
2279 For possible values of
2281 see the description of the
2283 command above in section
2284 .Sx "TITLE MACROS" .
2289 .Dl Usage: .Fx Oo Ao version Ac Oc ...
2291 .Bl -tag -width ".Li .Fx\ 2.2\ ." -compact -offset 15n
2298 For possible values of
2300 see the description of the
2302 command above in section
2303 .Sx "TITLE MACROS" .
2305 .Ss "DragonFly Macro"
2308 .Dl Usage: .Dx Oo Ao version Ac Oc ...
2310 .Bl -tag -width ".Li .Dx\ 1.4\ ." -compact -offset 15n
2317 For possible values of
2319 see the description of the
2321 command above in section
2322 .Sx "TITLE MACROS" .
2327 .Dl Usage: .Ox Oo Ao version Ac Oc ...
2329 .Bl -tag -width ".Li .Ox\ 1.0" -compact -offset 15n
2337 .Dl Usage: .Bsx Oo Ao version Ac Oc ...
2339 .Bl -tag -width ".Li .Bsx\ 1.0" -compact -offset 15n
2349 .Bl -tag -width ".Li .Ux" -compact -offset 15n
2354 .Ss "Emphasis Macro"
2356 Text may be stressed or emphasized with the
2359 The usual font for emphasis is italic.
2361 .Dl Usage: .Em Ao argument Ac ...
2363 .Bl -tag -width ".Li .Em\ vide\ infra\ )\ )\ ," -compact -offset 15n
2364 .It Li ".Em does not"
2366 .It Li ".Em exceed 1024 ."
2368 .It Li ".Em vide infra ) ) ,"
2369 .Em vide infra ) ) ,
2373 The default width is 10n.
2379 font mode must be ended with the
2381 macro (the latter takes no arguments).
2382 Font modes may be nested within other font modes.
2385 has the following syntax:
2387 .Dl .Bf Ao font mode Ac
2390 must be one of the following three types:
2392 .Bl -tag -width ".Sy \&Sy | Fl symbolic" -compact -offset indent
2393 .It Sy \&Em | Fl emphasis
2396 macro was used for the entire block of text.
2397 .It Sy \&Li | Fl literal
2400 macro was used for the entire block of text.
2401 .It Sy \&Sy | Fl symbolic
2404 macro was used for the entire block of text.
2407 Both macros are neither callable nor parsed.
2409 .Ss "Enclosure and Quoting Macros"
2411 The concept of enclosure is similar to quoting.
2412 The object being to enclose one or more strings between a pair of characters
2413 like quotes or parentheses.
2414 The terms quoting and enclosure are used interchangeably throughout this
2416 Most of the one-line enclosure macros end in small letter
2418 to give a hint of quoting, but there are a few irregularities.
2419 For each enclosure macro there is also a pair of open and close macros which
2420 end in small letters
2433 Quote Open Close Function Result
2434 \&.Aq .Ao .Ac Angle Bracket Enclosure <string>
2435 \&.Bq .Bo .Bc Bracket Enclosure [string]
2436 \&.Brq .Bro .Brc Brace Enclosure {string}
2437 \&.Dq .Do .Dc Double Quote "string"
2438 \&.Eq .Eo .Ec Enclose String (in XX) XXstring
2439 \&.Pq .Po .Pc Parenthesis Enclosure (string)
2440 \&.Ql Quoted Literal \*[Lq]string\*[Rq] or string
2441 \&.Qq .Qo .Qc Straight Double Quote "string"
2442 \&.Sq .So .Sc Single Quote 'string'
2445 All macros ending with
2449 have a default width value of 12n.
2451 .Bl -tag -width ".Li .Ec , .Eo"
2453 These macros expect the first argument to be the opening and closing strings
2456 Due to the nine-argument limit in the original troff program two other
2457 macros have been implemented which are now rather obsolete:
2459 takes the first and second parameter as the left and right enclosure string,
2460 which are then used to enclose the arguments of
2462 The default width value is 12n for both macros.
2464 The first and second arguments of this macro are the opening and
2465 closing strings respectively, followed by the arguments to be enclosed.
2467 The quoted literal macro behaves differently in troff and nroff mode.
2470 a quoted literal is always quoted.
2471 If formatted with troff, an item is only quoted if the width of the item is
2472 less than three constant width characters.
2473 This is to make short strings more visible where the font change to literal
2474 (constant width) is less noticeable.
2476 The default width is 16n.
2478 The prefix macro suppresses the whitespace between its first and second
2481 .Bl -tag -width ".Li .Pf\ (\ Fa\ name2" -offset indent
2482 .It Li ".Pf ( Fa name2"
2487 The default width is 12n.
2491 macro (see below) performs the analogous suffix function.
2495 macro inserts an apostrophe and exits any special text modes, continuing in
2501 Examples of quoting:
2504 .Bl -tag -width ".Li .Bq\ Em\ Greek\ ,\ French\ ." -compact -offset indent
2507 .It Li ".Aq Pa ctype.h ) ,"
2511 .It Li ".Bq Em Greek , French ."
2512 .Bq Em Greek , French .
2515 .It Li ".Dq string abc ."
2517 .It Li ".Dq \'^[A\-Z]\'"
2519 .It Li ".Ql man mdoc"
2523 .It Li ".Qq string ) ,"
2525 .It Li ".Qq string Ns ),"
2531 .It Li ".Em or Ap ing"
2536 For a good example of nested enclosure macros, see the
2539 It was created from the same underlying enclosure macros as those presented
2545 extended argument list macros are discussed below.
2547 .Ss "No-Op or Normal Text Macro"
2551 macro can be used in a macro command line for parameters which should
2558 if you really want that English word (and not the macro) as a parameter.
2560 .Dl Usage: .No Ao argument Ac ...
2562 .Bl -tag -width ".Li .No\ test\ Ta\ with\ Ta\ tabs" -compact -offset 15n
2563 .It Li ".No test Ta with Ta tabs"
2564 .No test Ta with Ta tabs
2568 The default width is 12n.
2570 .Ss "No-Space Macro"
2574 macro suppresses insertion of a space between the current position and its
2576 For example, it is useful for old style argument lists where there is no
2577 space between the flag and argument:
2579 .Dl "Usage:" ... Ao argument Ac \&Ns Oo Ao argument Ac Oc ...
2580 .Dl " " .Ns Ao argument Ac ...
2582 .Bl -tag -width ".Li .Op\ Fl\ I\ Ns\ Ar\ directory" -compact -offset 15n
2583 .It Li ".Op Fl I Ns Ar directory"
2584 .Op Fl I Ns Ar directory
2589 macro always invokes the
2591 macro after eliminating the space unless another macro name follows it.
2592 If used as a command (i.e., the second form above in the
2599 .Ss "Section Cross References"
2603 macro designates a reference to a section header within the same document.
2605 .Dl Usage: .Sx Ao section reference Ac ...
2607 .Bl -tag -width ".Li .Sx\ FILES" -offset 15n
2613 The default width is 16n.
2617 The symbolic emphasis macro is generally a boldface macro in either the
2618 symbolic sense or the traditional English usage.
2620 .Dl Usage: .Sy Ao symbol Ac ...
2622 .Bl -tag -width ".Li .Sy\ Important\ Notice" -compact -offset 15n
2623 .It Li ".Sy Important Notice"
2624 .Sy Important Notice
2628 The default width is 6n.
2630 .Ss Mathematical Symbols
2632 Use this macro for mathematical symbols and similar things.
2634 .Dl Usage: .Ms Ao math symbol Ac ...
2636 .Bl -tag -width ".Li .Ms\ sigma" -compact -offset 15n
2642 The default width is 6n.
2644 .Ss "References and Citations"
2646 The following macros make a modest attempt to handle references.
2647 At best, the macros make it convenient to manually drop in a subset of
2651 .Bl -tag -width 6n -offset indent -compact
2653 Reference start (does not take arguments).
2654 Causes a line break in the
2656 section and begins collection of reference information until the reference
2659 Reference end (does not take arguments).
2660 The reference is printed.
2662 Reference author name; one name per invocation.
2670 Issuer/publisher name.
2676 Optional information.
2680 Corporate or foreign author.
2686 Optional hypertext reference.
2691 Macros beginning with
2693 are not callable but accept multiple arguments in the usual way.
2696 macro is handled properly as a parameter; other macros will cause strange
2701 can be used outside of the
2707 .Bd -literal -offset indent
2711 \&.%T "Implementation Notes on foobar(1)"
2712 \&.%R "Technical Report ABC\-DE\-12\-345"
2713 \&.%Q "Drofnats College"
2721 .Bd -ragged -offset indent
2725 .%T "Implementation Notes on foobar(1)"
2726 .%R "Technical Report ABC-DE-12-345"
2727 .%Q "Drofnats College"
2733 .Ss "Trade Names (or Acronyms and Type Names)"
2735 The trade name macro prints its arguments in a smaller font.
2736 Its intended use is to imitate a small caps fonts for uppercase acronyms.
2738 .Dl Usage: .Tn Ao symbol Ac ...
2740 .Bl -tag -width ".Li .Tn\ ASCII" -compact -offset 15n
2748 The default width is 10n.
2750 .Ss "Extended Arguments"
2756 macros allow one to extend an argument list on a macro boundary for the
2763 are implemented similarly to all other macros opening and closing an
2764 enclosure (without inserting characters, of course).
2765 This means that the following is true for those macros also.
2767 Here is an example of
2769 using the space mode macro to turn spacing off:
2771 .Bd -literal -offset indent
2773 \&.It Xo Sy I Ar operation
2774 \&.No \een Ar count No \een
2782 .Bd -filled -offset indent
2785 .It Xo Sy I Ar operation
2786 .No \en Ar count No \en
2795 .Bd -literal -offset indent
2797 \&.It Cm S No / Ar old_pattern Xo
2798 \&.No / Ar new_pattern
2807 .Bd -filled -offset indent
2810 .It Cm S No \&/ Ar old_pattern Xo
2811 .No \&/ Ar new_pattern
2821 and enclosure macros: Test the value of a variable.
2823 .Bd -literal -offset indent
2826 \&.Oo \e&! Oc Ns Ar variable Oo
2827 \&.Ar operator variable ...
2834 .Bd -filled -offset indent
2835 .Bl -tag -width flag -compact
2838 .Oo \&! Oc Ns Ar variable Oo
2839 .Ar operator variable ...
2846 .Sh "PAGE STRUCTURE DOMAIN"
2848 .Ss "Section Headers"
2852 section header macros are required in every man page.
2853 The remaining section headers are recommended at the discretion of the
2854 author writing the manual page.
2857 macro is parsed but not generally callable.
2858 It can be used as an argument in a call to
2860 only; it then reactivates the default font for
2863 The default width is 8n.
2865 .Bl -tag -width ".Li .Sh\ RETURN\ VALUES"
2870 If not specified, headers, footers and page layout defaults will not be set
2871 and things will be rather unpleasant.
2874 section consists of at least three items.
2877 name macro naming the subject of the man page.
2878 The second is the name description macro,
2880 which separates the subject name from the third item, which is the
2882 The description should be the most terse and lucid possible, as the space
2888 then all its arguments.
2890 .It Li ".Sh LIBRARY"
2891 This section is for section two and three function calls.
2892 It should consist of a single
2896 .Sx "Library Names" .
2898 .It Li ".Sh SYNOPSIS"
2901 section describes the typical usage of the subject of a man page.
2902 The macros required are either
2913 The function name macro
2915 is required for manual page sections\~2 and\~3; the command and general name
2918 is required for sections 1, 5, 6, 7, and\~8.
2919 Section\~4 manuals require a
2924 configuration device usage macro.
2925 Several other macros may be necessary to produce the synopsis line as shown
2928 .Bd -filled -offset indent
2936 The following macros were used:
2939 .Dl ".Op Fl benstuv"
2943 .It Li ".Sh DESCRIPTION"
2944 In most cases the first text in the
2946 section is a brief paragraph on the command, function or file, followed by a
2947 lexical list of options and respective explanations.
2948 To create such a list, the
2955 macros are used (see
2956 .Sx Lists and Columns
2959 .It Li ".Sh IMPLEMENTATION NOTES"
2960 Implementation specific information should be placed here.
2962 .It Li ".Sh RETURN VALUES"
2963 Sections 2, 3 and\~9 function return values should go here.
2966 macro may be used to generate text for use in the
2968 section for most section 2 and 3 library functions;
2970 .Sx "Return Values" .
2976 section headers are part of the preferred manual page layout and must be
2977 used appropriately to maintain consistency.
2978 They are listed in the order in which they would be used.
2980 .Bl -tag -width ".Li .Sh\ COMPATIBILITY"
2981 .It Li ".Sh ENVIRONMENT"
2984 section should reveal any related environment variables and clues to their
2985 behavior and/or usage.
2988 Files which are used or created by the man page subject should be listed via
2995 .It Li ".Sh EXAMPLES"
2996 There are several ways to create examples.
2998 .Sx "Examples and Displays"
2999 section below for details.
3001 .It Li ".Sh DIAGNOSTICS"
3002 Diagnostic messages from a command should be placed in this section.
3005 macro may be used to generate text for use in the
3007 section for most section 1, 6 and\~8 commands;
3011 .It Li ".Sh COMPATIBILITY"
3012 Known compatibility issues (e.g.\& deprecated options or parameters)
3013 should be listed here.
3016 Specific error handling, especially from library functions (man page
3017 sections 2, 3, and\~9) should go here.
3020 macro is used to specify an error (errno).
3022 .It Li ".Sh SEE ALSO"
3023 References to other material on the man page topic and cross references to
3024 other relevant man pages should be placed in the
3027 Cross references are specified using the
3032 style references are not accommodated.
3034 It is recommended that the cross references are sorted on the section
3035 number, then alphabetically on the names within a section, and placed
3036 in that order and comma separated.
3044 .It Li ".Sh STANDARDS"
3045 If the command, library function or file adheres to a specific
3046 implementation such as
3050 this should be noted here.
3051 If the command does not adhere to any standard, its history should be noted
3056 .It Li ".Sh HISTORY"
3057 Any command which does not adhere to any specific standards should be
3058 outlined historically in this section.
3060 .It Li ".Sh AUTHORS"
3061 Credits should be placed here.
3064 macro for names and the
3066 macro for e-mail addresses within optional contact information.
3067 Explicitly indicate whether the person authored the initial manual page
3068 or the software or whatever the person is being credited for.
3070 Blatant problems with the topic go here.
3076 sections may be added; for example, this section was set with:
3078 .Bd -literal -offset 15n
3079 \&.Sh "PAGE STRUCTURE DOMAIN"
3082 .Ss "Subsection Headers"
3084 Subsection headers have exactly the same syntax as section headers:
3086 is parsed but not generally callable.
3087 It can be used as an argument in a call to
3089 only; it then reactivates the default font for
3092 The default width is 8n.
3094 .Ss "Paragraphs and Line Spacing"
3096 .Bl -tag -width ".Li .Pp"
3100 paragraph command may be used to specify a line space where necessary.
3101 The macro is not necessary after a
3109 macro (which both assert a vertical distance unless the
3113 The macro is neither callable nor parsed and takes no arguments; an
3120 .\" This worked with version one, need to redo for version three
3123 .\" .Cw (ax+bx+c) \ is\ produced\ by\ \&
3124 .\" .\".Cw (ax+bx+c) \&.Va_by_) \&_and_\& \&[?/]m_b1_e1_f1[?/]\&
3141 .\" .Em is produced by
3157 .\" This example shows the same equation in a different format.
3161 .\" signs were forced with
3165 .\" .Cw (ax\ +\ bx\ +\ c) \ is\ produced\ by\ \&
3166 .\" .\".Cw (ax+bx+c) \&.Va_by_) \&_and_\& \&[?/]m_b1_e1_f1[?/]\&
3177 .\" .Li \&.Cx \e\ +\e\ \e&
3188 .\" .Em is produced by
3196 .\" .Li \&.Cx \e\ +\e\ \e&
3207 .\" The incantation below was
3213 .\" .Cw \&[?/]m_b1_e1_f1[?/]\& is\ produced\ by
3215 .\" .Li \&.Cx Op Sy ?/
3225 .\" .Em is produced by
3227 .\" .Li \&.Ar \e\ b1 e1 f1
3241 The only keep that is implemented at this time is for words.
3248 The only option that
3250 accepts currently is
3252 (this is also the default if no option is given) which is useful for
3253 preventing line breaks in the middle of options.
3254 In the example for the make command-line arguments (see
3255 .Sx What's in a Name ) ,
3258 from placing up the flag and the argument on separate lines.
3260 Both macros are neither callable nor parsed.
3262 More work needs to be done with the keep macros; specifically, a
3264 option should be added.
3266 .Ss "Examples and Displays"
3268 There are seven types of displays.
3270 .Bl -tag -width ".Li .D1"
3273 Display one line of indented text.
3274 This macro is parsed but not callable.
3278 The above was produced by:
3279 .Li ".D1 Fl ldghfstru" .
3283 Display one line of indented
3288 example macro has been used throughout this file.
3289 It allows the indentation (display) of one line of text.
3290 Its default font is set to constant width (literal).
3292 is parsed but not callable.
3294 .Dl % ls \-ldg /usr/local/bin
3296 The above was produced by:
3297 .Li ".Dl % ls \e\-ldg /usr/local/bin" .
3303 display must be ended with the
3306 It has the following syntax:
3308 .Bd -ragged -compact
3309 .Bl -tag -width ".Li .Bd" -offset indent
3311 .Bro \-literal | \-filled | \-unfilled | \-ragged | \-centered Brc
3312 .Oo \-offset Ao string Ac Oc Oo \-file Ao file name Ac Oc Oo \-compact Oc Xc
3317 .Bl -tag -width ".Fl file Ao Ar file name Ac " -compact
3319 Fill, but do not adjust the right margin (only left-justify).
3321 Center lines between the current left and right margin.
3322 Note that each single line is centered.
3324 Do not fill; display a block of text as typed, using line breaks as
3325 specified by the user.
3326 This can produce overlong lines without warning messages.
3328 Display a filled block.
3329 The block of text is formatted (i.e., the text is justified on both the left
3332 Display block with literal font (usually fixed-width).
3333 Useful for source code or simple tabbed or spaced text.
3334 .It Fl file Ao Ar file name Ac
3335 The file whose name follows the
3337 flag is read and displayed before any data enclosed with
3341 using the selected display type.
3343 .Xr troff/ Ns Nm \-mdoc
3344 commands in the file will be processed.
3345 .It Fl offset Ao Ar string Ac
3348 is specified with one of the following strings, the string is interpreted to
3349 indicate the level of indentation for the forthcoming block of text:
3352 .Bl -tag -width ".Ar indent-two" -compact
3354 Align block on the current left margin; this is the default mode of
3357 Supposedly center the block.
3358 At this time unfortunately, the block merely gets left aligned about an
3359 imaginary center margin.
3361 Indent by one default indent value or tab.
3362 The default indent value is also used for the
3366 macros, so one is guaranteed the two types of displays will line up.
3367 The indentation value is normally set to\~6n or about two thirds of an inch
3368 (six constant width characters).
3370 Indent two times the default indent value.
3374 aligns the block about two inches from the right side of the page.
3375 This macro needs work and perhaps may never do the right thing within
3382 is a valid numeric expression instead
3383 .Pf ( Em with a scale indicator other than
3385 use that value for indentation.
3386 The most useful scale indicators are
3390 specifying the so-called
3394 This is approximately the width of the letters
3399 of the current font (for nroff output, both scale indicators give the same
3403 isn't a numeric expression, it is tested whether it is an
3405 macro name, and the default offset value associated with this macro is used.
3406 Finally, if all tests fail,
3409 (typeset with a fixed-width font) is taken as the offset.
3411 Suppress insertion of vertical space before begin of display.
3415 End display (takes no arguments).
3418 .Ss "Lists and Columns"
3420 There are several types of lists which may be initiated with the
3423 Items within the list are specified with the
3425 item macro, and each list must end with the
3428 Lists may be nested within themselves and within displays.
3429 The use of columns inside of lists or lists inside of columns is unproven.
3431 In addition, several list attributes may be specified such as the width of a
3432 tag, the list offset, and compactness (blank lines between items allowed or
3434 Most of this document has been formatted with a tag style list
3437 It has the following syntax forms:
3440 .Bd -ragged -compact
3441 .Bl -tag -width ".Li .Bl" -offset indent -compact
3443 .Bro \-hang | \-ohang | \-tag | \-diag | \-inset Brc
3444 .Oo \-width Ao string Ac Oc
3445 .Oo \-offset Ao string Ac Oc Oo \-compact Oc Xc
3447 .No \-column Oo \-offset Ao string Ac Oc
3448 .Ao string1 Ac Ao string2 Ac ... Xc
3450 .Bro \-item | \-enum Oo \-nested Oc | \-bullet | \-hyphen | \-dash Brc
3451 .Oo \-offset Ao string Ac Oc Oo \-compact Oc Xc
3456 And now a detailed description of the list types.
3459 .Bl -tag -width ".Fl column" -compact
3463 .Bd -literal -offset indent
3464 \&.Bl \-bullet \-offset indent \-compact
3466 Bullet one goes here.
3476 .Bl -bullet -offset indent -compact
3478 Bullet one goes here.
3484 .It Fl dash No ( or Fl hyphen )
3487 .Bd -literal -offset indent
3488 \&.Bl \-dash \-offset indent \-compact
3500 .Bl -dash -offset indent -compact
3511 .Bd -literal -offset indent
3512 \&.Bl \-enum \-offset indent \-compact
3524 .Bl -enum -offset indent -compact
3532 If you want to nest enumerated lists, use the
3534 flag (starting with the second-level list):
3536 .Bd -literal -offset indent
3537 \&.Bl \-enum \-offset indent \-compact
3540 \&.Bl \-enum \-nested \-compact
3544 And item three here.
3555 .Bl -enum -offset indent -compact
3558 .Bl -enum -nested -compact
3562 And item three here.
3572 without list markers.
3574 .Bd -literal -offset indent
3575 \&.Bl \-item \-offset indent
3591 .Bl -item -offset indent
3607 to specify the tag width.
3610 .Bl -tag -width "PPID" -compact -offset indent
3612 sleep time of the process (seconds blocked)
3616 resulting from references by the process
3617 to pages not loaded in core.
3619 numerical user-id of process owner
3621 numerical id of parent of process priority
3622 (non-positive when in non-interruptible wait)
3628 .Bd -literal -offset indent
3629 \&.Bl \-tag \-width "PPID" \-compact \-offset indent
3631 sleep time of the process (seconds blocked)
3635 resulting from references by the process
3636 to pages not loaded in core.
3638 numerical user\-id of process owner
3640 numerical id of parent of process priority
3641 (non\-positive when in non\-interruptible wait)
3647 Diag lists create section four diagnostic lists and are similar to inset
3648 lists except callable macros are ignored.
3651 flag is not meaningful in this context.
3655 .Bd -literal -offset indent
3657 \&.It You can't use Sy here.
3658 The message says all.
3666 .It You can't use Sy here.
3667 The message says all.
3672 A list with hanging tags.
3674 .Bl -hang -offset indent
3676 labels appear similar to tagged lists when the
3677 label is smaller than the label width.
3678 .It Em Longer hanged list labels
3679 blend into the paragraph unlike
3680 tagged paragraph labels.
3683 And the unformatted text which created it:
3685 .Bd -literal -offset indent
3686 \&.Bl \-hang \-offset indent
3688 labels appear similar to tagged lists when the
3689 label is smaller than the label width.
3690 \&.It Em Longer hanged list labels
3691 blend into the paragraph unlike
3692 tagged paragraph labels.
3698 Lists with overhanging tags do not use indentation for the items; tags are
3699 written to a separate line.
3701 .Bl -ohang -offset indent
3703 sleep time of the process (seconds blocked)
3707 resulting from references by the process
3708 to pages not loaded in core.
3710 numerical user-id of process owner
3712 numerical id of parent of process priority
3713 (non-positive when in non-interruptible wait)
3719 .Bd -literal -offset indent
3720 \&.Bl \-ohang \-offset indent
3722 sleep time of the process (seconds blocked)
3726 resulting from references by the process
3727 to pages not loaded in core.
3729 numerical user\-id of process owner
3731 numerical id of parent of process priority
3732 (non\-positive when in non\-interruptible wait)
3738 Here is an example of inset labels:
3739 .Bl -inset -offset indent
3741 The tagged list (also called a tagged paragraph)
3742 is the most common type of list used in the
3746 attribute as described below.
3748 Diag lists create section four diagnostic lists
3749 and are similar to inset lists except callable
3752 Hanged labels are a matter of taste.
3754 Overhanging labels are nice when space is constrained.
3756 Inset labels are useful for controlling blocks of
3757 paragraphs and are valuable for converting
3759 manuals to other formats.
3762 Here is the source text which produced the above example:
3764 .Bd -literal -offset indent
3765 \&.Bl \-inset \-offset indent
3767 The tagged list (also called a tagged paragraph)
3768 is the most common type of list used in the
3771 Diag lists create section four diagnostic lists
3772 and are similar to inset lists except callable
3775 Hanged labels are a matter of taste.
3777 Overhanging labels are nice when space is constrained.
3779 Inset labels are useful for controlling blocks of
3780 paragraphs and are valuable for converting
3782 manuals to other formats.
3788 This list type generates multiple columns.
3789 The number of columns and the width of each column is determined by the
3800 (dot) immediately followed by a valid
3802 macro name, interpret
3804 and use the width of the result.
3805 Otherwise, the width of
3807 (typeset with a fixed-width font) is taken as the
3813 argument is parsed to make a row, each column within the row is a separate
3814 argument separated by a tab or the
3820 .Bl -column -offset indent ".Sy String" ".Sy Nroff" ".Sy Troff"
3821 .It Sy String Ta Sy Nroff Ta Sy Troff
3822 .It Li <= Ta <= Ta \*(<=
3823 .It Li >= Ta >= Ta \*(>=
3830 \&.Bl \-column \-offset indent ".Sy String" ".Sy Nroff" ".Sy Troff"
3831 \&.It Sy String Ta Sy Nroff Ta Sy Troff
3832 \&.It Li <= Ta <= Ta \e*(<=
3833 \&.It Li >= Ta >= Ta \e*(>=
3838 Don't abuse this list type!
3839 For more complicated cases it might be far better and easier to use
3841 the table preprocessor.
3847 .Bl -tag -width ".Fl indent Ao Ar string Ac"
3848 .It Fl width Ao Ar string Ac
3853 (dot) immediately followed by a valid
3855 macro name, interpret
3857 and use the width of the result.
3858 Almost all lists in this document use this option.
3862 .Bd -literal -offset indent
3863 \&.Bl \-tag \-width ".Fl test Ao Ar string Ac"
3864 \&.It Fl test Ao Ar string Ac
3865 This is a longer sentence to show how the
3867 flag works in combination with a tag list.
3874 .Bl -tag -width ".Fl test Ao Ar string Ac"
3875 .It Fl test Ao Ar string Ac
3876 This is a longer sentence to show how the
3878 flag works in combination with a tag list.
3882 (Note that the current state of
3886 is interpreted; afterwards, all variables are restored again.
3887 However, boxes (used for enclosures) can't be saved in
3890 as a consequence, arguments must always be
3892 to avoid nasty errors.
3893 For example, do not write
3896 .Ql ".Ao Ar string Xc"
3897 instead if you really need only an opening angle bracket.)
3901 is a valid numeric expression
3902 .Em ( with a scale indicator other than
3904 use that value for indentation.
3905 The most useful scale indicators are
3909 specifying the so-called
3913 This is approximately the width of the letters
3918 of the current font (for nroff output, both scale indicators give the same
3922 isn't a numeric expression, it is tested whether it is an
3924 macro name, and the default width value associated with this macro is used.
3925 Finally, if all tests fail,
3928 (typeset with a fixed-width font) is taken as the width.
3930 If a width is not specified for the tag list type,
3933 .It Fl offset Ao Ar string Ac
3938 a default indent value (normally set to\~6n, similar to the value used in
3945 is a valid numeric expression instead
3946 .Pf ( Em with a scale indicator other than
3948 use that value for indentation.
3949 The most useful scale indicators are
3953 specifying the so-called
3957 This is approximately the width of the letters
3962 of the current font (for nroff output, both scale indicators give the same
3966 isn't a numeric expression, it is tested whether it is an
3968 macro name, and the default offset value associated with this macro is used.
3969 Finally, if all tests fail,
3972 (typeset with a fixed-width font) is taken as the offset.
3974 Suppress insertion of vertical space before the list and between list items.
3978 .Sh "MISCELLANEOUS MACROS"
3980 Here a list of the remaining macros which do not fit well into one of the
3982 We couldn't find real examples for the following macros:
3986 They are documented here for completeness \- if you know how to use them
3987 properly please send a mail to
3989 (including an example).
3991 .Bl -tag -width ".Li .Bt"
3995 .Bd -ragged -offset indent
3999 It is neither callable nor parsed and takes no arguments.
4003 .Dl Usage: .Fr Ao function return value Ac ...
4005 Don't use this macro.
4006 It allows a break right before the return value (usually a single digit)
4007 which is bad typographical behaviour.
4010 to tie the return value to the previous word.
4013 Use this macro to include a (header) file literally.
4016 followed by the file name, then the contents of
4019 .Dl Usage: .Hf Ao file Ac
4021 It is neither callable nor parsed.
4027 Exact usage unknown.
4028 The documentation in the
4030 source file describes it as a macro for
4031 .Dq "menu entries" .
4033 Its default width is 6n.
4039 Exact usage unknown.
4040 The documentation in the
4042 source file describes it as
4043 .Dq old function type (fortran) .
4046 Activate (toggle) space mode.
4048 .Dl Usage: .Sm Oo on | off Oc ...
4050 If space mode is off, no spaces between macro arguments are inserted.
4051 If called without a parameter (or if the next parameter is neither
4061 .Bd -ragged -offset indent
4065 It is neither callable nor parsed and takes no arguments.
4069 .Sh "PREDEFINED STRINGS"
4071 The following strings are predefined:
4076 String Nroff Troff Meaning
4077 <= <= \*[<=] less equal
4078 >= >= \*[>=] greater equal
4079 Rq '' \*[Rq] right double quote
4080 Lq `` \*[Lq] left double quote
4081 ua ^ \*[ua] upwards arrow
4082 aa \' \*[aa] acute accent
4083 ga \` \*[ga] grave accent
4084 q \&" \*[q] straight double quote
4085 Pi pi \*[Pi] greek pi
4086 Ne != \*[Ne] not equal
4087 Le <= \*[Le] less equal
4088 Ge >= \*[Ge] greater equal
4089 Lt < \*[Lt] less than
4090 Gt > \*[Gt] greater than
4091 Pm +\- \*[Pm] plus minus
4092 If infinity \*[If] infinity
4093 Am \*[Am] \*[Am] ampersand
4094 Na \*[Na] \*[Na] not a number
4095 Ba \*[Ba] \*[Ba] vertical bar
4098 The names of the columns
4102 are a bit misleading;
4106 representation, while
4108 gives the best glyph form available.
4109 For example, a Unicode enabled
4111 device will have proper glyph representations for all strings, whereas the
4112 enhancement for a Latin1
4114 device is only the plus-minus sign.
4116 String names which consist of two characters can be written as
4118 string names which consist of one character can be written as
4120 A generic syntax for a string name of any length is
4129 \#=====================================================================
4135 available in previous versions of
4137 has been removed since
4140 provides better facilities to check parameters; additionally, many error and
4141 warning messages have been added to this macro package, making it both more
4144 The only remaining debugging macro is
4146 which yields a register dump of all global registers and strings.
4147 A normal user will never need it.
4150 .Sh "FORMATTING WITH GROFF, TROFF, AND NROFF"
4152 By default, the package inhibits page breaks, headers, and footers if
4159 to make the manual more efficient for viewing on-line.
4160 This behaviour can be changed (e.g.\& to create a hardcopy of the
4162 output) by setting the register
4164 to zero while calling
4166 resulting in multiple pages instead of a single, very long page:
4168 .Dl groff \-Tlatin1 \-rcR=0 \-mdoc foo.man > foo.txt
4170 For double-sided printing, set register
4174 .Dl groff \-Tps \-rD1 \-mdoc foo.man > foo.ps
4176 To change the document font size to 11pt or 12pt, set register
4180 .Dl groff \-Tdvi \-rS11 \-mdoc foo.man > foo.dvi
4188 The line and title length can be changed by setting the registers
4194 .Dl groff \-Tutf8 \-rLL=100n \-rLT=100n \-mdoc foo.man | less
4196 If not set, both registers default to 78n for TTY devices and 6.5i
4202 .Bl -tag -width mdoc/doc-ditroff -compact
4204 The main manual macro package.
4206 A wrapper file to call
4208 .It Pa mdoc/doc-common
4209 Common strings, definitions, stuff related typographic output.
4210 .It Pa mdoc/doc-nroff
4211 Definitions used for a
4214 .It Pa mdoc/doc-ditroff
4215 Definitions used for all other devices.
4217 Local additions and customizations.
4219 Use this file if you don't know whether the
4223 package should be used.
4224 Multiple man pages (in either format) can be handled.
4238 Section 3f has not been added to the header routines.
4241 font should be changed in
4246 needs to have a check to prevent splitting up
4247 if the line length is too short.
4249 separates the last parenthesis, and sometimes
4250 looks ridiculous if a line is in fill mode.
4252 The list and display macros do not do any keeps
4253 and certainly should be able to.
4254 .\" Note what happens if the parameter list overlaps a newline
4256 .\" to make sure a line boundary is crossed:
4258 .\" \&.Fn struct\e\ dictionarytable\e\ *dictionarylookup struct\e\ dictionarytable\e\ *tab[]
4261 .\" produces, nudge nudge,
4262 .\" .Fn struct\ dictionarytable\ *dictionarylookup char\ *h struct\ dictionarytable\ *tab[] ,
4263 .\" .Fn struct\ dictionarytable\ *dictionarylookup char\ *h struct\ dictionarytable\ *tab[] ,
4265 .\" .Fn struct\ dictionarytable\ *dictionarylookup char\ *h struct\ dictionarytable\ *tab[] .
4267 .\" If double quotes are used, for example:
4269 .\" \&.Fn \*qstruct dictionarytable *dictionarylookup\*q \*qchar *h\*q \*qstruct dictionarytable *tab[]\*q
4272 .\" produces, nudge nudge,
4273 .\" .Fn "struct dictionarytable *dictionarylookup" "char *h" "struct dictionarytable *tab[]" ,
4275 .\" .Fn "struct dictionarytable *dictionarylookup" "char *h" "struct dictionarytable *tab[]" ,
4277 .\" .Fn "struct dictionarytable *dictionarylookup" "char *h" "struct dictionarytable *tab[]" .
4279 .\" Not a pretty sight...
4280 .\" In a paragraph, a long parameter containing unpaddable spaces as
4281 .\" in the former example will cause
4283 .\" to break the line and spread
4284 .\" the remaining words out.
4285 .\" The latter example will adjust nicely to
4286 .\" justified margins, but may break in between an argument and its
4290 .\" the right margin adjustment is normally ragged and the problem is
4293 .\" ====================================================================
4295 .\" ====================================================================
4297 .\" Local Variables:
4301 .\" vim: set filetype=groff textwidth=72: