groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / src / devices / grohtml / grohtml.man
CommitLineData
92d0a6a6 1.ig
4d3e9548
JL
2Copyright (C) 1999-2000, 2001, 2002, 2003, 2004, 2006, 2007, 2009
3 Free Software Foundation, Inc.
92d0a6a6
JR
4
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.
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
JR
20.
21.
92d0a6a6
JR
22.\" Like TP, but if specified indent is more than half
23.\" the current line-length - indent, use the default indent.
24.de Tp
465b256c
JR
25. ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
26. el .TP "\\$1"
92d0a6a6 27..
465b256c
JR
28.
29.
92d0a6a6
JR
30.TH GROHTML @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
31.
465b256c 32.
92d0a6a6
JR
33.SH NAME
34grohtml \- html driver for groff
35.
465b256c 36.
92d0a6a6
JR
37.SH SYNOPSIS
38.nr a \n(.j
39.ad l
40.nr i \n(.i
41.in +\w'\fBgrohtml 'u
42.ti \niu
43.B grohtml
465b256c 44.
92d0a6a6 45.de OP
465b256c
JR
46. ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
47. el .RB "[\ " "\\$1" "\ ]"
92d0a6a6 48..
465b256c
JR
49.
50.OP \-bhlnprv
51.OP \-a \%aa-text-bits
92d0a6a6
JR
52.OP \-D dir
53.OP \-F dir
465b256c
JR
54.OP \-g \%aa-graphic-bits
55.OP \-i \%resolution
92d0a6a6 56.OP \-I \%image-stem
465b256c 57.OP \-j \%filename
92d0a6a6 58.OP \-o \%image-vertical-offset
465b256c
JR
59.OP \-s size
60.OP \-S level
4d3e9548 61.OP \-x \%html-dialect
92d0a6a6
JR
62.RI "[\ " files\|.\|.\|. "\ ]"
63.br
64.ad \na
65.
465b256c 66.
92d0a6a6
JR
67.SH DESCRIPTION
68The
69.B grohtml
70front end (which consists of a preprocessor,
71.BR pre-grohtml ,
72and a device driver,
73.BR post-grohtml )
74translates the output of GNU
75.B troff
76to html.
77Users should always invoke
78.B grohtml
79via the groff command with a
80.B \-Thtml
81option.
82If no files are given,
83.B grohtml
84will read the standard input.
85A filename of
86.B \-
87will also cause
88.B grohtml
89to read the standard input.
90Html output is written to the standard output.
91When
92.B grohtml
93is run by
94.B groff
95options can be passed to
96.B grohtml
97using
98.BR groff 's
99.B \-P
100option.
465b256c
JR
101.
102.
92d0a6a6
JR
103.SH OPTIONS
104.TP
105.BI \-a aa-text-bits
106Number of bits of antialiasing information to be used by
107.I text
108when generating png images.
465b256c 109The default is\~4 but valid values are 0, 1, 2, and\~4.
92d0a6a6
JR
110Note your version of
111.B gs
112needs to support the
113.B \%\-dTextAlphaBits
114and
115.B \%\-dGraphicAlphaBits
116options in order to exploit antialiasing.
117A value of\~0 stops
118.B grohtml
119from issuing antialiasing commands to
120.BR gs .
465b256c
JR
121.
122.TP
123.B \-b
124Initialize the background color to white.
125.
126.TP
127.BI \-D dir
128Inform
129.B grohtml
130to place all image files into directory
131.IR dir .
132.
133.TP
4d3e9548
JL
134.B \-e
135This option should not be directly invoked by the user as it is
136an internal option utilized by
137.B groff
138when
139.B \-Thtml
140or
141.B \-Txhtml
142is specified.
143It is used by the
144.B grohtml
145preprocessor to determine whether
146.B eqn
147should attempt to produce MathML (if
148.B \-Txhtml
149is specified).
150.
151.TP
465b256c
JR
152.BI \-F dir
153Prepend directory
154.IB dir /dev name
155to the search path for font and device description files;
156.I name
157is the name of the device, usually
158.BR html .
159.
92d0a6a6
JR
160.TP
161.BI \-g aa-graphic-bits
162Number of bits of antialiasing information to be used by
163.I graphics
164when generating png images.
465b256c 165The default is\~4 but valid values are 0, 1, 2, and\~4.
92d0a6a6
JR
166Note your version of
167.B gs
168needs to support the
169.B \%\-dTextAlphaBits
170and
171.B \%\-dGraphicAlphaBits
172options in order to exploit antialiasing.
173A value of\~0 stops
174.B grohtml
175from issuing antialiasing commands to
176.BR gs .
465b256c 177.
92d0a6a6 178.TP
465b256c
JR
179.B \-h
180Generate section and number headings by using
92d0a6a6
JR
181.BR <B> .\|.\|. </B>
182and increasing the font size, rather than using the
183.BI <H n >\c
184\&.\|.\|.\c
185.BI </H n >
186tags.
465b256c 187.
92d0a6a6
JR
188.TP
189.BI \-i resolution
190Select the resolution for all images.
191By default this is 100 pixels per inch.
465b256c
JR
192Example:
193.B \-i200
194indicates 200 pixels per inch.
195.
92d0a6a6
JR
196.TP
197.BI \-I stem
198Determine the image stem name.
199If omitted grohtml uses
465b256c 200.BI \%grohtml- XXX
92d0a6a6
JR
201.RI ( XXX
202is the process ID).
465b256c 203.
92d0a6a6
JR
204.TP
205.BI \-j filename
206Inform
207.B grohtml
208to split the html output into multiple files.
209The
210.I filename
465b256c
JR
211is the stem and specified section headings
212(default is level one) start a new file, named
92d0a6a6 213.IR filename-n.html .
465b256c
JR
214.
215.TP
216.B \-l
217Turn off the production of automatic section links at the top of the
218document.
219.
220.TP
221.B \-n
222Generate simple heading anchors whenever a section/number heading is found.
223Without the option the anchor value is the textual heading.
224This can cause problems when a heading contains a `?' on older versions of
225some browsers (Netscape).
226This flag is automatically turned on if a heading contains an image.
227.
228.TP
229.BI \-o vertical-offset
230Specify the vertical offset of images in points.
231.
232.TP
233.B \-p
234Display page rendering progress to stderr.
235.B grohtml
236only displays a page number when an image is required.
237.
238.TP
239.B \-r
240Turn off the automatic header and footer line (html rule).
241.
242.TP
243.B \-s size
244Set the base point size of the source file.
245Thereafter when this point size is used in the source it will correspond
246to the html base size.
247Every increase of two points in the source will yield a
248.B <big>
249tag, and conversely when a decrease of two points is seen a
250.B <small>
251tag is emitted.
252.
253.TP
254.BI \-S level
255When splitting html output,
256split at the heading level (or higher) defined by
257.IR level .
258.
92d0a6a6
JR
259.TP
260.B \-v
261Print the version number.
262.
4d3e9548
JL
263.TP
264.B \-V
265Create an XHTML or HTML validator button at the bottom of each page of
266the document.
267.
268.TP
269.BI \-x dialect
270Select HTML dialect.
271Currently,
272.I dialect
273should be either the digit\~\c
274.B 4
275or the letter\~\c
276.B x
277which indicates whether
278.B grohtml
279should generate HTML\~4 or XHTML, respectively.
280This option should not be directly invoked by the user as it is
281an internal option utilized by
282.B groff
283when
284.B \-Thtml
285or
286.B \-Txhtml
287is specified.
288.
289.TP
290.B \-y
291Produce a right-justified groff signature at the end of the document.
292This is only generated if the
293.B \-V
294flag is also specified.
295.
465b256c 296.
92d0a6a6
JR
297.SH USAGE
298There are styles called
299.BR R ,
300.BR I ,
301.BR B ,
302and
303.B BI
465b256c
JR
304mounted at font positions 1 to\~4.
305.
306.
92d0a6a6
JR
307.SH DEPENDENCIES
308.B grohtml
309is dependent upon the png utilities
465b256c
JR
310.RB ( \%pnmcut ,
311.BR \%pnmcrop ,
312.BR \%pnmtopng )
92d0a6a6
JR
313and GhostScript
314.RB ( gs ).
315.B \%pnmtopng
316(version 2.37.6 or greater)
317and
318.B \%pnmcut
319from the netpbm package (version 9.16 or greater) will work also.
320It is also dependent upon
321.B \%psselect
322from the
323.B PSUtils
324package.
325Images are generated whenever a table, picture, equation or line is
326encountered.
465b256c
JR
327.
328.
4d3e9548
JL
329.SH ENVIRONMENT
330.TP
331.SM
332.B GROFF_FONT_PATH
333A list of directories in which to search for the
334.BI dev name
335directory in addition to the default ones.
336.
337See
338.BR @g@troff (@MAN1EXT@)
339and
340.BR \%groff_font (@MAN5EXT@)
341for more details.
342.
343.
92d0a6a6
JR
344.SH BUGS
345.B Grohtml
346has been completely redesigned and rewritten.
465b256c
JR
347It is still beta code.
348.
349.
92d0a6a6
JR
350.SH "SEE ALSO"
351.BR afmtodit (@MAN1EXT@),
352.BR groff (@MAN1EXT@),
353.BR @g@troff (@MAN1EXT@),
354.BR psbb (@MAN1EXT@),
355.BR groff_out (@MAN5EXT@),
356.BR groff_font (@MAN5EXT@),
357.BR groff_char (@MAN7EXT@)
358.
359.\" Local Variables:
360.\" mode: nroff
361.\" End: