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>This package does not support parallel build. Compile the package:</para>
58 <screen><userinput remap="make">make -j1</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, glilypond,
77 gperl, gpinyin, grap2graph, grn, grodvi, groff, groffer, grog, grolbp,
78 grolj4, gropdf, grops, grotty, hpftodit, indxbib, lkbib, lookbib,
79 mmroff, neqn, nroff, pdfmom, pdfroff, pfbtops, pic, pic2graph,
80 post-grohtml, preconv, pre-grohtml, refer, roff2dvi, roff2html,
81 roff2pdf, roff2ps, roff2text, roff2x, soelim, tbl, tfmtodit, and
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="glilypond">
158 <term><command>glilypond</command></term>
160 <para>Transforms sheet music written in the lilypond language into
161 the groff language</para>
162 <indexterm zone="ch-system-groff glilypond">
163 <primary sortas="b-glilypond">glilypond</primary>
168 <varlistentry id="gperl">
169 <term><command>gperl</command></term>
171 <para>Preprocesor for groff, allowing addition of perl code
172 into groff files</para>
173 <indexterm zone="ch-system-groff gperl">
174 <primary sortas="b-gperl">gperl</primary>
179 <varlistentry id="gpinyin">
180 <term><command>gpinyin</command></term>
182 <para>Preprocesor for groff, allowing addition of Chinese
183 European-like language Pinyin into groff files.</para>
184 <indexterm zone="ch-system-groff gpinyin">
185 <primary sortas="b-gpinyin">gpinyin</primary>
190 <varlistentry id="grap2graph">
191 <term><command>grap2graph</command></term>
193 <para>Converts a grap diagram into a cropped bitmap image</para>
194 <indexterm zone="ch-system-groff grap2graph">
195 <primary sortas="b-grap2graph">grap2graph</primary>
200 <varlistentry id="grn">
201 <term><command>grn</command></term>
203 <para>A <command>groff</command> preprocessor for gremlin files</para>
204 <indexterm zone="ch-system-groff grn">
205 <primary sortas="b-grn">grn</primary>
210 <varlistentry id="grodvi">
211 <term><command>grodvi</command></term>
213 <para>A driver for <command>groff</command> that produces TeX dvi
215 <indexterm zone="ch-system-groff grodvi">
216 <primary sortas="b-grodvi">grodvi</primary>
221 <varlistentry id="groff">
222 <term><command>groff</command></term>
224 <para>A front-end to the groff document formatting system; normally, it
225 runs the <command>troff</command> program and a post-processor
226 appropriate for the selected device</para>
227 <indexterm zone="ch-system-groff groff">
228 <primary sortas="b-groff">groff</primary>
233 <varlistentry id="groffer">
234 <term><command>groffer</command></term>
236 <para>Displays groff files and man pages on X and tty terminals</para>
237 <indexterm zone="ch-system-groff groffer">
238 <primary sortas="b-groffer">groffer</primary>
243 <varlistentry id="grog">
244 <term><command>grog</command></term>
246 <para>Reads files and guesses which of the <command>groff</command>
247 options <option>-e</option>, <option>-man</option>, <option>-me</option>,
248 <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
249 <option>-s</option>, and <option>-t</option> are required for printing
250 files, and reports the <command>groff</command> command including those
252 <indexterm zone="ch-system-groff grog">
253 <primary sortas="b-grog">grog</primary>
258 <varlistentry id="grolbp">
259 <term><command>grolbp</command></term>
261 <para>Is a <command>groff</command> driver for Canon CAPSL printers
262 (LBP-4 and LBP-8 series laser printers)</para>
263 <indexterm zone="ch-system-groff grolbp">
264 <primary sortas="b-grolbp">grolbp</primary>
269 <varlistentry id="grolj4">
270 <term><command>grolj4</command></term>
272 <para>Is a driver for <command>groff</command> that produces output
273 in PCL5 format suitable for an HP LaserJet 4 printer</para>
274 <indexterm zone="ch-system-groff grolj4">
275 <primary sortas="b-grolj4">grolj4</primary>
280 <varlistentry id="gropdf">
281 <term><command>gropdf</command></term>
283 <para>Translates the output of GNU <command>troff</command> to
285 <indexterm zone="ch-system-groff gropdf">
286 <primary sortas="b-gropdf">gropdf</primary>
291 <varlistentry id="grops">
292 <term><command>grops</command></term>
294 <para>Translates the output of GNU <command>troff</command> to
296 <indexterm zone="ch-system-groff grops">
297 <primary sortas="b-grops">grops</primary>
302 <varlistentry id="grotty">
303 <term><command>grotty</command></term>
305 <para>Translates the output of GNU <command>troff</command> into
306 a form suitable for typewriter-like devices</para>
307 <indexterm zone="ch-system-groff grotty">
308 <primary sortas="b-grotty">grotty</primary>
313 <varlistentry id="hpftodit">
314 <term><command>hpftodit</command></term>
316 <para>Creates a font file for use with <command>groff -Tlj4</command>
317 from an HP-tagged font metric file</para>
318 <indexterm zone="ch-system-groff hpftodit">
319 <primary sortas="b-hpftodit">hpftodit</primary>
324 <varlistentry id="indxbib">
325 <term><command>indxbib</command></term>
327 <para>Creates an inverted index for the bibliographic databases with a
328 specified file for use with <command>refer</command>,
329 <command>lookbib</command>, and <command>lkbib</command></para>
330 <indexterm zone="ch-system-groff indxbib">
331 <primary sortas="b-indxbib">indxbib</primary>
336 <varlistentry id="lkbib">
337 <term><command>lkbib</command></term>
339 <para>Searches bibliographic databases for references that contain
340 specified keys and reports any references found</para>
341 <indexterm zone="ch-system-groff lkbib">
342 <primary sortas="b-lkbib">lkbib</primary>
347 <varlistentry id="lookbib">
348 <term><command>lookbib</command></term>
350 <para>Prints a prompt on the standard error (unless the standard input
351 is not a terminal), reads a line containing a set of keywords from the
352 standard input, searches the bibliographic databases in a specified file
353 for references containing those keywords, prints any references found
354 on the standard output, and repeats this process until the end of
356 <indexterm zone="ch-system-groff lookbib">
357 <primary sortas="b-lookbib">lookbib</primary>
362 <varlistentry id="mmroff">
363 <term><command>mmroff</command></term>
365 <para>A simple preprocessor for <command>groff</command></para>
366 <indexterm zone="ch-system-groff mmroff">
367 <primary sortas="b-mmroff">mmroff</primary>
372 <varlistentry id="neqn">
373 <term><command>neqn</command></term>
375 <para>Formats equations for American Standard Code for Information
376 Interchange (ASCII) output</para>
377 <indexterm zone="ch-system-groff neqn">
378 <primary sortas="b-neqn">neqn</primary>
383 <varlistentry id="nroff">
384 <term><command>nroff</command></term>
386 <para>A script that emulates the <command>nroff</command> command
387 using <command>groff</command></para>
388 <indexterm zone="ch-system-groff nroff">
389 <primary sortas="b-nroff">nroff</primary>
394 <varlistentry id="pdfmom">
395 <term><command>pdfmom</command></term>
397 <para>Is a wrapper around groff that facilitates the production of PDF
398 documents from files formatted with the mom macros.</para>
399 <indexterm zone="ch-system-groff pdfmom">
400 <primary sortas="b-pdfmom">pdfmom</primary>
405 <varlistentry id="pdfroff">
406 <term><command>pdfroff</command></term>
408 <para>Creates pdf documents using groff</para>
409 <indexterm zone="ch-system-groff pdfroff">
410 <primary sortas="b-pdfroff">pdfroff</primary>
415 <varlistentry id="pfbtops">
416 <term><command>pfbtops</command></term>
418 <para>Translates a PostScript font in <filename
419 class="extension">.pfb</filename> format to ASCII</para>
420 <indexterm zone="ch-system-groff pfbtops">
421 <primary sortas="b-pfbtops">pfbtops</primary>
426 <varlistentry id="pic">
427 <term><command>pic</command></term>
429 <para>Compiles descriptions of pictures embedded within troff or
430 TeX input files into commands understood by TeX or
431 <command>troff</command></para>
432 <indexterm zone="ch-system-groff pic">
433 <primary sortas="b-pic">pic</primary>
438 <varlistentry id="pic2graph">
439 <term><command>pic2graph</command></term>
441 <para>Converts a PIC diagram into a cropped image</para>
442 <indexterm zone="ch-system-groff pic2graph">
443 <primary sortas="b-pic2graph">pic2graph</primary>
448 <varlistentry id="post-grohtml">
449 <term><command>post-grohtml</command></term>
451 <para>Translates the output of GNU <command>troff</command> to
453 <indexterm zone="ch-system-groff post-grohtml">
454 <primary sortas="b-post-grohtml">post-grohtml</primary>
459 <varlistentry id="preconv">
460 <term><command>preconv</command></term>
462 <para>Converts encoding of input files to something GNU
463 <command>troff</command> understands</para>
464 <indexterm zone="ch-system-groff preconv">
465 <primary sortas="b-preconv">preconv</primary>
470 <varlistentry id="pre-grohtml">
471 <term><command>pre-grohtml </command></term>
473 <para>Translates the output of GNU <command>troff</command> to
475 <indexterm zone="ch-system-groff pre-grohtml">
476 <primary sortas="b-pre-grohtml">pre-grohtml</primary>
481 <varlistentry id="refer">
482 <term><command>refer</command></term>
484 <para>Copies the contents of a file to the standard output, except
485 that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
486 are interpreted as citations, and lines between <emphasis>.R1</emphasis>
487 and <emphasis>.R2</emphasis> are interpreted as commands for how
488 citations are to be processed</para>
489 <indexterm zone="ch-system-groff refer">
490 <primary sortas="b-refer">refer</primary>
495 <varlistentry id="roff2dvi">
496 <term><command>roff2dvi</command></term>
498 <para>Transforms roff files into DVI format</para>
499 <indexterm zone="ch-system-groff roff2dvi">
500 <primary sortas="b-roff2dvi">roff2dvi</primary>
505 <varlistentry id="roff2html">
506 <term><command>roff2html</command></term>
508 <para>Transforms roff files into HTML format</para>
509 <indexterm zone="ch-system-groff roff2html">
510 <primary sortas="b-roff2html">roff2html</primary>
515 <varlistentry id="roff2pdf">
516 <term><command>roff2pdf</command></term>
518 <para>Transforms roff files into PDFs</para>
519 <indexterm zone="ch-system-groff roff2pdf">
520 <primary sortas="b-roff2pdf">roff2pdf</primary>
525 <varlistentry id="roff2ps">
526 <term><command>roff2ps</command></term>
528 <para>Transforms roff files into ps files</para>
529 <indexterm zone="ch-system-groff roff2ps">
530 <primary sortas="b-roff2ps">roff2ps</primary>
535 <varlistentry id="roff2text">
536 <term><command>roff2text</command></term>
538 <para>Transforms roff files into text files</para>
539 <indexterm zone="ch-system-groff roff2text">
540 <primary sortas="b-roff2text">roff2text</primary>
545 <varlistentry id="roff2x">
546 <term><command>roff2x</command></term>
548 <para>Transforms roff files into other formats</para>
549 <indexterm zone="ch-system-groff roff2x">
550 <primary sortas="b-roff2x">roff2x</primary>
555 <varlistentry id="soelim">
556 <term><command>soelim</command></term>
558 <para>Reads files and replaces lines of the form <emphasis>.so
559 file</emphasis> by the contents of the mentioned
560 <emphasis>file</emphasis></para>
561 <indexterm zone="ch-system-groff soelim">
562 <primary sortas="b-soelim">soelim</primary>
567 <varlistentry id="tbl">
568 <term><command>tbl</command></term>
570 <para>Compiles descriptions of tables embedded within troff input
571 files into commands that are understood by
572 <command>troff</command></para>
573 <indexterm zone="ch-system-groff tbl">
574 <primary sortas="b-tbl">tbl</primary>
579 <varlistentry id="tfmtodit">
580 <term><command>tfmtodit</command></term>
582 <para>Creates a font file for use with <command>groff
583 -Tdvi</command></para>
584 <indexterm zone="ch-system-groff tfmtodit">
585 <primary sortas="b-tfmtodit">tfmtodit</primary>
590 <varlistentry id="troff">
591 <term><command>troff</command></term>
593 <para>Is highly compatible with Unix <command>troff</command>; it
594 should usually be invoked using the <command>groff</command> command,
595 which will also run preprocessors and post-processors in the
596 appropriate order and with the appropriate options</para>
597 <indexterm zone="ch-system-groff troff">
598 <primary sortas="b-troff">troff</primary>