groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / tmac / groff_man.man
CommitLineData
92d0a6a6 1.ig
4d3e9548 2Copyright (C) 1999-2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
465b256c 3Free Software Foundation, Inc.
92d0a6a6 4
465b256c
JR
5Permission is granted to make and distribute verbatim copies of this
6manual provided the copyright notice and this permission notice are
7preserved on all copies.
92d0a6a6
JR
8
9Permission is granted to copy and distribute modified versions of this
10manual under the conditions for verbatim copying, provided that the
11entire resulting derived work is distributed under the terms of a
12permission notice identical to this one.
13
14Permission is granted to copy and distribute translations of this
15manual into another language, under the above conditions for modified
16versions, except that this permission notice may be included in
17translations approved by the Free Software Foundation instead of in
18the original English.
19..
20.
92d0a6a6
JR
21.
22.TH GROFF_MAN @MAN7EXT@ "@MDATE@" "Groff Version @VERSION@"
23.
24.
4d3e9548 25.\" ----------------------------------------------------------------
92d0a6a6
JR
26.
27.SH NAME
28.
29groff_man \- groff `man' macros to support generation of man pages
30.
31.
32.\" -----------------------------------------------------------------
33.
34.SH SYNOPSIS
35.
4d3e9548
JL
36.SY "groff\ \-man"
37.RI [ options
38.IR .\|.\|.\& ]
39.RI [ files
40.IR .\|.\|.\& ]
41.
42.SY "groff\ \-m\ man"
43.RI [ options
44.IR .\|.\|.\& ]
45.RI [ files
46.IR .\|.\|.\& ]
47.YS
92d0a6a6
JR
48.
49.
50.\" -----------------------------------------------------------------
51.
52.SH DESCRIPTION
53.
54The
55.B man
465b256c 56macros used to generate
4d3e9548 57.I man\~pages
465b256c 58with
92d0a6a6
JR
59.I groff
60were written by James Clark.
465b256c 61.
92d0a6a6
JR
62This document provides a brief summary of the use of each macro in that
63package.
64.
65.
66.\" -----------------------------------------------------------------
67.
68.SH OPTIONS
69.
70The
71.B man
465b256c
JR
72macros understand the following command line options (which define
73various registers).
92d0a6a6
JR
74.
75.TP
76.B \-rcR=1
4d3e9548 77This option (the default if in nroff mode) creates a single, very
465b256c
JR
78long page instead of multiple pages.
79.
92d0a6a6
JR
80Say
81.B \-rcR=0
82to disable it.
83.
84.TP
85.B \-rC1
86If more than one manual page is given on the command line, number the
4d3e9548 87pages continuously, rather than starting each at\~1.
92d0a6a6
JR
88.
89.TP
90.B \-rD1
91Double-sided printing.
465b256c 92.
92d0a6a6
JR
93Footers for even and odd pages are formatted differently.
94.
95.TP
96.BI \-rFT= dist
465b256c
JR
97Set distance of the footer relative to the bottom of the page if
98negative or relative to the top if positive.
99.
92d0a6a6
JR
100The default is -0.5i.
101.
102.TP
103.BI \-rHY= flags
104Set hyphenation flags.
105.
4d3e9548
JL
106Possible values are 1\~to hyphenate without restrictions, 2\~to not
107hyphenate the last word on a page, 4\~to not hyphenate the last two
108characters of a word, and 8\~to not hyphenate the first two characters
92d0a6a6
JR
109of a word.
110.
4d3e9548 111These values are additive; the default is\~14.
92d0a6a6
JR
112.
113.TP
114.BI \-rIN= width
115Set body text indentation to
116.IR width .
117The default is 7n for
118.IR nroff ,
1197.2n for
120.IR troff .
121For
122.IR nroff ,
123this value should always be an integer multiple of unit `n' to get
124consistent indentation.
125.
126.TP
127.BI \-rLL= line-length
128Set line length.
465b256c
JR
129.
130If this option is not given,
131the line length is set to respect any value set by a prior `.ll' request,
132(which
133.I must
134be in effect when the `.TH' macro is invoked),
135if this differs from the built\-in default for the formatter;
136otherwise it defaults to 78n in
137.I nroff
138mode and 6.5i in
139.I troff
140mode.
141.
142.IP
143Note that the use of a `.ll' request to initialize the line length
144is supported for backward compatibility with some versions of the
145.B man
146program;
147direct initialization of the `LL' register should
148.I always
149be preferred to the use of such a request.
4d3e9548 150In particular, note that a `.ll\ 65n' request does
465b256c
JR
151.I not
152preserve the normal
153.I nroff
154default line length,
155(the
156.B man
4d3e9548 157default initialization to 78n prevails),
465b256c
JR
158whereas,
159the `-rLL=65n' option, or an equivalent `.nr\ LL\ 65n'
160request preceding the use of the `TH' macro,
4d3e9548 161.I does
465b256c 162set a line length of 65n.
92d0a6a6
JR
163.
164.TP
165.BI \-rLT= title-length
166Set title length.
465b256c
JR
167.
168If this option is not given, the title length defaults to the line
169length.
92d0a6a6
JR
170.
171.TP
172.BI \-rP nnn
4d3e9548 173Enumeration of pages start with
92d0a6a6 174.I nnn
4d3e9548 175rather than with\~1.
92d0a6a6
JR
176.
177.TP
178.BI \-rS xx
179Base document font size is
180.I xx
181points
182.RI ( xx
4d3e9548 183can be 10, 11, or\~12) rather than 10\~points.
92d0a6a6
JR
184.
185.TP
186.BI \-rSN= width
187Set sub-subheading indentation to
188.IR width .
189The default is 3n.
190.
191.TP
192.BI \-rX nnn
4d3e9548 193After page\~\c
92d0a6a6
JR
194.IR nnn ,
195number pages as
196.IR nnn a,
197.IR nnn b,
198.IR nnn c,
199etc.
465b256c 200.
4d3e9548 201For example, the option `\-rX2' produces the following page
465b256c 202numbers: 1, 2, 2a, 2b, 2c, etc.
92d0a6a6
JR
203.
204.
205.\" -----------------------------------------------------------------
206.
207.SH USAGE
208.
209This section describes the available macros for manual pages.
465b256c
JR
210.
211For further customization, put additional macros and requests into the
212file
92d0a6a6 213.B man.local
4d3e9548 214which is loaded immediately after the
92d0a6a6
JR
215.B man
216package.
217.
218.TP
4d3e9548 219.BI .TH " title section \fR[\fPextra1\fR]\fP \fR[\fPextra2\fR]\fP \fR[\fPextra3\fR]"
465b256c 220Set the title of the
4d3e9548 221.I man\~page
465b256c 222to
92d0a6a6
JR
223.I title
224and the section to
225.IR section ,
4d3e9548 226which must take on a value between 1 and\~8.
465b256c 227.
92d0a6a6
JR
228The value
229.I section
230may also have a string appended, e.g. `.pm', to indicate a specific
465b256c
JR
231subsection of the
232.IR \%man\~pages .
92d0a6a6
JR
233Both
234.I title
235and
236.I section
237are positioned at the left and right in the header line (with
238.I section
239in parentheses immediately appended to
240.IR title .
241.I extra1
4d3e9548 242is positioned in the middle of the footer line.
92d0a6a6 243.I extra2
4d3e9548 244is positioned at the left in the footer line (or at the left on
92d0a6a6
JR
245even pages and at the right on odd pages if double-sided printing is
246active).
247.I extra3
248is centered in the header line.
249.
250.IP
4d3e9548 251For HTML output, headers and footers are completely suppressed.
92d0a6a6
JR
252.
253.IP
4d3e9548 254Additionally, this macro starts a new page; the new line number is\~1
465b256c
JR
255again (except if the `-rC1' option is given on the command line) --
256this feature is intended only for formatting multiple
257.IR \%man\~pages ;
258a single
259.I \%man\~page
260should contain exactly one
92d0a6a6
JR
261.B TH
262macro at the beginning of the file.
263.
264.TP
4d3e9548 265.BI .SH " \fR[\fPtext for a heading\fR]\fP"
92d0a6a6 266Set up an unnumbered section heading sticking out to the left.
465b256c 267.
92d0a6a6
JR
268Prints out all the text following
269.B SH
465b256c
JR
270up to the end of the line (or the text in the next input line if there
271is no argument to
92d0a6a6
JR
272.BR SH )
273in bold face
274(or the font specified by the string
275.BR HF ),
276one size larger than the base document size.
465b256c
JR
277.
278Additionally, the left margin and the indentation for the following
279text is reset to the default values.
92d0a6a6
JR
280.
281.TP
4d3e9548 282.BI .SS " \fR[\fPtext for a heading\fR]\fP"
92d0a6a6 283Set up a secondary, unnumbered section heading.
465b256c 284.
92d0a6a6
JR
285Prints out all the text following
286.B SS
465b256c
JR
287up to the end of the line (or the text in the next input line if there
288is no argument to
92d0a6a6
JR
289.BR SS )
290in bold face
291(or the font specified by the string
292.BR HF ),
293at the same size as the base document size.
465b256c
JR
294.
295Additionally, the left margin and the indentation for the following
296text is reset to the default values.
92d0a6a6
JR
297.
298.TP
4d3e9548 299.BI .TP " \fR[\fPnnn\fR]\fP"
92d0a6a6 300Set up an indented paragraph with label.
465b256c 301.
92d0a6a6
JR
302The indentation is set to
303.I nnn
465b256c
JR
304if that argument is supplied (the default unit is `n' if omitted),
305otherwise it is set to the previous indentation value specified with
92d0a6a6
JR
306.BR TP ,
307.BR IP ,
308or
309.B HP
310(or to the default value if none of them have been used yet).
311.
312.IP
465b256c
JR
313The first input line of text following this macro is interpreted as a
314string to be printed flush-left, as it is appropriate for a label.
315.
316It is not interpreted as part of a paragraph, so there is no attempt
317to fill the first line with text from the following input lines.
318.
92d0a6a6
JR
319Nevertheless, if the label is not as wide as the indentation the
320paragraph starts at the same line (but indented), continuing on the
321following lines.
465b256c 322.
92d0a6a6
JR
323If the label is wider than the indentation the descriptive part of the
324paragraph begins on the line following the label, entirely indented.
465b256c
JR
325.
326Note that neither font shape nor font size of the label is set to a
4d3e9548
JL
327default value; on the other hand, the rest of the text has default
328font settings.
92d0a6a6
JR
329.
330.IP
331The
332.B TP
333macro is the macro used for the explanations you are just reading.
334.
335.TP
4d3e9548
JL
336.B .TQ
337The
338.B TQ
339macro sets up header continuation for a .TP macro.
340.
341With it, you can stack up any number of labels (such as in a
342glossary, or list of commands) before beginning the indented
343paragraph.
344.
345For an example, look just past the next paragraph.
346.
347.IP
348This macro is not defined on legacy Unix systems running classic
349troff.
350.
351To be certain your page will be portable to those systems,
352copy its definition from the
353.B \%an-ext.tmac
354file of a
355.BR groff
356installation.
357.
358.TP
92d0a6a6
JR
359.B .LP
360.TQ
361.B .PP
362.TQ
363.B .P
364These macros are mutual aliases.
465b256c 365.
92d0a6a6
JR
366Any of them causes a line break at the current position, followed by a
367vertical space downwards by the amount specified by the
368.B PD
369macro.
465b256c 370.
4d3e9548
JL
371The font size and shape are reset to the default value (normally 10pt
372Roman).
465b256c 373.
92d0a6a6
JR
374Finally, the current left margin and the indentation are restored.
375.
376.TP
4d3e9548 377.BI .IP " \fR[\fPdesignator\fR]\fP \fR[\fPnnn\fR]\fP"
92d0a6a6
JR
378Set up an indented paragraph, using
379.I designator
380as a tag to mark its beginning.
465b256c 381.
92d0a6a6
JR
382The indentation is set to
383.I nnn
465b256c
JR
384if that argument is supplied (the default unit is `n' if omitted),
385otherwise it is set to the previous indentation value specified with
92d0a6a6
JR
386.BR TP ,
387.BR IP ,
388or
389.B HP
390(or to the default value if none of them have been used yet).
465b256c
JR
391.
392Font size and face of the paragraph (but not the designator) are reset
393to its default values.
92d0a6a6
JR
394.
395.IP
465b256c
JR
396To start an indented paragraph with a particular indentation but
397without a designator, use `""' (two doublequotes) as the second
398argument.
92d0a6a6
JR
399.
400.IP
465b256c
JR
401For example, the following paragraphs were all set up with bullets as
402the designator, using `.IP\ \\(bu\ 4'.
403.
92d0a6a6
JR
404The whole block has been enclosed with `.RS' and `.RE' to set the left
405margin temporarily to the current indentation value.
406.
407.RS
408.IP \(bu 4
409.B IP
410is one of the three macros used in the
411.B man
412package to format lists.
4d3e9548 413.
92d0a6a6
JR
414.IP \(bu 4
415.B HP
416is another.
465b256c 417.
92d0a6a6 418This macro produces a paragraph with a left hanging indentation.
4d3e9548 419.
92d0a6a6
JR
420.IP \(bu 4
421.B TP
422is another.
465b256c
JR
423.
424This macro produces an unindented label followed by an indented
425paragraph.
92d0a6a6
JR
426.RE
427.
428.TP
4d3e9548 429.BI .HP " \fR[\fPnnn\fR]\fP"
92d0a6a6 430Set up a paragraph with hanging left indentation.
465b256c 431.
92d0a6a6
JR
432The indentation is set to
433.I nnn
465b256c
JR
434if that argument is supplied (the default unit is `n' if omitted),
435otherwise it is set to the previous indentation value specified with
92d0a6a6
JR
436.BR TP ,
437.BR IP ,
438or
439.B HP
440(or to the default value if none of them have been used yet).
465b256c 441.
92d0a6a6 442Font size and face are reset to its default values.
465b256c
JR
443.
444The following paragraph illustrates the effect of this macro with
4d3e9548 445hanging indentation set to\~4 (enclosed by
465b256c
JR
446.B .RS
447and
448.B .RE
449to set the left margin temporarily to the current indentation):
92d0a6a6
JR
450.
451.RS
452.HP 4
453This is a paragraph following an invocation of the
454.B HP
455macro.
465b256c
JR
456.
457As you can see, it produces a paragraph where all lines but the first
458are indented.
4d3e9548 459.
92d0a6a6 460.RE
4d3e9548
JL
461.IP
462Use of this presentation-level macro is deprecated.
463.
464While it is universally portable to legacy Unix systems, a hanging
465indentation cannot be expressed naturally under HTML, and many
466HTML-based manual viewers simply interpret it as a starter for a
467normal paragraph.
468.
469Thus, any information or distinction you tried to express with the
470indentation may be lost.
92d0a6a6
JR
471.
472.TP
4d3e9548 473.BI .RS " \fR[\fPnnn\fR]\fP"
92d0a6a6
JR
474This macro moves the left margin to the right by the value
475.I nnn
465b256c
JR
476if specified (default unit is `n'); otherwise it is set to the
477previous indentation value specified with
92d0a6a6
JR
478.BR TP ,
479.BR IP ,
480or
481.B HP
482(or to the default value if none of them have been used yet).
465b256c 483.
92d0a6a6
JR
484The indentation value is then set to the default.
485.
486.IP
487Calls to the
488.B RS
489macro can be nested.
490.
491.TP
4d3e9548 492.BI .RE " \fR[\fPnnn\fR]\fP"
92d0a6a6
JR
493This macro moves the left margin back to level
494.IR nnn ,
495restoring the previous left margin.
465b256c 496.
92d0a6a6 497If no argument is given, it moves one level back.
465b256c 498.
92d0a6a6
JR
499The first level (i.e., no call to
500.B RS
4d3e9548 501yet) has number\~1, and each call to
92d0a6a6 502.B RS
4d3e9548
JL
503increases the level by\~1.
504.
505.TP
506.B .EX
507.TQ
508.B .EE
509Example/End Example.
510.
511After
512.BR EX ,
513filling is disabled and the font is set to constant-width.
514.
515This is useful for formatting code, command, and
516configuration-file examples.
517.
518The
519.B EE
520macro restores the previous font.
521.
522.IP
523These macros are defined on many (but not all) legacy Unix systems
524running classic troff.
525.
526To be certain your page will be portable to those systems, copy
527their definitions from the
528.B \%an-ext.tmac
529file of a
530.BR groff
531installation.
92d0a6a6
JR
532.
533.PP
465b256c
JR
534To summarize, the following macros cause a line break with the
535insertion of vertical space (which amount can be changed with the
92d0a6a6
JR
536.B PD
537macro):
538.BR SH ,
539.BR SS ,
540.BR TP ,
4d3e9548 541.BR TQ ,
92d0a6a6
JR
542.B LP
543.RB ( PP ,
544.BR P ),
545.BR IP ,
546and
547.BR HP .
548The macros
4d3e9548
JL
549.BR RS ,
550.BR RE ,
551.BR EX ,
92d0a6a6 552and
4d3e9548 553.B EE
92d0a6a6
JR
554also cause a break but no insertion of vertical space.
555.
556.
557.\" -----------------------------------------------------------------
558.
559.SH "MACROS TO SET FONTS"
560.
4d3e9548 561The standard font is Roman; the default text size is 10\~point.
92d0a6a6
JR
562.
563.TP
4d3e9548 564.BI .SM " \fR[\fPtext\fR]\fP"
92d0a6a6
JR
565Causes the text on the same line or the text on the next input line to
566appear in a font that is one point size smaller than the default font.
567.
568.TP
4d3e9548 569.BI .SB " \fR[\fPtext\fR]\fP"
92d0a6a6
JR
570Causes the text on the same line or the text on the next input line to
571appear in boldface font, one point size smaller than the default font.
572.
573.TP
574.BI ".BI " text
465b256c
JR
575Causes text on the same line to appear alternately in bold face and
576italic.
577.
92d0a6a6 578The text must be on the same line as the macro call.
465b256c 579.
92d0a6a6 580Thus
4d3e9548 581.
92d0a6a6
JR
582.RS
583.IP
584\&.BI this "word and" that
4d3e9548 585.
92d0a6a6
JR
586.PP
587would cause `this' and `that' to appear in bold face, while `word and'
588appears in italics.
589.RE
590.
591.TP
592.BI ".IB " text
593Causes text to appear alternately in italic and bold face.
465b256c 594.
92d0a6a6
JR
595The text must be on the same line as the macro call.
596.
597.TP
598.BI ".RI " text
465b256c
JR
599Causes text on the same line to appear alternately in roman and
600italic.
601.
92d0a6a6
JR
602The text must be on the same line as the macro call.
603.
604.TP
605.BI ".IR " text
465b256c
JR
606Causes text on the same line to appear alternately in italic and
607roman.
608.
92d0a6a6
JR
609The text must be on the same line as the macro call.
610.
611.TP
612.BI ".BR " text
465b256c
JR
613Causes text on the same line to appear alternately in bold face and
614roman.
615.
92d0a6a6
JR
616The text must be on the same line as the macro call.
617.
618.TP
619.BI ".RB " text
465b256c
JR
620Causes text on the same line to appear alternately in roman and bold
621face.
622.
92d0a6a6
JR
623The text must be on the same line as the macro call.
624.
625.TP
4d3e9548 626.BI .B " \fR[\fPtext\fR]\fP"
92d0a6a6
JR
627Causes
628.I text
629to appear in bold face.
465b256c 630.
92d0a6a6
JR
631If no text is present on the line where the macro is called the text
632of the next input line appears in bold face.
633.
634.TP
4d3e9548 635.BI .I " \fR[\fPtext\fR]\fP"
92d0a6a6
JR
636Causes
637.I text
638to appear in italic.
465b256c 639.
92d0a6a6
JR
640If no text is present on the line where the macro is called the text
641of the next input line appears in italic.
642.
643.
644.\" -----------------------------------------------------------------
645.
4d3e9548
JL
646.SH "MACROS TO DESCRIBE HYPERLINKS AND EMAIL ADDRESSES"
647.
648The following macros are not defined on legacy Unix systems
649running classic troff.
650.
651To be certain your page will be portable to those systems, copy
652their definitions from the
653.B \%an-ext.tmac
654file of a
655.BR groff
656installation.
657.
658.PP
659Using these macros helps ensure that you get hyperlinks when your
660manual page is rendered in a browser or other program that is
661Web-enabled.
662.
663.TP
664.BI .UR " URL"
665.TQ
666.BI .UE " \fR[\fPpunctuation\fR]\fP"
667Wrap a World Wide Web hyperlink.
668.
669The argument to
670.B UR
671is the URL; thereafter, lines until
672.B UE
673are collected and used as the link text.
674.
675Any argument to the
676.B UE
677macro is pasted to the end of the text.
678.
679On a device that is not a browser,
680.
681.RS
682.IP
683.EX
684this is a link to
685\&.UR http://\e:randomsite.org/\e:fubar
686some random site
687\&.UE ,
688given as an example
689.EE
690.RE
691.
692.IP
693usually displays like this: \[lq]this is a link to some random
694site <http://\:randomsite.org/\:fubar>, given as an example\[rq].
695.
696.IP
697The use of
698.B \e:
699to insert hyphenless breakpoints is a groff extension and can
700be omitted.
701.
702.TP
703.BI .MT " address"
704.TQ
705.BI .ME " \fR[\fPpunctuation\fR]\fP"
706Wrap an email address.
707.
708The argument of
709.B MT
710is the address; text following, until
711.BR ME ,
712is a name to be associated with the address.
713.
714Any argument to the
715.B ME
716macro is pasted to the end of the link text.
717.
718On a device that is not a browser,
719.
720.RS
721.IP
722.EX
723contact
724\&.UR fred.foonly@\e:fubar.net
725Fred Foonly
726\&.UE
727for more information
728.EE
729.RE
730.
731.IP
732usually displays like this: \[lq]contact Fred Foonly
733<fred.foonly@\:fubar.net> for more information\[rq].
734.
735.IP
736The use of
737.B \e:
738to insert hyphenless breakpoints is a groff extension and can
739be omitted.
740.
741.
742.\" -----------------------------------------------------------------
743.
744.SH "MACROS TO DESCRIBE COMMAND SYNOPSES"
745.
746The following macros are not defined on legacy Unix systems
747running classic troff.
748.
749To be certain your page will be portable to those systems, copy their
750definitions from the
751.B \%an-ext.tmac
752file of a
753.BR groff
754installation.
755.
756.PP
757These macros are a convenience for authors.
758They also assist automated translation tools and help browsers in
759recognizing command synopses and treating them differently from
760running text.
761.
762.TP
763.BI .SY " command"
764Begin synopsis.
765.
766Takes a single argument, the name of a command.
767.
768Text following, until closed by
769.BR YS ,
770is set with a hanging indentation with the width of
771.I command
772plus a space.
773.
774This produces the traditional look of a Unix command synopsis.
775.
776.TP
777.BI .OP " key value"
778Describe an optional command argument.
779.
780The arguments of this macro are set surrounded by option braces
781in the default Roman font; the first argument is printed with
782a bold face, while the second argument is typeset as italic.
783.
784.TP
785.B .YS
786This macro restores normal indentation at the end of a command
787synopsis.
788.
789.PP
790Here is a real example:
791.
792.IP
793.EX
794\&.SY groff
795\&.OP \e-abcegiklpstzCEGNRSUVXZ
796\&.OP \e-d cs
797\&.OP \e-f fam
798\&.OP \e-F dir
799\&.OP \e-I dir
800\&.OP \e-K arg
801\&.OP \e-L arg
802\&.OP \e-m name
803\&.OP \e-M dir
804\&.OP \e-n num
805\&.OP \e-o list
806\&.OP \e-P arg
807\&.OP \e-r cn
808\&.OP \e-T dev
809\&.OP \e-w name
810\&.OP \e-W name
811\&.RI [ file
812\&.IR .\e|.\e|. ]
813\&.YS
814.EE
815.
816.PP
817produces the following output:
818.
819.RS
820.PP
821.SY groff
822.OP \-abcegiklpstzCEGNRSUVXZ
823.OP \-d cs
824.OP \-f fam
825.OP \-F dir
826.OP \-I dir
827.OP \-K arg
828.OP \-L arg
829.OP \-m name
830.OP \-M dir
831.OP \-n num
832.OP \-o list
833.OP \-P arg
834.OP \-r cn
835.OP \-T dev
836.OP \-w name
837.OP \-W name
838.RI [ file
839.IR .\|.\|. ]
840.YS
841.RE
842.
843.PP
844If necessary, you might use
845.B br
846requests to control line breaking.
847.
848You can insert plain text as well; this looks like the traditional
849(unornamented) syntax for a required command argument or filename.
850.
851.
852.\" -----------------------------------------------------------------
853.
92d0a6a6
JR
854.SH "MISCELLANEOUS"
855.
465b256c
JR
856The default indentation is 7.2n in troff mode and 7n in nroff mode
857except for
92d0a6a6
JR
858.B grohtml
859which ignores indentation.
860.
861.TP
862.B .DT
4d3e9548 863Set tabs every 0.5\~inches.
465b256c 864.
92d0a6a6
JR
865Since this macro is always called during a
866.B TH
867request, it makes sense to call it only if the tab positions have been
868changed.
869.
4d3e9548
JL
870.IP
871Use of this presentation-level macro is deprecated.
872.
873It translates poorly to HTML, under which exact whitespace control
874and tabbing are not readily available.
875.
876Thus, information or distinctions that you use
877.B DT
878to express are likely to be lost.
879.
880If you feel tempted to use it, you should probably be composing a
881table using
882.BR @g@tbl (@MAN1DIR@)
883markup instead.
884.
92d0a6a6 885.TP
4d3e9548 886.BI .PD " \fR[\fPnnn\fR]\fP"
92d0a6a6 887Adjust the empty space before a new paragraph or section.
465b256c 888.
92d0a6a6 889The optional argument gives the amount of space (default unit is `v');
4d3e9548
JL
890without parameter, the value is reset to its default value (1\~line in
891nroff mode, 0.4v\~otherwise).
465b256c 892.
92d0a6a6
JR
893This affects the macros
894.BR SH ,
895.BR SS ,
896.BR TP ,
897.B LP
898(resp.\&
899.B PP
900and
901.BR P ),
902.BR IP ,
903and
904.BR HP .
905.
4d3e9548
JL
906.IP
907Use of this presentation-level macro is deprecated.
908.
909It translates poorly to HTML, under which exact control of
910inter-paragraph spacing is not readily available.
911.
912Thus, information or distinctions that you use
913.B PD
914to express are likely to be lost.
915.
92d0a6a6 916.TP
4d3e9548 917.BI .AT " \fR[\fPsystem \fR[\fPrelease\fR]]\fP"
465b256c
JR
918Alter the footer for use with \f[CR]AT&T\f[]
919.IR \%man\~pages .
92d0a6a6 920This command exists only for compatibility; don't use it.
465b256c
JR
921.
922See the
923.I groff
924info manual for more.
92d0a6a6
JR
925.
926.TP
4d3e9548 927.BI .UC " \fR[\fPversion\fR]\fP"
465b256c 928Alter the footer for use with \f[CR]BSD\f[]
4d3e9548 929.IR man\~pages .
92d0a6a6 930This command exists only for compatibility; don't use it.
465b256c
JR
931.
932See the
933.I groff
934info manual for more.
92d0a6a6
JR
935.
936.TP
4d3e9548 937.B .PT
92d0a6a6 938Print the header string.
465b256c 939.
92d0a6a6
JR
940Redefine this macro to get control of the header.
941.
942.TP
4d3e9548 943.B .BT
92d0a6a6 944Print the footer string.
465b256c 945.
92d0a6a6
JR
946Redefine this macro to get control of the footer.
947.
948.PP
949The following strings are defined:
4d3e9548 950.
92d0a6a6
JR
951.TP
952.B \e*S
953Switch back to the default font size.
954.
955.TP
956.B \e*R
957The `registered' sign.
958.
959.TP
960.B \e*(Tm
961The `trademark' sign.
962.
963.TP
964.B \e*(lq
965.TQ
966.B \e*(rq
967Left and right quote.
465b256c 968.
92d0a6a6
JR
969This is equal to `\e(lq' and `\e(rq', respectively.
970.
971.TP
972.B \e*(HF
973The typeface used to print headings and subheadings.
465b256c 974.
92d0a6a6
JR
975The default is `B'.
976.
977.PP
978If a preprocessor like
979.B @g@tbl
980or
981.B @g@eqn
465b256c
JR
982is needed, it has become usage to make the first line of the
983.I \%man\~page
984look like this:
4d3e9548 985.
92d0a6a6
JR
986.PP
987.RS
4d3e9548 988.BI '\e"\ word
92d0a6a6 989.RE
4d3e9548 990.
92d0a6a6
JR
991.PP
992Note the single space character after the double quote.
993.I word
994consists of letters for the needed preprocessors: `e' for
995.BR @g@eqn ,
996`r' for
997.BR @g@refer ,
998and `t' for
999.BR @g@tbl .
1000Modern implementations of the
1001.B man
1002program read this first line and automatically call the right
1003preprocessor(s).
1004.
1005.
1006.\" -----------------------------------------------------------------
1007.
4d3e9548
JL
1008.SH "PORTABILITY AND TROFF REQUESTS"
1009.
1010Since the
1011.B man
1012macros consist of groups of
1013.I groff
1014requests, one can, in principle, supplement the functionality of the
1015.B man
1016macros with individual
1017.I groff
1018requests where necessary.
1019.
1020See the
1021.I groff
1022info pages for a complete reference of all requests.
1023.
1024.PP
1025Note, however, that using raw troff requests is likely to make your
1026page render poorly on the (increasingly common) class of viewers that
1027render it to HTML.
1028.
1029Troff requests make implicit assumptions about things like character
1030and page sizes that may break in an HTML environment; also, many of
1031these viewers don't interpret the full troff vocabulary, a problem
1032which can lead to portions of your text being silently dropped.
1033.
1034.PP
1035For portability to modern viewers, it is best to write your page
1036entirely in the requests described on this page.
1037.
1038Further, it is best to completely avoid those we have described as
1039`presentation-level'
1040.RB ( HP ,
1041.BR PD ,
1042and
1043.BR DT ).
1044.
1045.PP
1046The macros we have described as extensions
1047.RB ( .EX / .EE ,
1048.BR .SY / .OP / .YS ,
1049.BR .UR / .UE ,
1050and
1051.BR .MT / .ME )
1052should be used with caution, as they may not yet be built in to
1053some viewer that is important to your audience.
1054.
1055If in doubt, copy the implementation onto your page.
1056.
1057.
1058.\" -----------------------------------------------------------------
1059.
92d0a6a6 1060.SH FILES
4d3e9548 1061.
92d0a6a6
JR
1062.TP
1063.B man.tmac
1064.TQ
1065.B an.tmac
1066These are wrapper files to call
1067.BR andoc.tmac .
4d3e9548 1068.
92d0a6a6
JR
1069.TP
1070.B andoc.tmac
4d3e9548 1071Use this file in case you don't know whether the
92d0a6a6
JR
1072.B man
1073macros or the
1074.B mdoc
1075package should be used.
4d3e9548
JL
1076Multiple man pages (in either format) can be handled.
1077.
92d0a6a6
JR
1078.TP
1079.B an-old.tmac
4d3e9548 1080Most
92d0a6a6
JR
1081.B man
1082macros are contained in this file.
4d3e9548
JL
1083.
1084.TP
1085.B an-ext.tmac
1086The extension macro definitions for
1087.BR .SY ,
1088.BR .OP ,
1089.BR .YS ,
1090.BR .TQ ,
1091.BR .EX/.EE ,
1092.BR .UR/.UE ,
1093and
1094.BR .MT/.ME
1095are contained in this file.
1096.
1097It is written in classic troff, and released for free re-use,
1098and not copylefted; manual page authors concerned about
1099portability to legacy Unix systems are encouraged to copy these
1100definitions into their pages, and maintainers of troff
1101or its workalikes are encouraged to re-use them.
1102.
92d0a6a6
JR
1103.TP
1104.B man.local
1105Local changes and customizations should be put into this file.
1106.
1107.
1108.\" -----------------------------------------------------------------
1109.
1110.SH "SEE ALSO"
1111.
92d0a6a6
JR
1112.PP
1113.BR @g@tbl (@MAN1EXT@),
1114.BR @g@eqn (@MAN1EXT@),
1115.BR @g@refer (@MAN1EXT@),
465b256c
JR
1116.BR man (1),
1117.BR man (7),
4d3e9548 1118.BR groff_mdoc (7)
92d0a6a6
JR
1119.
1120.
1121.\" -----------------------------------------------------------------
1122.
4d3e9548 1123.SH AUTHORS
92d0a6a6 1124.
465b256c 1125This manual page was originally written for the Debian GNU/Linux
4d3e9548
JL
1126system by
1127.MT sgk@debian.org
1128Susan G. Kleinmann
1129.ME .
1130.
1131It was corrected and updated by
1132.MT wl@gnu.org
1133Werner Lemberg
1134.ME .
1135.
1136The extension macros were documented (and partly designed) by
1137.MT esr@thyrsus.com
1138Eric S. Raymond
1139.ME ;
1140he also wrote the portability advice.
92d0a6a6
JR
1141.
1142.\" Local Variables:
1143.\" mode: nroff
1144.\" End: