Seth Woolley's Man Viewer

groff_www(7) - groff_www - groff macros for authoring web pages - man 7 groff_www

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

GROFF_WWW(7)                                                      GROFF_WWW(7)

       groff_www - groff(1,7) macros for authoring web pages

       groff(1,7) -mwww [ options ] file(1,n) ...

       This  manual  page describes the GNU -mwww macro package, which is part
       of the groff(1,7) document formatting system.  The manual  page  is  very  a
       basic  guide,  and the html device driver (grohtml) has been completely
       rewritten but still remains as in(1,8) an alpha state.  It has been included
       into the distribution so that a lot of people have a chance to test it.
       Note that this macro file(1,n) will be automatically called (via the troffrc
       file(1,n)) if(3,n) you use -Thtml.

       To  see  the hyperlinks in(1,8) action, please format this man(1,5,7) page with the
       grohtml device.

       Here is a summary of the functions found in(1,8) this macro set.
       .JOBNAME            split(1,n) output into multiple files
       .HX                 automatic heading level cut off;
                           $1 point for sections/headers
       .BCL                specify colours on a web page
       .BGIMG              specify background image
       .URL                create a url using two parameters
       .FTP                create an ftp reference
       .MTO                create a html email address
       .FTP                create an ftp reference
       .TAG                generate an html name
       .IMG                include an image file(1,n)
       .PIMG               include png image
       .MPIMG              place png on the margin and
                           wrap text around it
       .HnS                begin heading
       .HnE                end heading
       .LK                 emit automatically collected links.
       .HR                 produce a horizontal rule
       .NHR                suppress automatic generation of rules.
       .HTL                only generate HTML title
       .ULS                unorder list begin
       .ULE                unorder list end
       .LI                 insert a list item
       .DC                 generate a drop capital
       .HTML               pass an html raw(3x,7,8,3x cbreak) request to the
                           device driver

       Output of the pic, eqn, refer, and tbl preprocessors is  acceptable  as

              Split output into multiple files.  Its argument is the file(1,n) stem
              name for future output files.   This  option  is  equivalent  to
              grohtml's -j option.

       HX     Specify  the  cut  off  depth when generating links from section
              headings.  For example, a parameter of 2 would cause grohtml  to
              generate  a list of links for .NH 1 and .NH 2 but not for .NH 3.

                     .HX 0

              will tell grohtml that no heading links  should  be  created  at
              all.   Another  method  for turning automatic headings off is by
              issuing the the command line switch(1,n) -P-l to groff(1,7).

       BCL    This macro takes five parameters: foreground, background, active
              hypertext  link(1,2),  hypertext  link(1,2)  not  yet visited, and visited
              hypertext link(1,2) colour.

       BGIMG  the only parameter to this macro is the background image file.

       URL    generates a URL using either two or three arguments.  The  first
              parameter is the actual URL, the second is the name of the link(1,2),
              and the third is optional stuff to be printed immediately after-
              wards.   Hyphenation  is disabled while printing the actual URL;
              explicit breakpoints should be  inserted  with  the  \:  escape.
              Here is how to encode foo <>:

                     .URL http://\:foo.\:org/ foo :

              If  this  is  processed by a device other than -Thtml it appears

                     foo <>:

              The URL macro can be of any type; for example we can reference
              Eric Raymond's pic guide <pic.html> by:

                     .URL pic.html "Eric Raymond's pic guide"

       MTO    Generate  an email html reference.  The first argument is manda-
              tory as the email address.  The optional second argument is  the
              text  you see in(1,8) your browser, and an optional third argument is
              stuff printed immediately afterwards.  Hyphenation  is  disabled
              while  printing the actual email address.  For example, Joe User
              <> was achieved by the following macro:

                     .MTO "Joe User"

              Note that all the URLs actually are treated as consuming no tex-
              tual space in(1,8) groff.  This could be considered as a bug since it
              causes some problems.  To circumvent this,  www.tmac  inserts  a
              zero-width  character which expands to a harmless space (only if(3,n)
              run with -Thtml).

       FTP    indicates that data can be obtained via ftp.  The first argument
              is  the  url  and the second is the browser text.  A third argu-
              ment, similar to the macros above, is intended for stuff printed
              immediately  afterwards.  The second and the third parameter are
              optional.  Hyphenation is disabled  while  printing  the  actual
              URL.  As an example, here the location of the GNU ftp server
              <>.  The macro example above was specified by:

                     .FTP ftp://\ "GNU ftp server" .

       TAG    Generates  an html name tag from its argument.  This can then be
              referenced using the URL <#URL> macro.  As you can see, you must
              precede the tag name with # since it is a local reference.  This
              link(1,2) was achieved via placing  a  TAG  in(1,8)  the  URL  description
              above; the source looks like this:

                     .B URL
                     .TAG URL
                     a URL using either two or three arguments.

       IMG    Include  a picture into the document.  The first argument is the
              horizontal location: right, left, or center  (-R,  -L,  or  -C).
              The  second  argument  is  the filename.  The optional third and
              fourth arguments are the width and  height.   If  the  width  is
              absent  it  defaults  to  1  inch.   If  the height is absent it
              defaults to the width.  This maps onto an html img tag.  If  you
              are  including  a png image then it is advisable to use the PIMG

       PIMG   Include an image in(1,8) PNG format.  This macro  takes  exactly  the
              same  parameters as the IMG macro; it has the advantage of work-
              ing with postscript and html devices also since it can automati-
              cally convert the image into the EPS format, using the following
              programs of the netpbm package: pngtopnm, pnmcrop, and  pnmtops.
              If  the  document isn't processed with -Thtml it is necessary to
              use the -U option of groff.

       MPIMG  Place a PNG image on the margin and wrap text  around  it.   The
              first parameter is the alignment: left or right (-L or -R).  The
              second argument is the filename.  The optional third and  fourth
              arguments  are  the width and height.  If the width is absent it
              defaults to 1 inch.  If the height is absent it defaults to  the

       HnS    Begin  heading.   The  heading  level  is specified by the first
              parameter.  Use this macro of your headings contain URLs.  Exam-

                     .HnS 1
                     GNU Troff
                     .URL (Groff)
                     -- a
                     .URL GNU
                     Hosted by
                     .URL FFII .

       HnE    End heading.

       LK     Force grohtml to place the automatically generated links at this
              position.  If this manual page has been  processed  with  -Thtml
              those links can be seen right here.

       By  default  grohtml generates links to all section headings and places
       these at the top of the html document. (See LINKS <#LK> for details  of
       how to switch(1,n) this off or alter the position).

       HR     Generate a full-width horizontal rule.

       NHR    Suppress  generation  of  the top and bottom rules which grohtml
              emits by default.

       HTL    Generate an HTML title only.  This differs from the TL macro  of
              the  ms  macro package which generates both an HTML title and an
              H1 heading.  Use it to provide an HTML title  as  search  engine
              fodder but a graphic title in(1,8) the document.

       HTML   All  text after this macro is treated as raw(3x,7,8,3x cbreak) html.  If the docu-
              ment is processed without -Thtml  then  the  macro  is  ignored.
              Internally,  this  macro  is  used as a building block for other
              higher-level macros.

              For example, the BGIMG macro is defined as

                     .de BGIMG
                     .   HTML <body background=\$1>

       DC     Produce a drop capital.  The first parameter is the letter to be
              dropped  and enlarged, the second parameter is the ajoining text
              whose height the first letter should not exceed.   The  optional
              third parameter is the color of the dropped letter.

       tbl information is currently rendered as a PNG image.


       groff(1,7)(1), troff(1) grohtml(1), netpbm(1)

       grohtml was written by Gaius Mulley <>

       Report bugs to the Groff Bug Mailing List <>.  Include
       a complete, self-contained example that will allow the bug to be repro-
       duced, and say which version(1,3,5) of groff(1,7) you are using.

Groff Version 1.19.1             18 July 2003                     GROFF_WWW(7)

References for this manual (incoming links)