1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
8 <sect1 id="ch-system-groff" role="wrap">
9 <?dbhtml filename="groff.html"?>
11 <sect1info condition="script">
12 <productname>groff</productname>
13 <productnumber>&groff-version;</productnumber>
14 <address>&groff-url;</address>
17 <title>Groff-&groff-version;</title>
19 <indexterm zone="ch-system-groff">
20 <primary sortas="a-Groff">Groff</primary>
23 <sect2 role="package">
26 <para>The Groff package contains programs for processing and formatting
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&groff-ch6-sbu;</seg>
35 <seg>&groff-ch6-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of Groff</title>
44 <para>Groff expects the environment variable <envar>PAGE</envar> to
45 contain the default paper size. For users in the United States,
46 <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
47 <parameter>PAGE=A4</parameter> may be more suitable. While the default
48 paper size is configured during compilation, it can be overridden later
49 by echoing either <quote>A4</quote> or <quote>letter</quote> to the
50 <filename>/etc/papersize</filename> file.</para>
52 <para>Prepare Groff for compilation:</para>
54 <screen><userinput remap="configure">PAGE=<replaceable><paper_size></replaceable> ./configure --prefix=/usr</userinput></screen>
56 <para>Compile the package:</para>
58 <screen><userinput remap="make">make</userinput></screen>
60 <para>This package does not come with a test suite.</para>
62 <para>Install the package:</para>
64 <screen><userinput remap="install">make install</userinput></screen>
68 <sect2 id="contents-groff" role="content">
69 <title>Contents of Groff</title>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed directories</segtitle>
76 <seg>addftinfo, afmtodit, chem, eqn, eqn2graph, gdiffmk,
77 geqn (link to eqn), grap2graph, grn, grodvi, groff, groffer, grog,
78 grolbp, grolj4, grops, grotty, gtbl (link to tbl), hpftodit,
79 indxbib, lkbib, lookbib, mmroff, neqn, nroff, pdfroff, pfbtops, pic,
80 pic2graph, post-grohtml, preconv, pre-grohtml, refer, roff2dvi,
81 roff2html, roff2pdf, roff2ps, roff2text, roff2x, soelim, tbl, tfmtodit,
83 <seg>/usr/lib/groff and /usr/share/doc/groff-&groff-version;,
84 /usr/share/groff</seg>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
93 <varlistentry id="addftinfo">
94 <term><command>addftinfo</command></term>
96 <para>Reads a troff font file and adds some additional font-metric
97 information that is used by the <command>groff</command> system</para>
98 <indexterm zone="ch-system-groff addftinfo">
99 <primary sortas="b-addftinfo">addftinfo</primary>
104 <varlistentry id="afmtodit">
105 <term><command>afmtodit</command></term>
107 <para>Creates a font file for use with <command>groff</command> and
108 <command>grops</command></para>
109 <indexterm zone="ch-system-groff afmtodit">
110 <primary sortas="b-afmtodit">afmtodit</primary>
115 <varlistentry id="chem">
116 <term><command>chem</command></term>
118 <para>Groff preprocessor for producing chemical structure diagrams</para>
119 <indexterm zone="ch-system-groff chem">
120 <primary sortas="b-chem">chem</primary>
125 <varlistentry id="eqn">
126 <term><command>eqn</command></term>
128 <para>Compiles descriptions of equations embedded within troff
129 input files into commands that are understood by
130 <command>troff</command></para>
131 <indexterm zone="ch-system-groff eqn">
132 <primary sortas="b-eqn">eqn</primary>
137 <varlistentry id="eqn2graph">
138 <term><command>eqn2graph</command></term>
140 <para>Converts a troff EQN (equation) into a cropped image</para>
141 <indexterm zone="ch-system-groff eqn2graph">
142 <primary sortas="b-eqn2graph">eqn2graph</primary>
147 <varlistentry id="gdiffmk">
148 <term><command>gdiffmk</command></term>
150 <para>Marks differences between groff/nroff/troff files</para>
151 <indexterm zone="ch-system-groff gdiffmk">
152 <primary sortas="b-gdiffmk">gdiffmk</primary>
157 <varlistentry id="geqn">
158 <term><command>geqn</command></term>
160 <para>A link to <command>eqn</command></para>
161 <indexterm zone="ch-system-groff geqn">
162 <primary sortas="b-geqn">geqn</primary>
167 <varlistentry id="grap2graph">
168 <term><command>grap2graph</command></term>
170 <para>Converts a grap diagram into a cropped bitmap image</para>
171 <indexterm zone="ch-system-groff grap2graph">
172 <primary sortas="b-grap2graph">grap2graph</primary>
177 <varlistentry id="grn">
178 <term><command>grn</command></term>
180 <para>A <command>groff</command> preprocessor for gremlin files</para>
181 <indexterm zone="ch-system-groff grn">
182 <primary sortas="b-grn">grn</primary>
187 <varlistentry id="grodvi">
188 <term><command>grodvi</command></term>
190 <para>A driver for <command>groff</command> that produces TeX dvi
192 <indexterm zone="ch-system-groff grodvi">
193 <primary sortas="b-grodvi">grodvi</primary>
198 <varlistentry id="groff">
199 <term><command>groff</command></term>
201 <para>A front-end to the groff document formatting system; normally, it
202 runs the <command>troff</command> program and a post-processor
203 appropriate for the selected device</para>
204 <indexterm zone="ch-system-groff groff">
205 <primary sortas="b-groff">groff</primary>
210 <varlistentry id="groffer">
211 <term><command>groffer</command></term>
213 <para>Displays groff files and man pages on X and tty terminals</para>
214 <indexterm zone="ch-system-groff groffer">
215 <primary sortas="b-groffer">groffer</primary>
220 <varlistentry id="grog">
221 <term><command>grog</command></term>
223 <para>Reads files and guesses which of the <command>groff</command>
224 options <option>-e</option>, <option>-man</option>, <option>-me</option>,
225 <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
226 <option>-s</option>, and <option>-t</option> are required for printing
227 files, and reports the <command>groff</command> command including those
229 <indexterm zone="ch-system-groff grog">
230 <primary sortas="b-grog">grog</primary>
235 <varlistentry id="grolbp">
236 <term><command>grolbp</command></term>
238 <para>Is a <command>groff</command> driver for Canon CAPSL printers
239 (LBP-4 and LBP-8 series laser printers)</para>
240 <indexterm zone="ch-system-groff grolbp">
241 <primary sortas="b-grolbp">grolbp</primary>
246 <varlistentry id="grolj4">
247 <term><command>grolj4</command></term>
249 <para>Is a driver for <command>groff</command> that produces output
250 in PCL5 format suitable for an HP LaserJet 4 printer</para>
251 <indexterm zone="ch-system-groff grolj4">
252 <primary sortas="b-grolj4">grolj4</primary>
257 <varlistentry id="grops">
258 <term><command>grops</command></term>
260 <para>Translates the output of GNU <command>troff</command> to
262 <indexterm zone="ch-system-groff grops">
263 <primary sortas="b-grops">grops</primary>
268 <varlistentry id="grotty">
269 <term><command>grotty</command></term>
271 <para>Translates the output of GNU <command>troff</command> into
272 a form suitable for typewriter-like devices</para>
273 <indexterm zone="ch-system-groff grotty">
274 <primary sortas="b-grotty">grotty</primary>
279 <varlistentry id="gtbl">
280 <term><command>gtbl</command></term>
282 <para>A link to <command>tbl</command></para>
283 <indexterm zone="ch-system-groff gtbl">
284 <primary sortas="b-gtbl">gtbl</primary>
289 <varlistentry id="hpftodit">
290 <term><command>hpftodit</command></term>
292 <para>Creates a font file for use with <command>groff -Tlj4</command>
293 from an HP-tagged font metric file</para>
294 <indexterm zone="ch-system-groff hpftodit">
295 <primary sortas="b-hpftodit">hpftodit</primary>
300 <varlistentry id="indxbib">
301 <term><command>indxbib</command></term>
303 <para>Creates an inverted index for the bibliographic databases with a
304 specified file for use with <command>refer</command>,
305 <command>lookbib</command>, and <command>lkbib</command></para>
306 <indexterm zone="ch-system-groff indxbib">
307 <primary sortas="b-indxbib">indxbib</primary>
312 <varlistentry id="lkbib">
313 <term><command>lkbib</command></term>
315 <para>Searches bibliographic databases for references that contain
316 specified keys and reports any references found</para>
317 <indexterm zone="ch-system-groff lkbib">
318 <primary sortas="b-lkbib">lkbib</primary>
323 <varlistentry id="lookbib">
324 <term><command>lookbib</command></term>
326 <para>Prints a prompt on the standard error (unless the standard input
327 is not a terminal), reads a line containing a set of keywords from the
328 standard input, searches the bibliographic databases in a specified file
329 for references containing those keywords, prints any references found
330 on the standard output, and repeats this process until the end of
332 <indexterm zone="ch-system-groff lookbib">
333 <primary sortas="b-lookbib">lookbib</primary>
338 <varlistentry id="mmroff">
339 <term><command>mmroff</command></term>
341 <para>A simple preprocessor for <command>groff</command></para>
342 <indexterm zone="ch-system-groff mmroff">
343 <primary sortas="b-mmroff">mmroff</primary>
348 <varlistentry id="neqn">
349 <term><command>neqn</command></term>
351 <para>Formats equations for American Standard Code for Information
352 Interchange (ASCII) output</para>
353 <indexterm zone="ch-system-groff neqn">
354 <primary sortas="b-neqn">neqn</primary>
359 <varlistentry id="nroff">
360 <term><command>nroff</command></term>
362 <para>A script that emulates the <command>nroff</command> command
363 using <command>groff</command></para>
364 <indexterm zone="ch-system-groff nroff">
365 <primary sortas="b-nroff">nroff</primary>
370 <varlistentry id="pdfroff">
371 <term><command>pdfroff</command></term>
373 <para>Creates pdf documents using groff</para>
374 <indexterm zone="ch-system-groff pdfroff">
375 <primary sortas="b-pdfroff">pdfroff</primary>
380 <varlistentry id="pfbtops">
381 <term><command>pfbtops</command></term>
383 <para>Translates a PostScript font in <filename
384 class="extension">.pfb</filename> format to ASCII</para>
385 <indexterm zone="ch-system-groff pfbtops">
386 <primary sortas="b-pfbtops">pfbtops</primary>
391 <varlistentry id="pic">
392 <term><command>pic</command></term>
394 <para>Compiles descriptions of pictures embedded within troff or
395 TeX input files into commands understood by TeX or
396 <command>troff</command></para>
397 <indexterm zone="ch-system-groff pic">
398 <primary sortas="b-pic">pic</primary>
403 <varlistentry id="pic2graph">
404 <term><command>pic2graph</command></term>
406 <para>Converts a PIC diagram into a cropped image</para>
407 <indexterm zone="ch-system-groff pic2graph">
408 <primary sortas="b-pic2graph">pic2graph</primary>
413 <varlistentry id="post-grohtml">
414 <term><command>post-grohtml</command></term>
416 <para>Translates the output of GNU <command>troff</command> to
418 <indexterm zone="ch-system-groff post-grohtml">
419 <primary sortas="b-post-grohtml">post-grohtml</primary>
424 <varlistentry id="preconv">
425 <term><command>preconv</command></term>
427 <para>Converts encoding of input files to something GNU
428 <command>troff</command> understands</para>
429 <indexterm zone="ch-system-groff preconv">
430 <primary sortas="b-preconv">preconv</primary>
435 <varlistentry id="pre-grohtml">
436 <term><command>pre-grohtml </command></term>
438 <para>Translates the output of GNU <command>troff</command> to
440 <indexterm zone="ch-system-groff pre-grohtml">
441 <primary sortas="b-pre-grohtml">pre-grohtml</primary>
446 <varlistentry id="refer">
447 <term><command>refer</command></term>
449 <para>Copies the contents of a file to the standard output, except
450 that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
451 are interpreted as citations, and lines between <emphasis>.R1</emphasis>
452 and <emphasis>.R2</emphasis> are interpreted as commands for how
453 citations are to be processed</para>
454 <indexterm zone="ch-system-groff refer">
455 <primary sortas="b-refer">refer</primary>
460 <varlistentry id="roff2dvi">
461 <term><command>roff2dvi</command></term>
463 <para>Transforms roff files into DVI format</para>
464 <indexterm zone="ch-system-groff roff2dvi">
465 <primary sortas="b-roff2dvi">roff2dvi</primary>
470 <varlistentry id="roff2html">
471 <term><command>roff2html</command></term>
473 <para>Transforms roff files into HTML format</para>
474 <indexterm zone="ch-system-groff roff2html">
475 <primary sortas="b-roff2html">roff2html</primary>
480 <varlistentry id="roff2pdf">
481 <term><command>roff2pdf</command></term>
483 <para>Transforms roff files into PDFs</para>
484 <indexterm zone="ch-system-groff roff2pdf">
485 <primary sortas="b-roff2pdf">roff2pdf</primary>
490 <varlistentry id="roff2ps">
491 <term><command>roff2ps</command></term>
493 <para>Transforms roff files into ps files</para>
494 <indexterm zone="ch-system-groff roff2ps">
495 <primary sortas="b-roff2ps">roff2ps</primary>
500 <varlistentry id="roff2text">
501 <term><command>roff2text</command></term>
503 <para>Transforms roff files into text files</para>
504 <indexterm zone="ch-system-groff roff2text">
505 <primary sortas="b-roff2text">roff2text</primary>
510 <varlistentry id="roff2x">
511 <term><command>roff2x</command></term>
513 <para>Transforms roff files into other formats</para>
514 <indexterm zone="ch-system-groff roff2x">
515 <primary sortas="b-roff2x">roff2x</primary>
520 <varlistentry id="soelim">
521 <term><command>soelim</command></term>
523 <para>Reads files and replaces lines of the form <emphasis>.so
524 file</emphasis> by the contents of the mentioned
525 <emphasis>file</emphasis></para>
526 <indexterm zone="ch-system-groff soelim">
527 <primary sortas="b-soelim">soelim</primary>
532 <varlistentry id="tbl">
533 <term><command>tbl</command></term>
535 <para>Compiles descriptions of tables embedded within troff input
536 files into commands that are understood by
537 <command>troff</command></para>
538 <indexterm zone="ch-system-groff tbl">
539 <primary sortas="b-tbl">tbl</primary>
544 <varlistentry id="tfmtodit">
545 <term><command>tfmtodit</command></term>
547 <para>Creates a font file for use with <command>groff
548 -Tdvi</command></para>
549 <indexterm zone="ch-system-groff tfmtodit">
550 <primary sortas="b-tfmtodit">tfmtodit</primary>
555 <varlistentry id="troff">
556 <term><command>troff</command></term>
558 <para>Is highly compatible with Unix <command>troff</command>; it
559 should usually be invoked using the <command>groff</command> command,
560 which will also run preprocessors and post-processors in the
561 appropriate order and with the appropriate options</para>
562 <indexterm zone="ch-system-groff troff">
563 <primary sortas="b-troff">troff</primary>