Debian Codegraph @

upstream/fedora-rawhide/man7/groff_man.7

raw
1 '\" t
2 .\" This page is generated by m4 from tmac/groff_man.7.man.in.
3 .TH groff_man 7 "2026-03-03" "groff 1.24.0"
4 .SH Name
5 groff_man \- compose manual pages with GNU
6 .I roff
7 .
8 .
9 .\" ====================================================================
10 .\" Legal Terms
11 .\" ====================================================================
12 .\"
13 .\" Copyright 1999-2017 Free Software Foundation, Inc.
14 .\" 2017 Ingo Schwarze
15 .\" 2017-2025 G. Branden Robinson
16 .\"
17 .\" Permission is granted to make and distribute verbatim copies of this
18 .\" manual provided the copyright notice and this permission notice are
19 .\" preserved on all copies.
20 .\"
21 .\" Permission is granted to copy and distribute modified versions of
22 .\" this manual under the conditions for verbatim copying, provided that
23 .\" the entire resulting derived work is distributed under the terms of
24 .\" a permission notice identical to this one.
25 .\"
26 .\" Permission is granted to copy and distribute translations of this
27 .\" manual into another language, under the above conditions for
28 .\" modified versions, except that this permission notice may be
29 .\" included in translations approved by the Free Software Foundation
30 .\" instead of in the original English.
31 .
32 .
33 .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
34 .do nr *groff_groff_man_7_man_C \n[.cp]
35 .cp 0
36 .
37 .\" Define fallback for groff 1.23's MR macro if the system lacks it.
38 .nr do-fallback 0
39 .if !\n(.f .nr do-fallback 1 \" mandoc
40 .if \n(.g .if !d MR .nr do-fallback 1 \" older groff
41 .if !\n(.g .nr do-fallback 1 \" non-groff *roff
42 .if \n[do-fallback] \{\
43 . de MR
44 . ie \\n(.$=1 \
45 . I \%\\$1
46 . el \
47 . IR \%\\$1 (\\$2)\\$3
48 . .
49 .\}
50 .rr do-fallback
51 .
52 .
53 .\" ====================================================================
54 .SH Synopsis
55 .\" ====================================================================
56 .
57 .SY "groff \-man"
58 .RI [ option\~ .\|.\|.\&]
59 .RI [ file\~ .\|.\|.]
60 .YS
61 .
62 .SY "groff \-m man"
63 .RI [ option\~ .\|.\|.\&]
64 .RI [ file\~ .\|.\|.]
65 .YS
66 .
67 .
68 .\" ====================================================================
69 .SH Description
70 .\" ====================================================================
71 .
72 The GNU implementation of the
73 .I man
74 macro package is part of the
75 .I groff
76 document formatting system.
77 .
78 It is used to compose manual pages
79 .\" We use an unbreakable space \~ here to keep the phrase intact for
80 .\" its introduction; in subsequent discussion, that is not important.
81 (\[lq]man\~pages\[rq])
82 like the one you are reading.
83 .
84 This document presents the macros thematically;
85 for those needing only a quick reference,
86 the following table lists them alphabetically,
87 with references to appropriate subsections below.
88 .
89 .
90 .P
91 Readers who are not already experienced
92 .I groff
93 users should consult
94 .MR groff_man_style 7 ,
95 an expanded version of this document,
96 for additional explanations and advice.
97 .
98 It covers only those concepts required for man page document
99 maintenance,
100 and not the full breadth of the
101 .I groff
102 typesetting system.
103 .
104 .
105 .P
106 .if t .vs 11.75p \" begin hideous cheat for U.S. letter paper
107 .if n .if \n[LL]<68n .RS -3n \" begin shameless cheat for slim terminals
108 .TS
109 l l l.
110 Macro Meaning Subsection
111 .T&
112 lB l l.
113 _
114 \&.B Bold Font style macros
115 \&.BI Bold, italic alternating Font style macros
116 \&.BR Bold, roman alternating Font style macros
117 \&.EE Example end Document structure macros
118 \&.EX Example begin Document structure macros
119 \&.HP Begin hanging paragraph Paragraphing macros
120 \&.I Italic Font style macros
121 \&.IB Italic, bold alternating Font style macros
122 \&.IP Indented paragraph Paragraphing macros
123 \&.IR Italic, roman alternating Font style macros
124 \&.LP Begin paragraph Paragraphing macros
125 \&.ME Mail-to end Hyperlink macros
126 \&.MR Man page cross reference Hyperlink macros
127 \&.MT Mail-to start Hyperlink macros
128 \&.P Begin paragraph Paragraphing macros
129 \&.PP Begin paragraph Paragraphing macros
130 \&.RB Roman, bold alternating Font style macros
131 \&.RE Relative inset end Document structure macros
132 \&.RI Roman, italic alternating Font style macros
133 \&.RS Relative inset start Document structure macros
134 \&.SH Section heading Document structure macros
135 \&.SM Small Font style macros
136 \&.SS Subsection heading Document structure macros
137 \&.SY Synopsis start Synopsis macros
138 \&.TH Title heading Document structure macros
139 \&.TP Tagged paragraph Paragraphing macros
140 \&.TQ Supplemental paragraph tag Paragraphing macros
141 \&.UE URI end Hyperlink macros
142 \&.UR URI start Hyperlink macros
143 \&.YS Synopsis end Synopsis macros
144 .TE
145 .if n .if \n[LL]<68n .RE \" end shameless cheat for slim terminals
146 .if t .vs \" end hideous cheat for U.S. letter paper
147 .
148 .
149 .P
150 We discuss other macros
151 .RB ( AT ,
152 .BR DT ,
153 .BR OP ,
154 .BR PD ,
155 .BR SB ,
156 and
157 .BR UC )
158 in subsection \[lq]Deprecated features\[rq] below.
159 .
160 .
161 .P
162 Throughout Unix documentation,
163 a manual entry is referred to simply as a \[lq]man page\[rq],
164 regardless of its length,
165 without gendered implication,
166 and irrespective of the macro package selected for its composition.
167 .\" ====================================================================
168 .SS "Macro reference preliminaries"
169 .\" ====================================================================
170 .
171 A tagged paragraph describes each macro.
172 .
173 We present coupled pairs together,
174 as with
175 .B EX
176 and
177 .BR EE .
178 .
179 If you require an empty macro argument,
180 specify it as a pair of neutral double quotes
181 .RB ( \[dq]\^\[dq] ).
182 .
183 Most macro arguments are formatted as text in the output;
184 exceptions are noted.
185 .
186 .
187 .
188 .\" ====================================================================
189 .SS "Document structure macros"
190 .\" ====================================================================
191 .
192 Document structure macros organize a man page's content.
193 .
194 All of them break the output line.
195 .
196 .B TH
197 (title heading)
198 identifies the document as a man page and configures the page headers
199 and footers.
200 .
201 Section headings
202 .RB ( SH ),
203 one of which is mandatory and many of which are conventionally expected,
204 facilitate location of material by the reader and aid the man page
205 writer to discuss all essential aspects of the topics presented.
206 .
207 Subsection headings
208 .RB ( SS )
209 are optional and permit sections that grow long to develop in a
210 controlled way.
211 .
212 Many technical discussions benefit from examples;
213 lengthy ones,
214 especially those reflecting multiple lines of input to or output from
215 the system,
216 are usefully bracketed by
217 .B EX
218 and
219 .BR EE .
220 .
221 When none of the foregoing meets a structural demand,
222 use
223 .BR RS / RE
224 to inset a region within a (sub)section.
225 .
226 .
227 .TP
228 .BI .TH " identifier section"\~\c
229 .RI [ footer-middle \~\c
230 .RI [ footer-inside \~\c
231 .RI [ header-middle ]]]
232 Break the page,
233 reset the page number to\~1
234 (unless the
235 .B \-rC1
236 option is given),
237 and use the arguments to populate the page header and footer.
238 .
239 Together,
240 .I identifier
241 and the
242 .I section
243 of the manual to which it belongs
244 can uniquely identify a
245 .I man
246 document on the system.
247 .
248 See
249 .MR man 1
250 or
251 .MR intro 1
252 for the manual sectioning applicable to your system.
253 .
254 .I identifier
255 and
256 .I section
257 are positioned at the left and right in the header;
258 the latter is set after the former,
259 in parentheses and without space.
260 .
261 .I footer-middle
262 is centered in the footer.
263 .
264 By default,
265 .I footer-inside
266 is positioned at the bottom left.
267 .
268 Use of the double-sided layout option
269 .B \-rD1
270 places
271 .I footer-inside
272 at the bottom left on recto (odd-numbered) pages,
273 and the bottom right on verso (even-numbered) pages.
274 .
275 By default,
276 the outside footer is the page number.
277 .
278 Use of the continuous-rendering option
279 .B \-rcR=1
280 replaces it with
281 .I identifier
282 and
283 .I section,
284 as in the header.
285 .
286 .I header-middle
287 is centered in the header.
288 .
289 If
290 .I section
291 is an integer between 1 and\~9 (inclusive),
292 there is no need to specify
293 .I header-middle;
294 .I an.tmac
295 supplies text for it.
296 .
297 If
298 .I identifier
299 or
300 .I footer-inside
301 would overrun the space available in the header and/or footer,
302 this package may abbreviate them with
303 ellipses.
304 .
305 .I "groff man"
306 suppresses headers and footers in HTML output.
307 .
308 .\" Does anyone try to do anything different? GBR hasn't seen it.
309 .\" This feature is intended only for formatting multiple
310 .\" .I man
311 .\" documents in sequence.
312 .
313 .
314 .IP
315 A valid
316 .I man
317 document calls
318 .B TH
319 only once,
320 early in the file,
321 prior to any other macro calls.
322 .
323 .
324 .TP
325 .BR .SH " ["\c
326 .IR heading-text ]
327 Set
328 .I heading-text
329 as a section heading.
330 .
331 Given no argument,
332 .B SH
333 plants a one-line input trap;
334 text on the next line
335 .\", which can be formatted with a macro, \" true but discouraged
336 becomes
337 .I heading-text.
338 .
339 The heading text is set in bold
340 (or the font specified by the string
341 .BR HF ),
342 and,
343 on typesetters,
344 slightly larger than the base type size.
345 .
346 If the heading font
347 .B \[rs]*[HF]
348 is bold,
349 use of an italic style in
350 .I heading-text
351 is mapped to the bold-italic style if available in the font family.
352 .
353 The inset level is reset to 1;
354 see subsection \[lq]Horizontal and vertical spacing\[rq] below.
355 .
356 Text lines after the call are set as an ordinary paragraph
357 .RB ( P ).
358 .
359 .
360 .IP
361 The content of
362 .I heading-text
363 and ordering of sections follows a set of common practices,
364 as does much of the layout of material within sections.
365 .
366 For example,
367 a section called \[lq]Name\[rq] or \[lq]NAME\[rq] must exist,
368 must be the first section after the
369 .B TH
370 call,
371 and must contain only text of the form
372 .RS \" Invisibly move left margin to current IP indentation.
373 .RS \" Now indent further, visibly.
374 .IR topic [\c
375 .BI , " another-topic"\c
376 ].\|.\|.\& \e\-
377 .I summary-description
378 .RE \" Move left margin back to IP indentation.
379 for tools like
380 .MR makewhatis 8
381 or
382 .MR mandb 8
383 to index them.
384 .RE \" Move left margin back to standard position.
385 .
386 .
387 .TP
388 .BR .SS " ["\c
389 .IR subheading-text ]
390 Set
391 .I subheading-text
392 as a subsection heading indented between a section heading and an
393 ordinary paragraph
394 .RB ( P ).
395 .
396 Given no argument,
397 .B SS
398 plants a one-line input trap;
399 text on the next line
400 .\", which can be formatted with a macro, \" true but discouraged
401 becomes
402 .I subheading-text.
403 .
404 The subheading text is set in bold
405 (or the font specified by the string
406 .BR HF ).
407 .
408 If the heading font
409 .B \[rs]*[HF]
410 is bold,
411 use of an italic style in
412 .I subheading-text
413 is mapped to the bold-italic style if available in the font family.
414 .
415 The inset level is reset to 1;
416 see subsection \[lq]Horizontal and vertical spacing\[rq] below.
417 .
418 Text lines after the call are set as an ordinary paragraph
419 .RB ( P ).
420 .
421 .
422 .TP
423 .B .EX
424 .TQ
425 .B .EE
426 Begin and end example.
427 .
428 After
429 .BR EX ,
430 filling is disabled
431 (and,
432 on typesetters,
433 a monospaced font family is selected).
434 .
435 Calling
436 .B EE
437 enables filling
438 (and restores the previous family).
439 .
440 .
441 .IP
442 Ninth Edition Unix introduced the
443 .\" Also see subsection "History" below...
444 .B EX
445 and
446 .B EE
447 extensions.
448 .
449 Documenter's Workbench (DWB),
450 Heirloom Doctools,
451 and
452 Plan\~9
453 .IR troff s, \" DWB, Heirloom, Plan 9
454 and
455 .I mandoc
456 (since 1.12.2)
457 support them.
458 .
459 Solaris
460 .I troff \" Solaris
461 does not.
462 .\" Neatroff doesn't ship (m)an macros.
463 .
464 .
465 .TP
466 .BR .RS " ["\c
467 .IR inset-amount ]
468 Start new relative inset.
469 .
470 .I man
471 saves any current inset amount
472 and moves right by:
473 .I inset-amount,
474 if specified;
475 the
476 .I indentation
477 amount of the preceding
478 .BR IP ,
479 .BR TP ,
480 or
481 .B HP
482 macro call if no (sub-)sectioning or ordinary paragraphing macro has
483 intervened;
484 or the amount of the
485 .B IN
486 register.
487 .
488 .B RS
489 calls can nest;
490 each increments by\~1 the
491 .I level
492 used by
493 .BR RE .
494 .
495 The level prior to any
496 .B RS
497 call is\~1.
498 .
499 .
500 .TP
501 .BR .RE " ["\c
502 .IR inset-level ]
503 End a relative inset,
504 reducing it to that of
505 .I inset-level
506 (or by\~1 if not specified)
507 and restoring the corresponding inset amount.
508 .
509 .
510 .\" ====================================================================
511 .SS "Paragraphing macros"
512 .\" ====================================================================
513 .
514 These macros break the output line.
515 .
516 An
517 .I ordinary
518 paragraph
519 .RB ( P )
520 indents all output lines by the same amount.
521 .
522 A hanging paragraph
523 .RB ( HP )
524 is a cosmetic variant of
525 .B P
526 with a hanging indent.
527 .
528 Definition lists frequently occur in man pages;
529 these can be set as
530 .I "tagged paragraphs,"
531 which have one
532 .RB ( TP )
533 or more
534 .RB ( TQ )
535 leading tags followed by a paragraph that has an additional indentation.
536 .
537 The indented paragraph
538 .RB ( IP )
539 macro
540 can continue the indented content of a narrative started
541 with
542 .BR TP ,
543 or present an itemized or ordered list.
544 .
545 If a paragraphing macro has been called since
546 .B SH
547 or
548 .BR SS ,
549 all except
550 .B TQ
551 follow the break with vertical space
552 (in an amount configured by the deprecated
553 .B PD
554 macro);
555 see subsection \[lq]Horizontal and vertical spacing\[rq] below.
556 .
557 Except for
558 .BR TQ ,
559 these macros
560 reset the type size and font style to defaults,
561 and restore the configured hyphenation mode.
562 .\" slack wording for managing stranded lines in PS/PDF output
563 .\" [end previous text line with semicolon, not period]
564 .\"see subsections \[lq]Font style macros\[rq] and \[lq]Options\[rq]
565 .\"below.
566 .
567 .
568 .br
569 .ne 4v
570 .TP
571 .B .P
572 .TQ
573 .B .LP
574 .TQ
575 .B .PP
576 Begin a new paragraph;
577 these macros are synonymous.
578 .
579 Any indentation from use of
580 .BR IP ,
581 .BR TP ,
582 or
583 .B HP
584 is cleared.
585 .
586 The inset amount,
587 as affected by
588 .B RS
589 and
590 .BR RE ,
591 is not.
592 .
593 .
594 .TP
595 .BR .HP " ["\c
596 .IR indentation ]
597 Set a paragraph with a hanging indentation.
598 .
599 Text on output lines after the first is indented by
600 .I indentation,
601 if specified,
602 and by the amount of the
603 .B IN
604 register otherwise.
605 .
606 .
607 .IP
608 .I Caution:
609 A hanging indentation cannot be expressed naturally in (pure) HTML,
610 a hanging paragraph is not distinguishable from an ordinary one if it
611 formats on only one output line,
612 and
613 .RI non- roff -based
614 man page interpreters may treat
615 .B HP
616 as an ordinary paragraph anyway.
617 .
618 Thus,
619 information or distinctions you mean to express with indentation may be
620 lost.
621 .
622 .
623 .TP
624 .BR .TP " ["\c
625 .IR indentation ]
626 Set an indented paragraph with a leading unindented tag.
627 .
628 The macro plants a one-line input trap that honors the
629 .B \[rs]c
630 escape sequence;
631 text on the next line becomes the tag,
632 set without indentation.
633 .
634 Text on subsequent lines is indented by
635 .I indentation,
636 if specified,
637 and by the amount of the
638 .B IN
639 register otherwise.
640 .
641 If the tag,
642 plus the \[lq]tag spacing\[rq] stored in the
643 .B TS
644 register
645 (see section \[lq]Options\[rq] below)
646 is wider than the indentation,
647 the package breaks the line after the tag.
648 .
649 .
650 .TP
651 .B .TQ
652 Set an additional tag for a paragraph tagged with
653 .BR TP ,
654 planting a one-line input trap as with
655 .BR TP .
656 .
657 .
658 .IP
659 .B TQ
660 is a GNU extension supported by
661 Heirloom Doctools
662 .I troff \" Heirloom
663 .\" commit 5e4181af2a1562c542caaa3b2cc129e40e3e76e5
664 (since Git snapshot 151218)
665 and
666 .I mandoc
667 (since 1.14.5)
668 but not by
669 DWB,
670 Plan\~9,
671 or
672 Solaris
673 .IR troff s. \" DWB, Plan 9, Solaris
674 .
675 .
676 .TP
677 .BR .IP\~ [\c
678 .IR mark \~\c
679 .RI [ indentation ]]
680 Set an indented paragraph with an optional mark.
681 .
682 Arguments,
683 if present,
684 are handled as with
685 .BR TP ,
686 except that the
687 .I mark
688 argument to
689 .B IP
690 cannot include a macro call,
691 and the tag separation amount stored in the
692 .B TS
693 register is not enforced.
694 .
695 .
696 .\" ====================================================================
697 .SS "Synopsis macros"
698 .\" ====================================================================
699 .
700 Use
701 .B SY
702 and
703 .B YS
704 to summarize syntax using familiar Unix conventions.
705 .
706 .\" TODO: Determine whether this (is still? was ever?) true.
707 .\" Furthermore,
708 .\" some tools are able to interpret these macros semantically and treat
709 .\" them appropriately for localization and/or presentation.
710 .
711 Heirloom Doctools
712 .I troff \" Heirloom
713 .\" commit 5e4181af2a1562c542caaa3b2cc129e40e3e76e5
714 (since Git snapshot 151218)
715 and
716 .I mandoc
717 (since 1.14.5)
718 support these GNU extensions;
719 DWB,
720 Plan\~9,
721 and
722 Solaris
723 .IR troff s \" DWB, Plan 9, Solaris
724 do not.
725 .
726 .
727 .TP
728 .BI .SY\~ keyword\~\c
729 .RI [ suffix ]
730 Begin synopsis.
731 .
732 Adjustment and automatic hyphenation are disabled.
733 .
734 If
735 .B SY
736 has already been called without a corresponding
737 .BR YS ,
738 a break is performed.
739 .
740 .I keyword
741 and any
742 .I suffix
743 are set in bold.
744 .
745 When
746 .I suffix
747 is present,
748 the package
749 sets the next word after it without intervening space.
750 .
751 If a break is required in subsequent text
752 (up to a paragraphing,
753 sectioning,
754 or
755 .B YS
756 macro call),
757 lines after the first are indented.
758 .
759 Unless the previous synopsis's indentation is reused
760 (see
761 .B YS
762 below),
763 output lines after the first
764 indent by the width of the pending output line up to the end of
765 .I keyword
766 plus a space,
767 if
768 .I keyword
769 is the only argument,
770 and up to the end of
771 .I suffix
772 otherwise.
773 .
774 .
775 .br
776 .ne 4v
777 .TP
778 .BR .YS\~ [\c
779 .IR reuse-indentation ]
780 End synopsis,
781 breaking the line and restoring
782 indentation,
783 adjustment,
784 and hyphenation
785 to their previous states.
786 .
787 If an argument is given,
788 the indentation corresponding to the previous
789 .B SY
790 call is reused by the next
791 .B SY
792 call instead of being computed.
793 .
794 .
795 .\" ====================================================================
796 .SS "Hyperlink macros"
797 .\" ====================================================================
798 .
799 Man page cross references
800 are best presented with
801 .BR MR .
802 .
803 Mark email addresses with
804 .BR MT / ME
805 and other sorts of URI with
806 .BR UR / UE .
807 .
808 To hyperlink text,
809 terminals and pager programs must support ECMA-48 OSC\~8 escape
810 sequences
811 (see
812 .MR grotty 1 ).
813 .
814 When device support is unavailable or disabled with the
815 .B U
816 register
817 (see section \[lq]Options\[rq] below),
818 .I "groff man"
819 renders these URIs between angle brackets
820 .RB ( \[la]\~\[ra] )
821 after the linked text.
822 .
823 .
824 .P
825 .BR MT ,
826 .BR ME ,
827 .BR UR ,
828 and
829 .B UE
830 are GNU extensions supported by
831 Heirloom Doctools
832 .I troff \" Heirloom
833 .\" commit 5e4181af2a1562c542caaa3b2cc129e40e3e76e5
834 (since Git snapshot 151218)
835 and
836 .I mandoc
837 .RB ( UR / UE
838 since 1.12.3;
839 .BR MT / ME
840 since 1.14.2)
841 but not by
842 DWB,
843 Plan\~9 (original),
844 or
845 Solaris
846 .IR troff s. \" DWB, Plan 9, Solaris
847 .
848 Plan\~9 from User Space's
849 .I troff \" plan9port
850 implements
851 .BR MR .
852 .
853 .
854 .br
855 .ne 2v
856 .P
857 Prepare arguments to
858 .BR MR ,
859 .BR MT ,
860 and
861 .B UR
862 for typesetting;
863 they can appear in the output.
864 .
865 Use special character escape sequences to encode Unicode basic Latin
866 characters where necessary,
867 particularly the hyphen-minus.
868 .\" XXX: We don't need to say this, do we? It shouldn't be the man(7)
869 .\" user's problem.
870 .\" The formatter removes
871 .\" .B \e:
872 .\" escape sequences from hyperlinks when supplying
873 .\" device extension command arguments to output drivers.
874 .
875 .
876 .TP
877 .BI .MR \~topic\c
878 .RI \~[ manual-section \~[ trailing-text ]]
879 .IR (since\~ groff \~1.23) \" TODO: remove note once novelty dies down
880 Set a man page cross reference as
881 \[lq]\c
882 .IB topic ( manual-section )\c
883 \[rq].
884 .
885 If
886 .I manual-section
887 is absent,
888 the package omits the surrounding parentheses.
889 .
890 If
891 .I trailing-text
892 (typically punctuation)
893 is specified,
894 it follows the closing parenthesis without intervening space.
895 .
896 Hyphenation is disabled while the cross reference is set.
897 .
898 .I topic
899 is set in the font specified by the
900 .B MF
901 string.
902 .
903 If
904 .I manual-section
905 is present,
906 the cross reference hyperlinks to a URI of the form
907 .RB \[lq] man:\c
908 .IR topic ( manual-section )\[rq].
909 .
910 .
911 .TP
912 .BI .MT " address"
913 .TQ
914 .BR .ME " ["\c
915 .IR trailing-text ]
916 Identify
917 .I address
918 as an RFC 6068
919 .I addr-spec
920 for a \[lq]mailto:\[rq] URI with the text between the two macro
921 calls as the link text.
922 .
923 An argument to
924 .B ME
925 is placed after the link text without intervening space.
926 .
927 .I address
928 may not be visible in the rendered document if hyperlinks are enabled
929 and supported by the output driver.
930 .
931 If they are not,
932 .I address
933 is set in angle brackets after the link text and before
934 .I trailing-text.
935 .
936 If hyperlinking is enabled but there is no link text,
937 .I address
938 is formatted and hyperlinked
939 .I without
940 angle brackets,
941 except when
942 .I address
943 appears as a
944 .B TP
945 paragraph tag.
946 .
947 .
948 .TP
949 .BI .UR " uri"
950 .TQ
951 .BR .UE " ["\c
952 .IR trailing-text ]
953 Identify
954 .I uri
955 as an RFC 3986 URI hyperlink with the text between the two macro calls
956 as the link text.
957 .
958 An argument to
959 .B UE
960 is placed after the link text without intervening space.
961 .
962 .I uri
963 may not be visible in the rendered document if hyperlinks are enabled
964 and supported by the output driver.
965 .
966 If they are not,
967 .I uri
968 is set in angle brackets after the link text and before
969 .I trailing-text.
970 .
971 If hyperlinking is enabled but there is no link text,
972 .I uri
973 is formatted and hyperlinked
974 .I without
975 angle brackets,
976 except when
977 .I uri
978 appears as a
979 .B TP
980 paragraph tag.
981 .
982 .
983 .P
984 If a
985 .BR UR / UE
986 or
987 .BR MT / ME
988 pair occurs in a
989 .B TP
990 tag
991 and hyperlinking is unavailable,
992 .I "groff man"
993 sets the link target at the beginning
994 of the indented paragraph,
995 not as part of the tag,
996 unless there is no link text.
997 .
998 .
999 .\" ====================================================================
1000 .SS "Font style macros"
1001 .\" ====================================================================
1002 .
1003 The
1004 .I man
1005 macro package is limited in its font styling options,
1006 offering only
1007 .BR bold \~( B ),
1008 .I italic\c
1009 .RB \~( I ),
1010 and roman.
1011 .
1012 Italic text may instead render underscored on terminals.
1013 .
1014 .B SM
1015 sets text at a smaller type size,
1016 which differs visually from regular-sized text only on typesetters.
1017 .
1018 The macros
1019 .BR BI ,
1020 .BR BR ,
1021 .BR IB ,
1022 .BR IR ,
1023 .BR RB ,
1024 and
1025 .B RI
1026 set their odd- and even-numbered arguments
1027 as text in the alternating styles their names indicate,
1028 with no space separating them.
1029 .
1030 .
1031 .P
1032 The default type size and family for typesetters is 10-point Times,
1033 except on the
1034 .B \%X75\-12
1035 and
1036 .B \%X100\-12
1037 devices where the type size is 12 points.
1038 .
1039 The default style is roman.
1040 .
1041 .
1042 .TP
1043 .BR .B \~[\c
1044 .IR text ]
1045 Set
1046 .I text
1047 in bold.
1048 .
1049 Given no argument,
1050 .B B
1051 plants a one-line input trap;
1052 text on the next line,
1053 which can be further formatted with a macro,
1054 is set in bold.
1055 .
1056 .
1057 .TP
1058 .BR .I \~[\c
1059 .IR text ]
1060 Set
1061 .I text
1062 in an italic or oblique face.
1063 .
1064 Given no argument,
1065 .B I
1066 plants a one-line input trap;
1067 text on the next line,
1068 which can be further formatted with a macro,
1069 is set in an italic or oblique face.
1070 .
1071 .
1072 .TP
1073 .BR .SM \~[\c
1074 .IR text ]
1075 Set
1076 .I text
1077 one point smaller than the default type size on typesetters.
1078 .
1079 Given no argument,
1080 .B SM
1081 plants a one-line input trap;
1082 text on the next line,
1083 which can be further formatted with a macro,
1084 is set smaller.
1085 .
1086 .
1087 .br
1088 .ne 2v
1089 .P
1090 Unlike the above font style macros,
1091 the font style alternation macros below set no input traps;
1092 they must be given arguments to have effect.
1093 .
1094 They apply italic corrections as appropriate.
1095 .
1096 .
1097 .
1098 .TP
1099 .BI .BI " bold-text italic-text "\c
1100 \&.\|.\|.\&
1101 Set each argument in bold and italics,
1102 alternately.
1103 .
1104 .
1105 .TP
1106 .BI .BR " bold-text roman-text "\c
1107 \&.\|.\|.\&
1108 Set each argument in bold and roman,
1109 alternately.
1110 .
1111 .
1112 .TP
1113 .BI .IB " italic-text bold-text "\c
1114 \&.\|.\|.\&
1115 Set each argument in italics and bold,
1116 alternately.
1117 .
1118 .
1119 .TP
1120 .BI .IR " italic-text roman-text "\c
1121 \&.\|.\|.\&
1122 Set each argument in italics and roman,
1123 alternately.
1124 .
1125 .
1126 .TP
1127 .BI .RB " roman-text bold-text "\c
1128 \&.\|.\|.\&
1129 Set each argument in roman and bold,
1130 alternately.
1131 .
1132 .
1133 .TP
1134 .BI .RI " roman-text italic-text "\c
1135 \&.\|.\|.\&
1136 Set each argument in roman and italics,
1137 alternately.
1138 .
1139 .
1140 .\" ====================================================================
1141 .SS "Horizontal and vertical spacing"
1142 .\" ====================================================================
1143 .
1144 The package sets all text inboard of the left edge of the output medium
1145 by the amount of the
1146 .I "page offset;"
1147 see register
1148 .B PO
1149 in section \[lq]Options\[rq] below.
1150 .
1151 Headers,
1152 footers
1153 (both set with
1154 .BR TH ),
1155 and section headings
1156 .RB ( SH )
1157 lie at the page offset.
1158 .
1159 .I groff
1160 .I man
1161 indents
1162 subsection headings
1163 .RB ( SS )
1164 by the amount in the
1165 .B SN
1166 register.
1167 .
1168 .
1169 .P
1170 Ordinary paragraphs not within an
1171 .BR RS / RE
1172 inset region are inset by the amount stored in the
1173 .B BP
1174 register;
1175 see section \[lq]Options\[rq] below.
1176 .
1177 The
1178 .B IN
1179 register configures the default indentation amount used by
1180 .B RS
1181 (as the
1182 .IR inset-amount ),
1183 .BR IP ,
1184 .BR TP ,
1185 and
1186 .BR HP ;
1187 an overriding argument
1188 is a number plus an optional scaling unit.
1189 .
1190 If no scaling unit is given,
1191 the
1192 .I man
1193 package assumes \[lq]n\[rq].
1194 .
1195 An indentation specified in a call to
1196 .BR IP ,
1197 .BR TP ,
1198 or
1199 .B HP
1200 persists until
1201 (1) another of these macros is called with an
1202 .I indentation
1203 argument,
1204 or
1205 (2)
1206 .BR SH ,
1207 .BR SS ,
1208 or
1209 .B P
1210 or its synonyms is called;
1211 these clear the indentation entirely.
1212 .\" XXX: This is not true, but they do handle it badly.
1213 .\"
1214 .\" HTML output devices ignore indentation.
1215 .
1216 .
1217 .P
1218 Several macros insert vertical space:
1219 .BR SH ,
1220 .BR SS ,
1221 .BR TP ,
1222 .B P
1223 (and its synonyms),
1224 .BR IP ,
1225 and
1226 .BR HP .
1227 .
1228 They then enable
1229 .I "no-space mode;"
1230 see
1231 .MR groff 7 .
1232 .
1233 The default inter-section and inter-paragraph spacing
1234 is 1v for terminals and 0.4v for typesetters.
1235 .
1236 (The deprecated macro
1237 .B PD
1238 can change this vertical spacing,
1239 but we discourage its use.)
1240 .
1241 Between
1242 .B EX
1243 and
1244 .B EE
1245 calls,
1246 the inter-paragraph spacing is 1v regardless of output
1247 device.
1248 .
1249 .
1250 .\" ====================================================================
1251 .SS Registers
1252 .\" ====================================================================
1253 .
1254 Registers are described in section \[lq]Options\[rq] below.
1255 .
1256 They can be set not only on the command line but in the site
1257 .I man.local
1258 file as well;
1259 see section \[lq]Files\[rq] below.
1260 .
1261 .
1262 .\" ====================================================================
1263 .SS Strings
1264 .\" ====================================================================
1265 .
1266 The following strings are defined for use in man pages.
1267 .
1268 None of these is necessary in a contemporary man page;
1269 see
1270 .MR groff_man_style 7 .
1271 .
1272 .I "groff man"
1273 supports others for configuration of rendering parameters;
1274 see section \[lq]Options\[rq] below.
1275 .
1276 .
1277 .\" In the rest of this section, we retain use of legacy AT&T syntax;
1278 .\" there seems little point in illustrating groff syntax for features
1279 .\" of man(7) that users of groff don't need, and should avoid.
1280 .\"
1281 .\" Special characters named here are not in AT&T's repertoire.
1282 .TP 8n \" accommodate "\e*(Tm", hand-tuned for PDF
1283 .B \e*R
1284 interpolates a special character escape sequence for the \[lq]registered
1285 sign\[rq] glyph,
1286 .BR \e(rg ,
1287 if available,
1288 and \[lq](Reg.)\[rq] otherwise.
1289 .
1290 .
1291 .
1292 .TP
1293 .B \e*S
1294 interpolates an escape sequence setting the type size to the document
1295 default.
1296 .
1297 .
1298 .TP
1299 .B \e*(lq
1300 .TQ
1301 .B \e*(rq
1302 interpolate special character escape sequences for left and right
1303 double-quotation marks,
1304 .B \e(lq
1305 and
1306 .BR \e(rq ,
1307 respectively.
1308 .
1309 .
1310 .TP
1311 .B \e*(Tm
1312 interpolates a special character escape sequence for the \[lq]trade mark
1313 sign\[rq] glyph,
1314 .BR \e(tm ,
1315 if available,
1316 and \[lq](TM)\[rq] otherwise.
1317 .
1318 .
1319 .\" ====================================================================
1320 .SS Hooks
1321 .\" ====================================================================
1322 .
1323 Two macros,
1324 both GNU extensions,\" from groff 1.19
1325 are called internally by the
1326 .I "groff man"
1327 package to format page headers and footers and can be redefined by the
1328 administrator in a site's
1329 .I man.local
1330 file
1331 (see section \[lq]Files\[rq] below).
1332 .
1333 The presentation of
1334 .B TH
1335 above describes the default headers and footers.
1336 .
1337 Because these macros are hooks for
1338 .I "groff man"
1339 internals,
1340 man pages have no reason to call them.
1341 .
1342 Such hook definitions typically consist of \[lq]sp\[rq] and
1343 \[lq]tl\[rq] requests.
1344 .
1345 .B PT
1346 furthermore has the responsibility of emitting a PDF bookmark after
1347 writing the first page header in a document.
1348 .
1349 Consult the existing implementations in
1350 .I an.tmac
1351 when drafting replacements.
1352 .
1353 .
1354 .TP
1355 .B .BT
1356 Set the page footer text
1357 (\[lq]bottom trap\[rq]).
1358 .
1359 .
1360 .TP
1361 .B .PT
1362 Set the page header text
1363 (\[lq]page trap\[rq]).
1364 .
1365 .
1366 .P
1367 To remove a page header or footer entirely,
1368 define the appropriate macro as empty rather than deleting it.
1369 .
1370 .
1371 .\" ====================================================================
1372 .SS "Deprecated features"
1373 .\" ====================================================================
1374 .
1375 Use of the following in man pages for public distribution is
1376 discouraged.
1377 .
1378 .
1379 .TP
1380 .BR .AT " ["\c
1381 .IR system " [" release ]]
1382 Alter the footer for use with legacy AT&T man pages,
1383 overriding any definition of the
1384 .I footer-inside
1385 argument to
1386 .BR TH .
1387 .
1388 This macro exists only to render man pages from historical systems.
1389 .
1390 .
1391 .IP
1392 The inside footer is populated per the value of
1393 .I system.
1394 .
1395 .
1396 .RS \" Invisibly move left margin to current IP indentation.
1397 .RS \" Now indent further, visibly.
1398 .TP
1399 3
1400 7th edition
1401 .I (default)
1402 .
1403 .
1404 .TP
1405 4
1406 System III
1407 .
1408 .
1409 .TP
1410 5
1411 System V
1412 .RE \" Move left margin back to IP indentation.
1413 .RE \" Move left margin back to standard position.
1414 .
1415 .
1416 .IP
1417 The optional
1418 .I release
1419 argument specifies the release number,
1420 as in \[lq]System\~V Release\~3\[rq].
1421 .
1422 .
1423 .TP
1424 .B .DT
1425 Reset tab stops to the default
1426 (every 0.5i).
1427 .
1428 .IP
1429 Use of this presentation-oriented macro is deprecated.
1430 .
1431 It translates poorly to HTML,
1432 under which exact space control and tabulation are not readily
1433 available.
1434 .
1435 Thus,
1436 information or distinctions that you use tab stops to express are likely
1437 to be lost.
1438 .
1439 If you feel tempted to change the tab stops such that calling this macro
1440 later to restore them is desirable,
1441 consider composing a table using
1442 .MR \%tbl 1
1443 instead.
1444 .
1445 .
1446 .br
1447 .ne 5v
1448 .TP
1449 .BI .OP " option-name"\/\c
1450 .RI " [" option-argument ]
1451 Indicate an optional command parameter called
1452 .IR option-name ,
1453 which is set in bold.
1454 .
1455 If the option takes an argument,
1456 specify
1457 .I option-argument
1458 using a noun,
1459 abbreviation,
1460 or hyphenated noun phrase.
1461 .
1462 If present,
1463 .I option-argument
1464 is preceded by a space and set in italics.
1465 .
1466 Square brackets in roman surround both arguments.
1467 .
1468 .
1469 .IP
1470 Use of this quasi-semantic macro,
1471 .\" https://github.com/n-t-roff/DWB3.3/blob/master/macros/man/an.sr#L37
1472 an extension whose name originated in DWB
1473 .IR troff ,\" DWB
1474 is deprecated;
1475 .IR groff 's
1476 interface differs.
1477 .
1478 Neither can easily be used to annotate options
1479 that take optional arguments
1480 or options whose arguments have internal structure
1481 (such as a mixture of literal and variable components).
1482 .
1483 One could work around these limitations
1484 with font selection escape sequences,
1485 but font style alternation macros are preferable;
1486 they are more flexible and perform italic corrections on typesetters.
1487 .
1488 .
1489 .TP
1490 .BR .PD " ["\c
1491 .IR vertical-space ]
1492 Configure the amount of vertical space between paragraphs or
1493 (sub)sections.
1494 .
1495 The optional argument
1496 .I vertical-space
1497 specifies the amount;
1498 the default scaling unit is \[lq]v\[rq].
1499 .
1500 Without an argument,
1501 inter-paragraph spacing resets to its default value;
1502 see subsection \[lq]Horizontal and vertical spacing\[rq] above.
1503 .
1504 .
1505 .IP
1506 Use of this presentation-oriented macro is deprecated.
1507 .
1508 It translates poorly to HTML,
1509 under which exact control of inter-paragraph spacing is not readily
1510 available.
1511 .
1512 Thus,
1513 information or distinctions that you use
1514 .B PD
1515 to express are likely to be lost.
1516 .
1517 .
1518 .TP
1519 .BR .SB \~[\c
1520 .IR text ]
1521 Set
1522 .I text
1523 in bold and
1524 (on typesetters)
1525 one point smaller than the default type size.
1526 .
1527 Given no argument,
1528 .B SB
1529 plants a one-line input trap;
1530 text on the next line,
1531 which can be further formatted with a macro,
1532 is set smaller and in bold.
1533 .
1534 Use of this macro,
1535 an extension originating in SunOS\~4.0
1536 .IR troff ,\" SunOS
1537 .\" ...and which Clark included in groff man(7) from 1.01 or earlier...
1538 is deprecated.
1539 .
1540 .B SM
1541 without an argument,
1542 followed immediately by
1543 .RB \[lq] B
1544 .IR text \[rq],
1545 produces the same output more portably.
1546 .
1547 The macros' order is interchangeable;
1548 put
1549 .I text
1550 with the latter.
1551 .
1552 .
1553 .TP
1554 .BR .UC " ["\c
1555 .IR version ]
1556 Alter the footer for use with legacy BSD man pages,
1557 overriding any definition of the
1558 .I footer-inside
1559 argument to
1560 .BR TH .
1561 .
1562 This macro exists only to render man pages from historical systems.
1563 .
1564 .
1565 .IP
1566 The inside footer is populated per the value of
1567 .I version.
1568 .
1569 .
1570 .RS \" Invisibly move left margin to current IP indentation.
1571 .RS \" Now indent further, visibly.
1572 .TP
1573 .if t \{\
1574 . \" begin hideous cheat for U.S. letter paper
1575 . do nr saved-PD \n[PD]
1576 . do nr PD 0.25v
1577 .\}
1578 3
1579 3rd Berkeley Distribution
1580 .I (default)
1581 .
1582 .
1583 .TP
1584 4
1585 4th Berkeley Distribution
1586 .
1587 .
1588 .TP
1589 5
1590 4.2 Berkeley Distribution
1591 .
1592 .
1593 .TP
1594 6
1595 4.3 Berkeley Distribution
1596 .
1597 .
1598 .TP
1599 7
1600 4.4 Berkeley Distribution
1601 .RE \" Move left margin back to IP indentation.
1602 .RE \" Move left margin back to standard position.
1603 .if t \{\
1604 . \" end hideous cheat for U.S. letter paper
1605 . do nr PD \n[saved-PD]u
1606 . do rr saved-PD
1607 .\}
1608 .
1609 .
1610 .\" ====================================================================
1611 .SS History
1612 .\" ====================================================================
1613 .
1614 .MT [email protected]
1615 M.\& Douglas McIlroy
1616 .ME
1617 designed,
1618 implemented,
1619 and documented the AT&T
1620 .I man
1621 macros
1622 for
1623 Unix Version\~7 (1979) and employed them
1624 to edit Volume\~1 of its
1625 .IR "Programmer's Manual" ,
1626 a compilation of all man pages supplied by the system.
1627 .
1628 The package supported the macros listed in this page
1629 not described as extensions,
1630 except
1631 .B P
1632 .\" SS was implemented in tmac.an but not documented in man(7).
1633 and the deprecated
1634 .B AT
1635 and
1636 .BR UC .
1637 .
1638 It documented no registers and defined only
1639 .B R
1640 and
1641 .B S
1642 strings.
1643 .
1644 .
1645 .P
1646 .B UC
1647 appeared in 3BSD (1980).
1648 .
1649 .\" per https://archive.org/details/\
1650 .\" bitsavers_attunixSysalRelease3Jun80_33886798
1651 Unix System\~III (1980) introduced
1652 .B P
1653 .\" ...and de-documented LP...
1654 and exposed the registers
1655 .B IN
1656 and
1657 .BR LL ,
1658 .\" ...as well as \n[PD], which we implement but don't expose.
1659 which had been internal to Seventh Edition Unix
1660 .IR man .
1661 .
1662 .\" This inference is based on RCS idents of "PWB Manual Entry Macros"
1663 .\" from various forms of "an.src" distributed with System III (an.src
1664 .\" 1.35, dated 5/6/80, lacks the Tm string), Research Unix Version 10
1665 .\" (1.36, dated 11/11/80, has it), Ultrix 3.1 (1.37, dated 12/19/80,
1666 .\" retains it) and "pdp11v" (also 1.37). One source (S. S. Pirzada)
1667 .\" says PWB 2.0 was released in June 1979. I found no record of later
1668 .\" releases and cannot account for the discrepancy (field updates?).
1669 .\" -- GBR
1670 PWB/Unix 2.0 (1980) added the
1671 .B Tm
1672 string.
1673 .
1674 4BSD (1980) added
1675 .\" undocumented VS and VE macros to mark regions with 12-point box
1676 .\" rules (\[br]) as margin characters, as well as...
1677 .B lq
1678 and
1679 .B rq
1680 strings.
1681 .
1682 .\" The SunOS inferences here and below are based on inspection of SunOS
1683 .\" 2.0 (May 1985), 3.2 (September 1986), 3.5 (January 1988), and 4.0
1684 .\" (December 1988) tape archives (only).
1685 SunOS\~2.0 (1985) recognized
1686 .BR C ,
1687 .BR D ,
1688 .BR P ,
1689 and
1690 .B X
1691 registers.
1692 .
1693 4.3BSD (1986) added
1694 .\" undocumented DS and DE macros for "displays", which are RS/RE
1695 .\" wrappers with filling disabled and vertical space of 1v before and
1696 .\" .5v after, as well as...
1697 .B AT
1698 and
1699 .BR P .
1700 .
1701 .\" Per Doug McIlroy in
1702 .\" <https://lists.gnu.org/archive/html/groff/2019-07/msg00038.html>...
1703 Ninth Edition Unix (1986) introduced
1704 .B EX
1705 and
1706 .BR EE .
1707 .\" DWB added EX/EE support, albeit slightly incompatibly.* It
1708 .\" was in 3.3 (1992) but could have appeared as early as 2.0 (1986)
1709 .\" given its relationship to Research Unix.
1710 .\"
1711 .\" * See <https://lists.gnu.org/archive/html/bug-ncurses/2024-03/\
1712 .\" msg00173.html>.
1713 .
1714 SunOS\~4.0 (1988) added
1715 .BR SB .
1716 .
1717 Unix System\~V (1988) incorporated the
1718 .B lq
1719 and
1720 .B rq
1721 strings.
1722 .\" ...whereas DWB 2.0 (1984) apparently did not.
1723 .\" https://lists.gnu.org/archive/html/groff/2025-09/msg00079.html
1724 .\" Going by the SCCS header, DWB had incorporated them by 3.2 (1991?).
1725 .\" https://github.com/n-t-roff/DWB3.3/blob/\
1726 .\" 562bb8615116f46077ca03e8561323cc7a89673e/macros/man/an.sr#L20
1727 .
1728 .
1729 .P
1730 Except for
1731 .BR EX / EE ,
1732 James Clark implemented the foregoing features in early versions of
1733 .I groff.
1734 .
1735 Later,
1736 .I groff
1737 1.20 (2009) resurrected
1738 .BR EX / EE
1739 and originated
1740 .BR SY / YS ,
1741 .BR TQ ,
1742 .BR MT / ME ,
1743 and
1744 .BR UR / UE .
1745 .\" ...along with implementations of OP, EX, and EE.
1746 .\"
1747 .\" It's not clear exactly when OP showed up in DWB troff. It wasn't
1748 .\" in 1.0 (1984), but was by the time of the 3.3 release (1992). Scans
1749 .\" of DWB manuals online suggest that AT&T did not bother to document
1750 .\" DWB's man(7) implementation in printed matter (nor its ms(7)).
1751 .
1752 Plan\~9 from User Space's
1753 .I troff \" plan9port
1754 introduced
1755 .B MR
1756 in 2020,
1757 .\" https://github.com/9fans/plan9port/commit/\
1758 .\" 977b25a76ae8263e53fb4eb1abfc395769f23e3d
1759 .\" d32deab17bfffa5bffc5fab3e6577558e40888c5
1760 .\" 36cd4c58c1346375b98f517fb8568be5bb47618d
1761 and incorporated the
1762 .B lq
1763 and
1764 .B rq
1765 strings in 2025.
1766 .\" https://github.com/9fans/plan9port/commit/\
1767 .\" e5b5757e640371974d2e70144c8e59c6a5b613f6
1768 .
1769 .
1770 .br
1771 .ne 4v
1772 .\" ====================================================================
1773 .SH Options
1774 .\" ====================================================================
1775 .
1776 The following
1777 .I groff
1778 options set registers
1779 (with
1780 .BR \-r )
1781 and strings
1782 (with
1783 .BR \-d )
1784 recognized and used by the
1785 .I man
1786 macro package.
1787 .
1788 To ensure rendering consistent with output device capabilities and
1789 reader preferences,
1790 man pages should never manipulate them.
1791 .
1792 .
1793 .TP 9.25n \" "-rHY=0" + 2n + hand-tuned for PDF
1794 .BI \-dAD= adjustment-mode
1795 Set line adjustment to
1796 .I adjustment-mode,
1797 which is typically
1798 .RB \[lq] b \[rq]
1799 for adjustment to both margins
1800 (the default),
1801 or
1802 .RB \[lq] l \[rq]
1803 for left alignment
1804 (ragged right margin).
1805 .
1806 Any valid argument to
1807 .IR groff 's
1808 \[lq]ad\[rq] request may be used.
1809 .
1810 See
1811 .MR groff 7
1812 for less-common choices.
1813 .
1814 .
1815 .TP
1816 .BI \-rBP= base-paragraph-inset
1817 Set the inset amount for ordinary paragraphs not within an
1818 .BR RS / RE
1819 inset.
1820 .
1821 The default is\~5n.
1822 .
1823 .
1824 .TP
1825 .B \-rcR=1
1826 Enable continuous rendering.
1827 .
1828 Output is not paginated;
1829 instead,
1830 one
1831 (potentially very long)
1832 page is produced.
1833 .
1834 This is the default for terminal and HTML devices.
1835 .
1836 Use
1837 .B \-rcR=0
1838 to disable it on terminals;
1839 on HTML devices,
1840 it cannot be disabled.
1841 .
1842 .
1843 .TP
1844 .B \-rC1
1845 Number output pages consecutively,
1846 in strictly increasing sequence,
1847 rather than resetting the page number to\~1
1848 (or the value of register
1849 .BR P )
1850 with each new
1851 .I man
1852 document.
1853 .
1854 .
1855 .TP
1856 .BI \-rCHECKSTYLE= n
1857 Report problems with usage of this macro package exhibited by the input
1858 at verbosity level
1859 .IR n ,
1860 where
1861 .I n
1862 is an integer in the range 0\[en]3,
1863 inclusive;
1864 .B 0
1865 disables the messages and is the default.
1866 .
1867 This feature is a development and debugging aid
1868 for man page maintainers;
1869 the problems diagnosed,
1870 and range and meanings of the supported levels,
1871 are subject to change.
1872 .
1873 .
1874 .TP
1875 .B \-rCS=1
1876 Set section headings
1877 (the argument(s) to
1878 .BR SH )
1879 in full capitals.
1880 .
1881 This transformation is off by default because it discards lettercase
1882 distinctions.
1883 .
1884 .
1885 .TP
1886 .B \-rCT=1
1887 Set the man page identifier
1888 (the first argument to
1889 .BR TH )
1890 in full capitals in headers and footers.
1891 .
1892 This transformation is off by default because it discards lettercase
1893 distinctions.
1894 .
1895 .
1896 .TP
1897 .B \-rD1
1898 Enable double-sided layout,
1899 formatting footers for even and odd pages differently;
1900 see the description of
1901 .B TH
1902 in subsection \[lq]Document structure macros\[rq] above.
1903 .
1904 .
1905 .TP
1906 .BI \-rFT= footer-distance
1907 Set distance of the footer relative to the bottom of the page to
1908 .I footer-distance;
1909 this amount is always negative.
1910 .
1911 At one half-inch above this location,
1912 the page text is broken before writing the footer.
1913 .
1914 Ignored if continuous rendering is enabled.
1915 .
1916 The default is \[lq]\-0.5i\~\-\~1v\[rq].
1917 .
1918 .
1919 .TP
1920 .BI \-dHF= heading-font
1921 Select the font used for section and subsection headings;
1922 the default is
1923 .RB \[lq] B \[rq]
1924 (bold style of the default family).
1925 .
1926 Any valid argument to
1927 .IR groff 's
1928 \[lq]ft\[rq] request may be used.
1929 .
1930 See
1931 .MR groff 7 .
1932 .
1933 .
1934 .TP
1935 .B \-rHY=0
1936 Disable automatic hyphenation.
1937 .
1938 Normally,
1939 it is enabled\~(1).
1940 .
1941 The hyphenation mode is determined by the
1942 .I groff
1943 locale;
1944 see section \[lq]Localization\[lq] of
1945 .MR groff 7 .
1946 .
1947 .
1948 .TP
1949 .BI \-rIN= standard-indentation
1950 Set the default indentation amount used by
1951 .BR IP ,
1952 .BR TP ,
1953 .\" TQ inherits its indentation from the preceding TP.
1954 and
1955 .BR HP ,
1956 and the inset amount used by
1957 .BR RS .
1958 .
1959 The default is 7n on terminals and 7.2n on typesetters.
1960 .
1961 Use only integer multiples of unit \[lq]n\[rq] on terminals for consistent
1962 indentation.
1963 .
1964 .
1965 .TP
1966 .BI \-rLL= line-length
1967 Set line length;
1968 the default is 80n on terminals
1969 and 6.5i on typesetters.
1970 .
1971 .
1972 .TP
1973 .BI \-rLT= title-length
1974 Set the line length for titles.
1975 .
1976 By default,
1977 it is set to the line length
1978 (see
1979 .B \-rLL
1980 above).
1981 .
1982 .
1983 .br
1984 .ne 5v
1985 .TP
1986 .BI \-dMF= man-page-topic-font
1987 Select the font used for man page identifiers in
1988 .B TH
1989 calls and topics named in
1990 .B MR
1991 calls;
1992 the default is
1993 .RB \[lq] I \[rq]
1994 (italic style of the default family).
1995 .
1996 Any valid argument to
1997 .IR groff 's
1998 \[lq]ft\[rq] request may be used.
1999 .
2000 If the
2001 .B MF
2002 string ends in \[lq]I\[rq],
2003 the package assumes it to be an oblique typeface,
2004 and applies italic corrections before and after man page topics and
2005 identifiers.
2006 .
2007 .
2008 .TP
2009 .BI \-rP n
2010 Start enumeration of pages at
2011 .IR n .
2012 .
2013 The default is\~1.
2014 .
2015 .
2016 .TP
2017 .BI \-rPO= page-offset
2018 Set page offset;
2019 the default is 0 on terminals
2020 and 1i on typesetters.
2021 .
2022 .
2023 .TP
2024 .BI \-rS type-size
2025 Use
2026 .I type-size
2027 for the document's body text;
2028 acceptable values are 10,
2029 11,
2030 or 12 points.
2031 .
2032 See subsection \[lq]Font style macros\[rq] above for the default.
2033 .
2034 .
2035 .TP
2036 .BI \-rSN= subsection-indentation
2037 Set indentation of subsection headings to
2038 .I subsection-indentation.
2039 .
2040 The default is\~3n.
2041 .
2042 .
2043 .TP
2044 .BI \-rTS= separation
2045 Require the given
2046 .I separation
2047 between a
2048 .B TP
2049 paragraph's tag and its body.
2050 .
2051 The default is\~2n.
2052 .
2053 .
2054 .TP
2055 .B \-rU0
2056 Disable generation of URI hyperlinks in output drivers capable of them,
2057 making the arguments to
2058 .B MT
2059 and
2060 .B UR
2061 calls visible as formatted text.
2062 .
2063 .MR grohtml 1 ,
2064 .MR gropdf 1 ,
2065 and
2066 .MR grotty 1
2067 enable hyperlinks by default
2068 (the last only if not in its legacy output mode).
2069 .
2070 .
2071 .TP
2072 .BI \-rX p
2073 Number successors of
2074 .RI page\~ p
2075 as
2076 .IR p a,
2077 .IR p b,
2078 .IR p c,
2079 and so forth.
2080 .
2081 The register tracking the suffixed page letter uses format \[lq]a\[rq]
2082 (see the \[lq]af\[rq] request in
2083 .MR groff 7 ).
2084 .
2085 .
2086 .
2087 .br
2088 .if n .ne 3v
2089 .if t .ne 4v \" section headings are taller on typesetters
2090 .\" ====================================================================
2091 .SH Files
2092 .\" ====================================================================
2093 .
2094 .TP
2095 .I /usr/\:\%share/\:\%groff/\:\%1.24.0/\:\%tmac/\:an\:.tmac
2096 Most
2097 .I man
2098 macros are defined in this file.
2099 .
2100 It also loads extensions from
2101 .I \%an\-ext.tmac
2102 (see below).
2103 .
2104 .
2105 .TP
2106 .I /usr/\:\%share/\:\%groff/\:\%1.24.0/\:\%tmac/\:\%andoc\:.tmac
2107 This brief
2108 .I groff
2109 program detects whether the
2110 .I man
2111 or
2112 .I mdoc
2113 macro package is used by a document
2114 and loads the correct macro definitions,
2115 taking advantage of the fact that pages using them must call
2116 .B TH
2117 or
2118 .BR Dd ,
2119 respectively,
2120 before any other macros.
2121 .
2122 A
2123 .I man
2124 program or a user typing,
2125 for example,
2126 .RB \[lq] "groff \-mandoc page.1" \[rq],
2127 need not know which package the file
2128 .I page.1
2129 uses.
2130 .
2131 Multiple man pages,
2132 in either format,
2133 can be handled;
2134 .I \%andoc
2135 reloads each macro package as necessary.
2136 .
2137 Page-local redefinitions of names used by the
2138 .I man
2139 or
2140 .I mdoc
2141 packages prior to
2142 .B TH
2143 or
2144 .B Dd
2145 calls are \[lq]clobbered\[rq] by the reloading process.
2146 .
2147 If you want to provide your own definition of an extension macro to
2148 ensure its availability,
2149 the
2150 .I \%an\-ext\:.tmac
2151 entry below offers advice.
2152 .
2153 .
2154 .TP
2155 .I /usr/\:\%share/\:\%groff/\:\%1.24.0/\:\%tmac/\:\%an\-ext\:.tmac
2156 Definitions of macros described above as extensions
2157 (and not deprecated)
2158 are contained in this file;
2159 in some cases,
2160 they are simpler versions of definitions appearing in
2161 .IR an.tmac ,
2162 and are ignored if the formatter is GNU
2163 .IR troff .\" GNU
2164 .
2165 They are written to be compatible with AT&T
2166 .I troff \" AT&T
2167 and permissively licensed\[em]not copylefted.
2168 .
2169 To reduce the risk of name space collisions,
2170 string and register names begin only with
2171 .RB \[lq] m \[rq].
2172 .
2173 We encourage man page authors
2174 who are concerned about portability to legacy Unix systems
2175 to copy these definitions into their pages,
2176 and maintainers of
2177 .I troff \" generic
2178 implementations or work-alike systems that format man pages
2179 to re-use them.
2180 .
2181 To ensure reliable rendering,
2182 define them after your page calls
2183 .BR TH ;
2184 see the discussion of
2185 .I \%andoc\:.tmac
2186 above.
2187 .
2188 Further,
2189 it is wise to define such page-local macros
2190 (if at all)
2191 after the \[lq]Name\[rq] section to accommodate timid
2192 .MR makewhatis 8
2193 or
2194 .MR mandb 8
2195 implementations that easily give up scanning for indexing material.
2196 .
2197 .
2198 .TP
2199 .I /usr/\:\%share/\:\%groff/\:\%1.24.0/\:\%tmac/\:man\:.tmac
2200 is a wrapper enabling the package to be loaded with the option
2201 .RB \[lq] "\-m man" \[rq].
2202 .
2203 .
2204 .TP
2205 .I /usr/\:\%share/\:\%groff/\:\%1.24.0/\:\%tmac/\:\%mandoc\:.tmac
2206 is a wrapper enabling
2207 .I \&andoc.tmac
2208 to be loaded with the option
2209 .RB \[lq] "\-m mandoc" \[rq].
2210 .
2211 .
2212 .TP
2213 .I /etc/\:\%groff/\:\%site\-tmac/\:\%man\:\%.local
2214 Put site-local changes and customizations into this file.
2215 .
2216 .
2217 .\" ====================================================================
2218 .SH Authors
2219 .\" ====================================================================
2220 .
2221 James Clark wrote the initial GNU implementation of the
2222 .I man
2223 macro package. \" by 1.01
2224 .
2225 Later,
2226 .MT wl@\:gnu\:.org
2227 Werner Lemberg
2228 .ME
2229 supplied the
2230 .BR S , \" 1.16
2231 .BR LT , \" 1.18
2232 and
2233 .B cR \" 1.17
2234 registers,
2235 the last a 4.3BSD-Reno
2236 .IR mdoc (7)
2237 feature.
2238 .\" "Assume nroff on crt's [sic] only if cR==1"
2239 .\" https://minnie.tuhs.org/cgi-bin/utree.pl
2240 .\" ?file=4.3BSD-Reno/share/tmac/tmac.doc
2241 .
2242 .MT kollar@\:alltel\:.net
2243 Larry Kollar
2244 .ME
2245 added the
2246 .BR FT ,
2247 .BR HY ,
2248 and
2249 .B SN
2250 registers;
2251 the
2252 .B HF
2253 string;
2254 and the
2255 .B PT
2256 and
2257 .B BT
2258 macros in
2259 .I groff
2260 1.19 (2003).
2261 .
2262 Lemberg and
2263 .MT esr@\:thyrsus\:.com
2264 Eric S.\& Raymond
2265 .ME
2266 contributed
2267 .BR EX / EE ,
2268 .BR MT / ME ,
2269 .BR UR / UE ,
2270 .BR TQ ,
2271 and an early version of the
2272 .BR SY / YS
2273 macros to
2274 .I groff
2275 1.20 (2009).
2276 .
2277 .MT g.branden\:.robinson@\:gmail\:.com
2278 G.\& Branden Robinson
2279 .ME
2280 implemented the
2281 .B AD
2282 and
2283 .B MF
2284 strings;
2285 .BR CS ,
2286 .BR CT ,
2287 and
2288 .B U
2289 registers;
2290 and the
2291 .B MR
2292 macro for
2293 .I groff
2294 1.23 (2023),
2295 and the
2296 .BR BP ,
2297 .BR PO ,
2298 and
2299 .B TS
2300 registers
2301 and a revised implementation of the
2302 .BR SY / YS
2303 macros for
2304 .I groff
2305 1.24 (2026).
2306 .
2307 .
2308 .P
2309 .MT sgk@\:debian\:.org
2310 Susan G.\& Kleinmann
2311 .ME
2312 wrote the initial version of this document
2313 for the Debian GNU/Linux system.
2314 .
2315 Lemberg imported it to
2316 .I groff.
2317 He and Robinson revised and updated it.
2318 .
2319 Raymond and Robinson documented the extension macros.
2320 .
2321 .
2322 .\" ====================================================================
2323 .SH "See also"
2324 .\" ====================================================================
2325 .
2326 .MR \%tbl 1 ,
2327 .MR \%eqn 1 ,
2328 and
2329 .MR \%refer 1
2330 are preprocessors used with man pages.
2331 .
2332 .MR man 1
2333 describes the man page librarian on your system.
2334 .
2335 .MR groff_mdoc 7
2336 details the
2337 .I groff
2338 version of BSD's alternative macro package for man pages.
2339 .
2340 .
2341 .P
2342 .MR groff_man_style 7 ,
2343 .MR groff 7 ,
2344 .MR groff_char 7
2345 .
2346 .
2347 .\" Restore compatibility mode (for, e.g., Solaris 10/11).
2348 .cp \n[*groff_groff_man_7_man_C]
2349 .do rr *groff_groff_man_7_man_C
2350 .
2351 .
2352 .\" Local Variables:
2353 .\" fill-column: 72
2354 .\" mode: nroff
2355 .\" End:
2356 .\" vim: set filetype=groff textwidth=72: