1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
5 | %general-entities;
|
---|
6 | %patches-entities;
|
---|
7 | ]>
|
---|
8 | <sect1 id="ch-system-groff" role="wrap">
|
---|
9 | <title>Groff-&groff-version;</title>
|
---|
10 | <?dbhtml filename="groff.html"?>
|
---|
11 |
|
---|
12 | <indexterm zone="ch-system-groff"><primary sortas="a-Groff">Groff</primary></indexterm>
|
---|
13 |
|
---|
14 | <sect2 role="package"><title/>
|
---|
15 | <para>The Groff package contains programs for processing and formatting text.</para>
|
---|
16 |
|
---|
17 | <segmentedlist>
|
---|
18 | <segtitle>&buildtime;</segtitle>
|
---|
19 | <segtitle>&diskspace;</segtitle>
|
---|
20 | <seglistitem><seg>0.5 SBU</seg><seg>38.7 MB</seg></seglistitem>
|
---|
21 | </segmentedlist>
|
---|
22 |
|
---|
23 | <segmentedlist>
|
---|
24 | <segtitle>&dependencies;</segtitle>
|
---|
25 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
26 | Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
27 | </segmentedlist>
|
---|
28 | </sect2>
|
---|
29 |
|
---|
30 | <sect2 role="installation">
|
---|
31 | <title>Installation of Groff</title>
|
---|
32 |
|
---|
33 | <para>Groff expects the environment variable <envar>PAGE</envar>
|
---|
34 | to contain the default paper size. For users in the United States,
|
---|
35 | <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
|
---|
36 | <parameter>PAGE=A4</parameter> may be more suitable.</para>
|
---|
37 |
|
---|
38 | <para>Prepare Groff for compilation:</para>
|
---|
39 |
|
---|
40 | <screen><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr</userinput></screen>
|
---|
41 |
|
---|
42 | <para>Compile the package:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>make</userinput></screen>
|
---|
45 |
|
---|
46 | <para>Install the package:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>make install</userinput></screen>
|
---|
49 |
|
---|
50 | <para>Some documentation programs, such as <command>xman</command>,
|
---|
51 | will not work properly without the following symlinks:</para>
|
---|
52 |
|
---|
53 | <screen><userinput>ln -s soelim /usr/bin/zsoelim
|
---|
54 | ln -s eqn /usr/bin/geqn
|
---|
55 | ln -s tbl /usr/bin/gtbl</userinput></screen>
|
---|
56 |
|
---|
57 | </sect2>
|
---|
58 |
|
---|
59 |
|
---|
60 | <sect2 id="contents-groff" role="content"><title>Contents of Groff</title>
|
---|
61 |
|
---|
62 | <segmentedlist>
|
---|
63 | <segtitle>Installed programs</segtitle>
|
---|
64 | <seglistitem><seg>addftinfo, afmtodit, eqn, eqn2graph, geqn (link to eqn), grn,
|
---|
65 | grodvi, groff, groffer, grog, grolbp, grolj4, grops, grotty, gtbl (link to tbl), hpftodit,
|
---|
66 | indxbib, lkbib, lookbib, mmroff, neqn, nroff, pfbtops, pic, pic2graph, post-grohtml,
|
---|
67 | pre-grohtml, refer, soelim, tbl, tfmtodit, troff, and zsoelim (link to soelim)</seg></seglistitem>
|
---|
68 | </segmentedlist>
|
---|
69 |
|
---|
70 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
71 | <?dbfo list-presentation="list"?>
|
---|
72 | <?dbhtml list-presentation="table"?>
|
---|
73 |
|
---|
74 | <varlistentry id="addftinfo">
|
---|
75 | <term><command>addftinfo</command></term>
|
---|
76 | <listitem>
|
---|
77 | <para>Reads a troff font file and adds some
|
---|
78 | additional font-metric information that is used by the <command>groff</command> system</para>
|
---|
79 | <indexterm zone="ch-system-groff addftinfo"><primary sortas="b-addftinfo">addftinfo</primary></indexterm>
|
---|
80 | </listitem>
|
---|
81 | </varlistentry>
|
---|
82 |
|
---|
83 | <varlistentry id="afmtodit">
|
---|
84 | <term><command>afmtodit</command></term>
|
---|
85 | <listitem>
|
---|
86 | <para>Creates a font file for use with <command>groff</command> and <command>grops</command></para>
|
---|
87 | <indexterm zone="ch-system-groff afmtodit"><primary sortas="b-afmtodit">afmtodit</primary></indexterm>
|
---|
88 | </listitem>
|
---|
89 | </varlistentry>
|
---|
90 |
|
---|
91 | <varlistentry id="eqn">
|
---|
92 | <term><command>eqn</command></term>
|
---|
93 | <listitem>
|
---|
94 | <para>Compiles descriptions of equations embedded
|
---|
95 | within troff input files into commands that are understood by <command>troff</command></para>
|
---|
96 | <indexterm zone="ch-system-groff eqn"><primary sortas="b-eqn">eqn</primary></indexterm>
|
---|
97 | </listitem>
|
---|
98 | </varlistentry>
|
---|
99 |
|
---|
100 | <varlistentry id="eqn2graph">
|
---|
101 | <term><command>eqn2graph</command></term>
|
---|
102 | <listitem>
|
---|
103 | <para>Converts a troff EQN (equation) into a cropped image</para>
|
---|
104 | <indexterm zone="ch-system-groff eqn2graph"><primary sortas="b-eqn2graph">eqn2graph</primary></indexterm>
|
---|
105 | </listitem>
|
---|
106 | </varlistentry>
|
---|
107 |
|
---|
108 | <varlistentry id="geqn">
|
---|
109 | <term><command>geqn</command></term>
|
---|
110 | <listitem>
|
---|
111 | <para>A link to <command>eqn</command></para>
|
---|
112 | <indexterm zone="ch-system-groff geqn"><primary sortas="b-geqn">geqn</primary></indexterm>
|
---|
113 | </listitem>
|
---|
114 | </varlistentry>
|
---|
115 |
|
---|
116 | <varlistentry id="grn">
|
---|
117 | <term><command>grn</command></term>
|
---|
118 | <listitem>
|
---|
119 | <para>A <command>groff</command> preprocessor for gremlin files</para>
|
---|
120 | <indexterm zone="ch-system-groff grn"><primary sortas="b-grn">grn</primary></indexterm>
|
---|
121 | </listitem>
|
---|
122 | </varlistentry>
|
---|
123 |
|
---|
124 | <varlistentry id="grodvi">
|
---|
125 | <term><command>grodvi</command></term>
|
---|
126 | <listitem>
|
---|
127 | <para>A driver for <command>groff</command> that produces TeX dvi format</para>
|
---|
128 | <indexterm zone="ch-system-groff grodvi"><primary sortas="b-grodvi">grodvi</primary></indexterm>
|
---|
129 | </listitem>
|
---|
130 | </varlistentry>
|
---|
131 |
|
---|
132 | <varlistentry id="groff">
|
---|
133 | <term><command>groff</command></term>
|
---|
134 | <listitem>
|
---|
135 | <para>A front-end to the groff document
|
---|
136 | formatting system; normally, it runs the <command>troff</command> program and a post-processor
|
---|
137 | appropriate for the selected device</para>
|
---|
138 | <indexterm zone="ch-system-groff groff"><primary sortas="b-groff">groff</primary></indexterm>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | <varlistentry id="groffer">
|
---|
143 | <term><command>groffer</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>Displays groff files and man pages on X and tty terminals</para>
|
---|
146 | <indexterm zone="ch-system-groff groffer"><primary sortas="b-groffer">groffer</primary></indexterm>
|
---|
147 | </listitem>
|
---|
148 | </varlistentry>
|
---|
149 |
|
---|
150 | <varlistentry id="grog">
|
---|
151 | <term><command>grog</command></term>
|
---|
152 | <listitem>
|
---|
153 | <para>Reads files and guesses which of the <command>groff</command>
|
---|
154 | options <parameter>-e</parameter>, <parameter>-man</parameter>,
|
---|
155 | <parameter>-me</parameter>, <parameter>-mm</parameter>,
|
---|
156 | <parameter>-ms</parameter>, <parameter>-p</parameter>, <parameter>-s</parameter>,
|
---|
157 | and <parameter>-t</parameter> are required for printing
|
---|
158 | files, and reports the <command>groff</command> command including those options</para>
|
---|
159 | <indexterm zone="ch-system-groff grog"><primary sortas="b-grog">grog</primary></indexterm>
|
---|
160 | </listitem>
|
---|
161 | </varlistentry>
|
---|
162 |
|
---|
163 | <varlistentry id="grolbp">
|
---|
164 | <term><command>grolbp</command></term>
|
---|
165 | <listitem>
|
---|
166 | <para>Is a <command>groff</command> driver for Canon CAPSL printers
|
---|
167 | (LBP-4 and LBP-8 series laser printers)</para>
|
---|
168 | <indexterm zone="ch-system-groff grolbp"><primary sortas="b-grolbp">grolbp</primary></indexterm>
|
---|
169 | </listitem>
|
---|
170 | </varlistentry>
|
---|
171 |
|
---|
172 | <varlistentry id="grolj4">
|
---|
173 | <term><command>grolj4</command></term>
|
---|
174 | <listitem>
|
---|
175 | <para>Is a driver for <command>groff</command> that produces output
|
---|
176 | in PCL5 format suitable for an HP LaserJet 4 printer</para>
|
---|
177 | <indexterm zone="ch-system-groff grolj4"><primary sortas="b-grolj4">grolj4</primary></indexterm>
|
---|
178 | </listitem>
|
---|
179 | </varlistentry>
|
---|
180 |
|
---|
181 | <varlistentry id="grops">
|
---|
182 | <term><command>grops</command></term>
|
---|
183 | <listitem>
|
---|
184 | <para>Translates the output of GNU <command>troff</command> to PostScript</para>
|
---|
185 | <indexterm zone="ch-system-groff grops"><primary sortas="b-grops">grops</primary></indexterm>
|
---|
186 | </listitem>
|
---|
187 | </varlistentry>
|
---|
188 |
|
---|
189 | <varlistentry id="grotty">
|
---|
190 | <term><command>grotty</command></term>
|
---|
191 | <listitem>
|
---|
192 | <para>Translates the output of GNU <command>troff</command> into
|
---|
193 | a form suitable for typewriter-like devices</para>
|
---|
194 | <indexterm zone="ch-system-groff grotty"><primary sortas="b-grotty">grotty</primary></indexterm>
|
---|
195 | </listitem>
|
---|
196 | </varlistentry>
|
---|
197 |
|
---|
198 | <varlistentry id="gtbl">
|
---|
199 | <term><command>gtbl</command></term>
|
---|
200 | <listitem>
|
---|
201 | <para>A link to <command>tbl</command></para>
|
---|
202 | <indexterm zone="ch-system-groff gtbl"><primary sortas="b-gtbl">gtbl</primary></indexterm>
|
---|
203 | </listitem>
|
---|
204 | </varlistentry>
|
---|
205 |
|
---|
206 | <varlistentry id="hpftodit">
|
---|
207 | <term><command>hpftodit</command></term>
|
---|
208 | <listitem>
|
---|
209 | <para>Creates a font file for use with
|
---|
210 | <command>groff -Tlj4</command> from an HP-tagged font metric file</para>
|
---|
211 | <indexterm zone="ch-system-groff hpftodit"><primary sortas="b-hpftodit">hpftodit</primary></indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 |
|
---|
215 | <varlistentry id="indxbib">
|
---|
216 | <term><command>indxbib</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>Creates an inverted index for the bibliographic databases with a specified file for
|
---|
219 | use with <command>refer</command>, <command>lookbib</command>, and <command>lkbib</command></para>
|
---|
220 | <indexterm zone="ch-system-groff indxbib"><primary sortas="b-indxbib">indxbib</primary></indexterm>
|
---|
221 | </listitem>
|
---|
222 | </varlistentry>
|
---|
223 |
|
---|
224 | <varlistentry id="lkbib">
|
---|
225 | <term><command>lkbib</command></term>
|
---|
226 | <listitem>
|
---|
227 | <para>Searches bibliographic databases for references that contain
|
---|
228 | specified keys and reports any references found</para>
|
---|
229 | <indexterm zone="ch-system-groff lkbib"><primary sortas="b-lkbib">lkbib</primary></indexterm>
|
---|
230 | </listitem>
|
---|
231 | </varlistentry>
|
---|
232 |
|
---|
233 | <varlistentry id="lookbib">
|
---|
234 | <term><command>lookbib</command></term>
|
---|
235 | <listitem>
|
---|
236 | <para>Prints a prompt on the standard error (unless the standard input
|
---|
237 | is not a terminal), reads a line containing a
|
---|
238 | set of keywords from the standard input, searches the bibliographic databases in a specified
|
---|
239 | file for references containing those keywords, prints any references
|
---|
240 | found on the standard output, and repeats this process until the end
|
---|
241 | of input</para>
|
---|
242 | <indexterm zone="ch-system-groff lookbib"><primary sortas="b-lookbib">lookbib</primary></indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | <varlistentry id="mmroff">
|
---|
247 | <term><command>mmroff</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>A simple preprocessor for <command>groff</command></para>
|
---|
250 | <indexterm zone="ch-system-groff mmroff"><primary sortas="b-mmroff">mmroff</primary></indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | <varlistentry id="neqn">
|
---|
255 | <term><command>neqn</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>Formats equations for American Standard Code for Information
|
---|
258 | Interchange (ASCII) output</para>
|
---|
259 | <indexterm zone="ch-system-groff neqn"><primary sortas="b-neqn">neqn</primary></indexterm>
|
---|
260 | </listitem>
|
---|
261 | </varlistentry>
|
---|
262 |
|
---|
263 | <varlistentry id="nroff">
|
---|
264 | <term><command>nroff</command></term>
|
---|
265 | <listitem>
|
---|
266 | <para>A script that emulates the <command>nroff</command> command using <command>groff</command></para>
|
---|
267 | <indexterm zone="ch-system-groff nroff"><primary sortas="b-nroff">nroff</primary></indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | <varlistentry id="pfbtops">
|
---|
272 | <term><command>pfbtops</command></term>
|
---|
273 | <listitem>
|
---|
274 | <para>Translates a PostScript font in <filename class="extension">.pfb</filename> format to ASCII</para>
|
---|
275 | <indexterm zone="ch-system-groff pfbtops"><primary sortas="b-pfbtops">pfbtops</primary></indexterm>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry id="pic">
|
---|
280 | <term><command>pic</command></term>
|
---|
281 | <listitem>
|
---|
282 | <para>Compiles descriptions of pictures embedded
|
---|
283 | within troff or TeX input files into commands understood by TeX or <command>troff</command></para>
|
---|
284 | <indexterm zone="ch-system-groff pic"><primary sortas="b-pic">pic</primary></indexterm>
|
---|
285 | </listitem>
|
---|
286 | </varlistentry>
|
---|
287 |
|
---|
288 | <varlistentry id="pic2graph">
|
---|
289 | <term><command>pic2graph</command></term>
|
---|
290 | <listitem>
|
---|
291 | <para>Converts a PIC diagram into a cropped image</para>
|
---|
292 | <indexterm zone="ch-system-groff pic2graph"><primary sortas="b-pic2graph">pic2graph</primary></indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 |
|
---|
296 | <varlistentry id="post-grohtml">
|
---|
297 | <term><command>post-grohtml</command></term>
|
---|
298 | <listitem>
|
---|
299 | <para>Translates the output of GNU <command>troff</command> to HTML</para>
|
---|
300 | <indexterm zone="ch-system-groff post-grohtml"><primary sortas="b-post-grohtml">post-grohtml</primary></indexterm>
|
---|
301 | </listitem>
|
---|
302 | </varlistentry>
|
---|
303 |
|
---|
304 | <varlistentry id="pre-grohtml">
|
---|
305 | <term><command>pre-grohtml </command></term>
|
---|
306 | <listitem>
|
---|
307 | <para>Translates the output of GNU <command>troff</command> to HTML</para>
|
---|
308 | <indexterm zone="ch-system-groff pre-grohtml"><primary sortas="b-pre-grohtml">pre-grohtml</primary></indexterm>
|
---|
309 | </listitem>
|
---|
310 | </varlistentry>
|
---|
311 |
|
---|
312 | <varlistentry id="refer">
|
---|
313 | <term><command>refer</command></term>
|
---|
314 | <listitem>
|
---|
315 | <para>Copies the contents of a file to the standard output, except
|
---|
316 | that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
|
---|
317 | are interpreted as citations, and lines between
|
---|
318 | <emphasis>.R1</emphasis> and <emphasis>.R2</emphasis> are interpreted
|
---|
319 | as commands for how citations are to be processed</para>
|
---|
320 | <indexterm zone="ch-system-groff refer"><primary sortas="b-refer">refer</primary></indexterm>
|
---|
321 | </listitem>
|
---|
322 | </varlistentry>
|
---|
323 |
|
---|
324 | <varlistentry id="soelim">
|
---|
325 | <term><command>soelim</command></term>
|
---|
326 | <listitem>
|
---|
327 | <para>Reads files and replaces lines of the form
|
---|
328 | <emphasis>.so file</emphasis> by the contents of the mentioned
|
---|
329 | <emphasis>file</emphasis></para>
|
---|
330 | <indexterm zone="ch-system-groff soelim"><primary sortas="b-soelim">soelim</primary></indexterm>
|
---|
331 | </listitem>
|
---|
332 | </varlistentry>
|
---|
333 |
|
---|
334 | <varlistentry id="tbl">
|
---|
335 | <term><command>tbl</command></term>
|
---|
336 | <listitem>
|
---|
337 | <para>Compiles descriptions of tables embedded
|
---|
338 | within troff input files into commands that are understood by <command>troff</command></para>
|
---|
339 | <indexterm zone="ch-system-groff tbl"><primary sortas="b-tbl">tbl</primary></indexterm>
|
---|
340 | </listitem>
|
---|
341 | </varlistentry>
|
---|
342 |
|
---|
343 | <varlistentry id="tfmtodit">
|
---|
344 | <term><command>tfmtodit</command></term>
|
---|
345 | <listitem>
|
---|
346 | <para>Creates a font file for use with <command>groff -Tdvi</command></para>
|
---|
347 | <indexterm zone="ch-system-groff tfmtodit"><primary sortas="b-tfmtodit">tfmtodit</primary></indexterm>
|
---|
348 | </listitem>
|
---|
349 | </varlistentry>
|
---|
350 |
|
---|
351 | <varlistentry id="troff">
|
---|
352 | <term><command>troff</command></term>
|
---|
353 | <listitem>
|
---|
354 | <para>Is highly compatible with Unix <command>troff</command>; it
|
---|
355 | should usually be invoked using the
|
---|
356 | <command>groff</command> command, which will also run preprocessors and post-processors in the
|
---|
357 | appropriate order and with the appropriate options</para>
|
---|
358 | <indexterm zone="ch-system-groff troff"><primary sortas="b-troff">troff</primary></indexterm>
|
---|
359 | </listitem>
|
---|
360 | </varlistentry>
|
---|
361 |
|
---|
362 | <varlistentry id="zsoelim">
|
---|
363 | <term><command>zsoelim</command></term>
|
---|
364 | <listitem>
|
---|
365 | <para>A link to <command>soelim</command></para>
|
---|
366 | <indexterm zone="ch-system-groff zsoelim"><primary sortas="b-zsoelim">zsoelim</primary></indexterm>
|
---|
367 | </listitem>
|
---|
368 | </varlistentry>
|
---|
369 | </variablelist>
|
---|
370 |
|
---|
371 | </sect2>
|
---|
372 |
|
---|
373 | </sect1>
|
---|
374 |
|
---|