groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / src / roff / nroff / nroff.man
CommitLineData
92d0a6a6 1.ig
4d3e9548
JL
2Copyright (C) 1989-2001, 2002, 2003, 2005, 2007, 2009
3 Free Software Foundation, Inc.
92d0a6a6
JR
4
5Permission is granted to make and distribute verbatim copies of
6this manual provided the copyright notice and this permission notice
7are preserved on all copies.
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..
465b256c 20.
92d0a6a6 21.TH @G@NROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
465b256c 22.
92d0a6a6
JR
23.SH NAME
24@g@nroff \- emulate nroff command with groff
465b256c 25.
92d0a6a6 26.SH SYNOPSIS
4d3e9548
JL
27.
28.\" Redefine OP because no spaces are allowed after an option's argument.
92d0a6a6 29.de OP
4d3e9548
JL
30. ie \\n(.$-1 \
31. RI "[\fB\\$1\fP" "\\$2" "]"
32. el \
33. RB "[" "\\$1" "]"
92d0a6a6 34..
4d3e9548
JL
35
36.SY @g@nroff
37.OP \-CchipStUvwW
92d0a6a6 38.OP \-d cs
465b256c 39.OP \-M dir
92d0a6a6
JR
40.OP \-m name
41.OP \-n num
42.OP \-o list
43.OP \-r cn
44.OP \-T name
4d3e9548
JL
45.RI [ file\~ .\|.\|.]
46.
47.SY @g@nroff
48.B \-\-help
49.
50.SY @g@nroff
51.B \-v
52|
53.B \-\-version
54.YS
465b256c 55.
92d0a6a6
JR
56.SH DESCRIPTION
57The
58.B @g@nroff
59script emulates the
60.B nroff
61command using groff.
4d3e9548 62Only
92d0a6a6
JR
63.BR ascii ,
64.BR latin1 ,
65.BR utf8 ,
66and
67.B cp1047
4d3e9548
JL
68are devices accepted by
69.BR nroff
70to select the output encoding emitted by
92d0a6a6
JR
71.BR grotty ,
72groff's TTY output device.
4d3e9548
JL
73If neither the
74.B GROFF_TYPESETTER
75environment variable nor the
76.B \-T
77command line option (which overrides the environment variable)
78specifies a (valid) device,
92d0a6a6
JR
79.B @g@nroff
80checks the current locale to select a default output device.
81It first tries the
82.B locale
83program, then the environment variables
84.BR LC_ALL ,
85.BR LC_CTYPE ,
86and
87.BR LANG ,
88and finally the
89.B LESSCHARSET
90environment variable.
91.PP
92The
93.B \-h
94and
95.B \-c
96options
97are equivalent to
98.BR grotty 's
99options
100.B \-h
101(using tabs in the output) and
102.B \-c
103(using the old output scheme instead of SGR escape sequences).
104The
105.BR \-d ,
106.BR \-C ,
107.BR \-i ,
465b256c 108.BR \-M ,
92d0a6a6
JR
109.BR \-m ,
110.BR \-n ,
111.BR \-o ,
4d3e9548
JL
112.BR \-r ,
113.BR \-w ,
92d0a6a6 114and
4d3e9548 115.B \-W
92d0a6a6
JR
116options have the effect described in
117.BR @g@troff (@MAN1EXT@).
118In addition,
119.B @g@nroff
120silently ignores the options
121.BR \-e ,
122.BR \-q ,
123and
124.BR \-s
125(which are not implemented in
126.BR @g@troff ).
4d3e9548 127Options
92d0a6a6
JR
128.B \-p
129(pic),
130.B \-t
131(tbl),
132.B \-S
133(safer), and
134.B \-U
135(unsafe) are passed to
4d3e9548 136.BR groff .
92d0a6a6 137.B \-v
4d3e9548
JL
138and
139.B \-\-version
140show the version number,
141.B \-\-help
142prints a help message.
465b256c 143.
92d0a6a6
JR
144.SH ENVIRONMENT
145.TP
146.SM
4d3e9548
JL
147.B GROFF_TYPESETTER
148The default device for
149.BR groff .
150If not set (which is the normal case), it defaults to `ps'.
151.
152.TP
153.SM
92d0a6a6
JR
154.B GROFF_BIN_PATH
155A colon separated list of directories in which to search for the
156.B groff
157executable before searching in PATH. If unset, `@BINDIR@' is used.
4d3e9548 158.
92d0a6a6
JR
159.SH NOTES
160This shell script is basically intended for use with
4d3e9548 161.BR man (1).
92d0a6a6
JR
162nroff-style character definitions (in the file tty-char.tmac) are also
163loaded to emulate unrepresentable glyphs.
465b256c 164.
92d0a6a6
JR
165.SH "SEE ALSO"
166.BR groff (@MAN1EXT@),
167.BR @g@troff (@MAN1EXT@),
168.BR grotty (@MAN1EXT@)
169.
170.\" Local Variables:
171.\" mode: nroff
172.\" End: