groff [ __-abeghilpstvzCEGNRSUVXZ__? __-w__''name''? [ __-W__''name''? __-m__''name''? [ __-F__''dir''? __-I__''dir''? [ __-T__''dev''? __-f__''fam''? [ __-M__''dir''? __-d__''cs''? [ __-r__''cn''? __-n__''num''? [ __-o__''list''? __-P__''arg''? [ __-L__''arg''? ''files...''?
groff is a front-end to the groff document formatting system. Normally it runs the troff program and a postprocessor appropriate for the selected device. Available devices are:
For !PostScript printers and previewers
For TeX dvi format.
For a 75dpi X11 previewer.
For a 100dpi X11 previewer.
For typewriter-like devices.
For typewriter-like devices. Unlike ascii, this device is 8 bit clean. This device is intended to be used for codesets other than ASCII and ISO-8859-1.
For typewriter-like devices using the ISO Latin-1 (ISO 8859-1) character set.
For typewriter-like devices using the Unicode (ISO 10646) character set with UTF-8 encoding.
For typewriter-like devices which use the EBCDIC code page IBM cp1047 (e.g. OS/390 Unix).
For typewriter-like devices using the Japanese-EUC character set.
For an HP LaserJet4-compatible (or other PCL5-compatible) printer.
For Canon CAPSL printers (LBP-4 and LBP-8 series laser printers).
To produce HTML output.
The postprocessor to be used for a device is specified by the postpro command in the device description file. This can be overridden with the -X option.
The default device is ps. It can optionally preprocess with any of pic, eqn, grn, grap, tbl, refer, or soelim.
Options without an argument can be grouped behind a single -. A filename of - denotes the standard input.
Print a help message.
Preprocess with eqn.
Preprocess with tbl.
Preprocess with grn.
Preprocess with grap.
Preprocess with pic.
Preprocess with soelim.
This option is as described in soelim(1). This option implies the -s option.
Preprocess with refer. No mechanism is provided for passing arguments to refer because most refer options have equivalent commands which can be included in the file. See refer(1) for more details.
Make programs run by groff print out their version number.
Print the pipeline on stdout instead of executing it.
Suppress output from troff. Only error messages will be printed.
Do not postprocess the output of troff. Normally groff will automatically run the appropriate postprocessor.
Pass arg to the postprocessor. Each argument should be passed with a separate -P option. Note that groff does not prepend - to arg before passing it to the postprocessor.
Send the output to a spooler for printing. The command used for this is specified by the print command in the device description file (if not present, -l has no effect).
Pass arg to the spooler. Each argument should be passed with a separate -L option. Note that groff does not prepend - to arg before passing it to the postprocessor. If there is no print command in the device description file, -L is ignored.
Prepare output for device dev. The default device is ps.
Preview with gxditview instead of using the usual postprocessor. Groff passes gxditview a -printCommand option which will make the Print action do what groff would have done if the -l option had been given. This is unlikely to produce good results except with -Tps.
Don't allow newlines with eqn delimiters. This is the same as the -N option in eqn.
Safer mode. Pass the -S option to pic and disable the following troff requests: .open, .opena, .pso, .sy, and .pi. For security reasons, safer mode is enabled by default.
Unsafe mode. Reverts to the old unsafe behaviour.
If this is set X, then groff will run Xtroff instead of troff. This also applies to tbl, pic, eqn, grn, refer, and soelim. It does not apply to grap, grops, grodvi, grotty, grolj4, grohtml, and gxditview.
A colon separated list of directories in which to search for macro files in addition to the default directories. See troff(1) for more details.
A colon separated list of directories in which to search for the devname directory in addition to the default one. See troff(1) for more details.
This search path, followed by PATH, will be used for commands executed by groff. If not set, `/usr/bin' is prepended to PATH.
Device description file for device name.
Font file for font F of device name.
To print the man page foo.1 to the standard output using the latin-1 output device and less as the pager, the following command can be used:
groff -mandoc -Tlatin1 foo.1 | less
Alternatively, you can say
Copyright 1989-2000 Free Software Foundation, Inc.
groff is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
groff is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The most recent released version of groff is always available for anonymous ftp from ftp.gnu.org in the directory gnu/groff.
groff only supports the freely available grap implementation written by Ted Faber __