source: chapter06/groff.xml@ 7e0cfc1

6.0
Last change on this file since 7e0cfc1 was 7e0cfc1, checked in by Matthew Burgess <matthew@…>, 20 years ago

Reworded Groff intro to match the earlier command change

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4242 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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