Home » Linux Command Reference » UNIX/LINUX Command – groff

UNIX/LINUX Command – groff


groff—Front end for the groff document formatting system


groff [ –tpeszaivhblCENRVXZ][–wname ][–Wname ][–mname ][–Fdir ][–Tdev ] [ –ffam ][–Mdir ][–dcs ][–rcn ][–nnum ] [–olist ][–Parg ][files … ]


groff is a front-end to the groff document formatting system. Normally, it runs the gtroff program and a postprocessor appropriate for the selected device. Available devices are

ps                For PostScript printers and previewers
dvi               For TeX dvi format
X75             For a 75 dpi X11 previewer
X100           For a 100dpi X11 previewer
ascii            For typewriter-like devices
latin1          For typewriter-like devices using the ISO Latin-1 character set.

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 gpic, geqn, gtbl, grefer, or gsoelim.
Options without an argument can be grouped behind a single –. A filename of – denotes the standard input.
The grog command can be used to guess the correct groff command to use to format a file.


Options Description
–h Print a help message.
–e Preprocess with geqn.
–t Preprocess with gtbl.
–p Preprocess with gpic.
–s Preprocess with gsoelim.
–R Preprocess with grefer. No mechanism is provided for passing arguments to grefer because most grefer options have equivalent commands that can be included in the file. See grefer(1) for more details.
–v Make programs run by groff print out their version number.
–V Print the pipeline on stdout instead of executing it.
–z Suppress output from gtroff. Only error messages will be printed.
–Z Do not postprocess the output of gtroff. Normally, groff will automatically run the appropriate postprocessor.
–Parg 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.
–l Send the output to a printer. The command used for this is specified by the print command in the device description file.
–Larg 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.
–Tdev Prepare output for device dev. The default device is ps.
–X Preview with gxditview instead of using the usual postprocessor. This is unlikely to produce good results except with –Tps.
–N Don’t allow newlines with eqn delimiters. This is the same as the –N option in geqn.


Related Posts

UNIX/LINUX Command – rsync

UNIX/LINUX Command – rsync

NAME rsync – a fast, versatile, remote (and local) file-copying tool rsync Command SYNOPSIS Local: rsync [OPTION…] SRC… [DEST] Access via remote shell:Pull: rsync [OPTION…] [USER@]HOST:SRC… [DEST]Push: rsync [OPTION…] SRC… [USER@]HOST:DEST Access via rsync...

UNIX/LINUX Command – strip

UNIX/LINUX Command – strip

NAME strip—Discard symbols from object files. SYNOPSIS strip [ -Fbfdname|–target=bfdname ] [ -Ibfdname|–input-target=bfdname ] [ -Obfdname|–output-target=bfdname ] [-Rsectionname|–remove-section=sectionname ] [ -s|–strip-all ] [-S|-g|–strip-debug ][-x|–discard-all...

UNIX/LINUX Command – expand

UNIX/LINUX Command – expand

NAME expand—Convert tabs to spaces SYNOPSIS expand [–tab1[,tab2[,…]]] [–t tab1[,tab2[,…]]] [–i] [—tabs=tab1[,tab2[,…]]] [–initial] [–help] [–version] [file…] DESCRIPTION This manual page documents the GNU version of expand. expand writes the contents of each given...

UNIX/LINUX Command – uuencode

UNIX/LINUX Command – uuencode

NAME uuencode—Encode a binary fileuudecode—Decode a file created by uuencode SYNOPSIS uuencode [-m] [ file ] nameuudecode [-o outfile] [ file ]… DESCRIPTION uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other...

Follow Us

Our Communities

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!



Submit a Comment

Your email address will not be published. Required fields are marked *

12 + twenty =