* tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
[s-roff.git] / src / devices / grohtml / grohtml.man
bloba3b0450778a21ef01aaefc5b535d828c5a7391a8
1 .ig
2 Copyright (C) 1999-2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4 Permission is granted to make and distribute verbatim copies of this
5 manual provided the copyright notice and this permission notice are
6 preserved on all copies.
8 Permission is granted to copy and distribute modified versions of this
9 manual under the conditions for verbatim copying, provided that the
10 entire resulting derived work is distributed under the terms of a
11 permission notice identical to this one.
13 Permission is granted to copy and distribute translations of this
14 manual into another language, under the above conditions for modified
15 versions, except that this permission notice may be included in
16 translations approved by the Free Software Foundation instead of in
17 the original English.
21 .\" Like TP, but if specified indent is more than half
22 .\" the current line-length - indent, use the default indent.
23 .de Tp
24 .  ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
25 .  el .TP "\\$1"
29 .TH GROHTML @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
32 .SH NAME
33 grohtml \- html driver for groff
36 .SH SYNOPSIS
37 .nr a \n(.j
38 .ad l
39 .nr i \n(.i
40 .in +\w'\fBgrohtml 'u
41 .ti \niu
42 .B grohtml
44 .de OP
45 .  ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]"
46 .  el .RB "[\ " "\\$1" "\ ]"
49 .OP \-vbphlrn
50 .OP \-D dir
51 .OP \-F dir
52 .OP \-i \%resolution
53 .OP \-I \%image-stem
54 .OP \-o \%image-vertical-offset
55 .OP \-j \%filename
56 .OP \-a \%aa-text-bits
57 .OP \-g \%aa-graphic-bits
58 .OP \-s size
59 .RI "[\ " files\|.\|.\|. "\ ]"
60 .br
61 .ad \na
64 .SH DESCRIPTION
65 The
66 .B grohtml
67 front end (which consists of a preprocessor,
68 .BR pre-grohtml ,
69 and a device driver,
70 .BR post-grohtml )
71 translates the output of GNU
72 .B troff
73 to html.
74 Users should always invoke
75 .B grohtml
76 via the groff command with a
77 .B \-Thtml
78 option.
79 If no files are given,
80 .B grohtml
81 will read the standard input.
82 A filename of
83 .B \-
84 will also cause
85 .B grohtml
86 to read the standard input.
87 Html output is written to the standard output.
88 When
89 .B grohtml
90 is run by
91 .B groff
92 options can be passed to
93 .B grohtml
94 using
95 .BR groff 's
96 .B \-P
97 option.
100 .SH OPTIONS
102 .BI \-a aa-text-bits
103 Number of bits of antialiasing information to be used by
104 .I text
105 when generating png images.
106 The default is\~4 but valid values are 0, 1, 2, and\~4.
107 Note your version of
108 .B gs
109 needs to support the
110 .B \%\-dTextAlphaBits
112 .B \%\-dGraphicAlphaBits
113 options in order to exploit antialiasing.
114 A value of\~0 stops
115 .B grohtml
116 from issuing antialiasing commands to
117 .BR gs .
120 .BI \-g aa-graphic-bits
121 Number of bits of antialiasing information to be used by
122 .I graphics
123 when generating png images.
124 The default is\~4 but valid values are 0, 1, 2, and\~4.
125 Note your version of
126 .B gs
127 needs to support the
128 .B \%\-dTextAlphaBits
130 .B \%\-dGraphicAlphaBits
131 options in order to exploit antialiasing.
132 A value of\~0 stops
133 .B grohtml
134 from issuing antialiasing commands to
135 .BR gs .
138 .B \-b
139 Initialize the background color to white.
142 .B \-h
143 Generate section and number headings by using
144 .BR <B> .\|.\|. </B>
145 and increasing the font size, rather than using the
146 .BI <H n >\c
147 \&.\|.\|.\c
148 .BI </H n >
149 tags.
152 .B \-l
153 Turn off the production of automatic section links at the top of the
154 document.
157 .B \-r
158 Turn off the automatic header and footer line (html rule).
161 .B \-s size
162 Set the base point size of the source file.
163 Thereafter when this point size is used in the source it will correspond
164 to the html base size.
165 Every increase of two points in the source will yield a
166 .B <big>
167 tag, and conversely when a decrease of two points is seen a
168 .B <small>
169 tag is emitted.
172 .B \-n
173 Generate simple heading anchors whenever a section/number heading is found.
174 Without the option the anchor value is the textual heading.
175 This can cause problems when a heading contains a `?' on older versions of
176 some browsers (Netscape).
177 This flag is automatically turned on if a heading contains an image.
180 .B \-p
181 Display page rendering progress to stderr.
182 .B grohtml
183 only displays a page number when an image is required.
186 .BI \-F dir
187 Prepend directory
188 .IB dir /dev name
189 to the search path for font and device description files;
190 .I name
191 is the name of the device, usually
192 .BR html .
195 .BI \-i resolution
196 Select the resolution for all images.
197 By default this is 100 pixels per inch.
198 Example:
199 .B \-i200
200 indicates 200 pixels per inch.
203 .BI \-I stem
204 Determine the image stem name.
205 If omitted grohtml uses
206 .BI \%grohtml- XXX
207 .RI ( XXX
208 is the process ID).
211 .BI \-o vertical-offset
212 Specify the vertical offset of images in points.
215 .BI \-D dir
216 Inform
217 .B grohtml
218 to place all image files into directory
219 .IR dir .
222 .BI \-j filename
223 Inform
224 .B grohtml
225 to split the html output into multiple files.
227 .I filename
228 is the stem and all level one section headings start a new
229 file, named
230 .IR filename-n.html .
233 .B \-v
234 Print the version number.
237 .SH USAGE
238 There are styles called
239 .BR R ,
240 .BR I ,
241 .BR B ,
243 .B BI
244 mounted at font positions 1 to 4.
247 .SH DEPENDENCIES
248 .B grohtml
249 is dependent upon the png utilities
250 .RB ( \%pnmcut ,
251 .BR \%pnmcrop ,
252 .BR \%pnmtopng )
253 and GhostScript
254 .RB ( gs ).
255 .B \%pnmtopng
256 (version 2.37.6 or greater)
258 .B \%pnmcut
259 from the netpbm package (version 9.16 or greater) will work also.
260 It is also dependent upon
261 .B \%psselect
262 from the
263 .B PSUtils
264 package.
265 Images are generated whenever a table, picture, equation or line is
266 encountered.
269 .SH BUGS
270 .B Grohtml
271 has been completely redesigned and rewritten.
272 It is still beta code.
275 .SH "SEE ALSO"
276 .BR afmtodit (@MAN1EXT@),
277 .BR groff (@MAN1EXT@),
278 .BR @g@troff (@MAN1EXT@),
279 .BR psbb (@MAN1EXT@),
280 .BR groff_out (@MAN5EXT@),
281 .BR groff_font (@MAN5EXT@),
282 .BR groff_char (@MAN7EXT@)
284 .\" Local Variables:
285 .\" mode: nroff
286 .\" End: