1GROHTML(1)                  General Commands Manual                 GROHTML(1)
2
3
4

NAME

6       grohtml - HTML driver for groff
7

SYNOPSIS

9       grohtml [-bhlnprVy] [-a aa-text-bits] [-D dir] [-F dir] [-g aa-graphic-
10               bits] [-i resolution] [-I image-stem] [-j filename] [-o image-
11               vertical-offset] [-s size] [-S level] [-x html-dialect] [file
12               ...]
13
14       grohtml --help
15
16       grohtml -v
17       grohtml --version
18

DESCRIPTION

20       The grohtml front end (which consists of a  preprocessor,  pre-grohtml,
21       and  a  device driver, post-grohtml) translates the output of GNU troff
22       to HTML.  Users should always invoke grohtml via the groff command with
23       a -Thtml option.  If no files are given, grohtml will read the standard
24       input.  A filename of - will also cause grohtml to  read  the  standard
25       input.  Html output is written to the standard output.  When grohtml is
26       run by groff options can be passed to grohtml using groff's -P option.
27
28       grohtml invokes groff twice.  In the first pass,  pictures,  equations,
29       and  tables  are  rendered  using the ps device, and in the second pass
30       HTML output is generated by the html device.
31
32       grohtml always writes output in UTF-8 encoding and has  built-in  enti‐
33       ties for all non-composite unicode characters.  In spite of this, groff
34       may issue warnings about unknown special characters if  they  can't  be
35       found  during  the  first  pass.   Such  warnings can be safely ignored
36       unless the special characters appear inside a table or equation.
37

OPTIONS

39       -aaa-text-bits
40              Number of bits of antialiasing information to be  used  by  text
41              when  generating  PNG images.  The default is 4 but valid values
42              are 0, 1, 2, and 4.  Note your version of gs  needs  to  support
43              the  -dTextAlphaBits  and -dGraphicAlphaBits options in order to
44              exploit antialiasing.  A value of 0 stops grohtml  from  issuing
45              antialiasing commands to gs.
46
47       -b     Initialize the background color to white.
48
49       -Ddir  Inform grohtml to place all image files into directory dir.
50
51       -e     This  option should not be directly invoked by the user as it is
52              an internal option utilized by groff when -Thtml or  -Txhtml  is
53              specified.   It is used by the grohtml preprocessor to determine
54              whether eqn should attempt to  produce  MathML  (if  -Txhtml  is
55              specified).
56
57       -Fdir  Prepend  directory  dir/devname  to the search path for font and
58              device description files; name is the name of the  device,  usu‐
59              ally html.
60
61       -gaa-graphic-bits
62              Number  of bits of antialiasing information to be used by graph‐
63              ics when generating PNG images.  The default is 4 but valid val‐
64              ues  are  0, 1, 2, and 4.  Note your version of gs needs to sup‐
65              port the -dTextAlphaBits and -dGraphicAlphaBits options in order
66              to  exploit antialiasing.  A value of 0 stops grohtml from issu‐
67              ing antialiasing commands to gs.
68
69       -h     Generate section and number headings  by  using  <B>...</B>  and
70              increasing  the  font  size,  rather than using the <Hn>...</Hn>
71              tags.
72
73       -iresolution
74              Select the resolution for all images.  By default  this  is  100
75              pixels per inch.  Example: -i200 indicates 200 pixels per inch.
76
77       -Istem Determine   the  image  stem  name.   If  omitted  grohtml  uses
78              grohtml-XXX (XXX is the process ID).
79
80       -jfilename
81              Inform grohtml to split the HTML  output  into  multiple  files.
82              The filename is the stem and specified section headings (default
83              is level one) start a new file, named filename-n.html.
84
85       -l     Turn off the production of automatic section links at the top of
86              the document.
87
88       -n     Generate  simple heading anchors whenever a section/number head‐
89              ing is found.  Without the option the anchor value is  the  tex‐
90              tual heading.  This can cause problems when a heading contains a
91              ‘?’a on older versions of some browsers (Netscape).   This  flag
92              is automatically turned on if a heading contains an image.
93
94       -overtical-offset
95              Specify the vertical offset of images in points.
96
97       -p     Display  page  rendering  progress to stderr.  grohtml only dis‐
98              plays a page number when an image is required.
99
100       -r     Turn off the automatic header and footer line (HTML rule).
101
102       -s size
103              Set the base point size of the  source  file.   Thereafter  when
104              this  point size is used in the source it will correspond to the
105              HTML base size.  Every increase of two points in the source will
106              yield  a <big> tag, and conversely when a decrease of two points
107              is seen a <small> tag is emitted.
108
109       -Slevel
110              When splitting HTML output,  split  at  the  heading  level  (or
111              higher) defined by level.
112
113       -v     Print the version number.
114
115       -V     Create  an  XHTML or HTML validator button at the bottom of each
116              page of the document.
117
118       -xdialect
119              Select HTML dialect.  Currently, dialect should  be  either  the
120              digit  4  or the letter x which indicates whether grohtml should
121              generate HTML 4 or XHTML, respectively.  This option should  not
122              be directly invoked by the user as it is an internal option uti‐
123              lized by groff when -Thtml or -Txhtml is specified.
124
125       -y     Produce a right-justified groff signature at the end of the doc‐
126              ument.  This is only generated if the -V flag is also specified.
127

USAGE

129       There  are  styles  called  R, I, B, and BI mounted at font positions 1
130       to 4.
131

DEPENDENCIES

133       grohtml is dependent upon the PNG utilities (pnmcut, pnmcrop, pnmtopng)
134       and  GhostScript (gs).  pnmtopng (version 2.37.6 or greater) and pnmcut
135       from the netpbm package (version 9.16 or greater) will work  also.   It
136       is  also  dependent upon psselect from the PSUtils package.  Images are
137       generated whenever a table, picture, equation or line is encountered.
138

FILES

140       grohtml uses temporary files.  See the groff(1) man  page  for  details
141       where such files are created.
142

ENVIRONMENT

144       GROFF_FONT_PATH
145              A  list of directories in which to search for the devname direc‐
146              tory  in  addition  to  the  default  ones.   See  troff(1)  and
147              groff_font(5) for more details.
148
149       SOURCE_DATE_EPOCH
150              A  timestamp  (expressed as seconds since the Unix epoch) to use
151              as the creation timestamp in place of the current time.
152

BUGS

154       Grohtml has been completely redesigned and rewritten.  It is still beta
155       code.
156

SEE ALSO

158       afmtodit(1),  groff(1), troff(1), psbb(1), groff_out(5), groff_font(5),
159       groff_char(7)
160
161
162
163groff 1.22.4                    3 November 2020                     GROHTML(1)
Impressum