source: chapter06/groff.xml@ 9c9cfbff

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

Fix bug 906

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

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