by Trent A. Fisher and Werner Lemberg - The GNU Operating System
by Trent A. Fisher and Werner Lemberg - The GNU Operating System
by Trent A. Fisher and Werner Lemberg - The GNU Operating System
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 2: Invoking groff 7<br />
2 Invoking groff<br />
This section focuses on how to invoke the groff front end. This front end<br />
takes care of the details of constructing the pipeline among the preprocessors,<br />
gtroff <strong>and</strong> the postprocessor.<br />
It has become a tradition that <strong>GNU</strong> programs get the prefix ‘g’ to distinguish<br />
it from its original counterparts provided <strong>by</strong> the host (see Section 2.2<br />
[Environment], page 12, for more details). Thus, for example, geqn is <strong>GNU</strong><br />
eqn. On operating systems like <strong>GNU</strong>/Linux or the Hurd, which don’t contain<br />
proprietary versions of troff, <strong>and</strong> on MS-DOS/MS-Windows, where<br />
troff <strong>and</strong> associated programs are not available at all, this prefix is omitted<br />
since <strong>GNU</strong> troff is the only used incarnation of troff. Exception:<br />
‘groff’ is never replaced <strong>by</strong> ‘roff’.<br />
In this document, we consequently say ‘gtroff’ when talking about the<br />
<strong>GNU</strong> troff program. All other implementations of troff are called AT&T<br />
troff which is the common origin of all troff derivates (with more or less<br />
compatible changes). Similarly, we say ‘gpic’, ‘geqn’, etc.<br />
2.1 Options<br />
groff normally runs the gtroff program <strong>and</strong> a postprocessor appropriate<br />
for the selected device. <strong>The</strong> default device is ‘ps’ (but it can be changed<br />
when groff is configured <strong>and</strong> built). It can optionally preprocess with any<br />
of gpic, geqn, gtbl, ggrn, grap, grefer, gsoelim, or preconv.<br />
This section only documents options to the groff front end. Many<br />
of the arguments to groff are passed on to gtroff, therefore those<br />
are also included. Arguments to pre- or postprocessors can be found<br />
in Section 6.3.1 [Invoking gpic], page 187, Section 6.1.1 [Invoking geqn],<br />
page 187, Section 6.2.1 [Invoking gtbl], page 187, Section 6.4.1 [Invoking<br />
ggrn], page 187, Section 6.6.1 [Invoking grefer], page 187, Section 6.7.1<br />
[Invoking gsoelim], page 187, Section 6.8.1 [Invoking preconv], page 187,<br />
Section 7.2.1 [Invoking grotty], page 189, Section 7.3.1 [Invoking grops],<br />
page 189, Section 7.7.1 [Invoking grohtml], page 190, Section 7.4.1 [Invoking<br />
grodvi], page 189, Section 7.5.1 [Invoking grolj4], page 189, Section 7.6.1<br />
[Invoking grolbp], page 189, <strong>and</strong> Section 7.8.1 [Invoking gxditview], page 190.<br />
<strong>The</strong> comm<strong>and</strong> line format for groff is:<br />
groff [ -abceghiklpstvzCEGNRSUVXZ ] [ -dcs ] [ -Darg ]<br />
[ -ffam ] [ -Fdir ] [ -Idir ] [ -Karg ]<br />
[ -Larg ] [ -mname ] [ -Mdir ] [ -nnum ]<br />
[ -olist ] [ -Parg ] [ -rcn ] [ -Tdef ]<br />
[ -wname ] [ -Wname ] [ files... ]<br />
<strong>The</strong> comm<strong>and</strong> line format for gtroff is as follows.