source: chapter06/groff.xml@ ff89c5b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since ff89c5b was ff89c5b, checked in by Matthew Burgess <matthew@…>, 18 years ago

Upgrade to Groff-1.18.1.4

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

  • Property mode set to 100644
File size: 16.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-groff" role="wrap">
9 <?dbhtml filename="groff.html"?>
10
11 <title>Groff-&groff-version;</title>
12
13 <indexterm zone="ch-system-groff">
14 <primary sortas="a-Groff">Groff</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Groff package contains programs for processing and formatting
21 text.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&groff-ch6-sbu;</seg>
29 <seg>&groff-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Groff</title>
37
38 <para>Apply the patch that adds the <quote>ascii8</quote> and
39 <quote>nippon</quote> devices to Groff:</para>
40
41<screen><userinput>patch -Np1 -i ../&groff-debian-patch;</userinput></screen>
42
43 <note>
44 <para>These devices are used by Man-DB when formatting non-English manual
45 pages that are not in the ISO-8859-1 encoding. Currently, there is no
46 working patch for Groff-1.19.x that adds this functionality.</para>
47 <!-- Details: http://bugs.debian.org/196762 -->
48 </note>
49
50 <para>Many screen fonts don't have Unicode single quotes and dashes in them.
51 Tell Groff to use the ASCII equivalents instead:</para>
52
53<screen><userinput>sed -i -e 's/2010/002D/' -e 's/2212/002D/' \
54 -e 's/2018/0060/' -e 's/2019/0027/' font/devutf8/R.proto</userinput></screen>
55
56 <para>Groff expects the environment variable <envar>PAGE</envar> to
57 contain the default paper size. For users in the United States,
58 <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
59 <parameter>PAGE=A4</parameter> may be more suitable. While the default
60 paper size is configured during compilation, it can be overridden later
61 by echoing either <quote>A4</quote> or <quote>letter</quote> to the
62 <filename>/etc/papersize</filename> file.</para>
63
64 <para>Prepare Groff for compilation:</para>
65
66<screen><userinput>PAGE=<replaceable>&lt;paper_size&gt;</replaceable> ./configure --prefix=/usr --enable-multibyte</userinput></screen>
67
68 <para>Compile the package:</para>
69
70<screen><userinput>make</userinput></screen>
71
72 <para>This package does not come with a test suite.</para>
73
74 <para>Install the package:</para>
75
76<screen><userinput>make install</userinput></screen>
77
78 <para>Some documentation programs, such as <command>xman</command>,
79 will not work properly without the following symlinks:</para>
80
81<screen><userinput>ln -sv eqn /usr/bin/geqn
82ln -sv tbl /usr/bin/gtbl</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="contents-groff" role="content">
87 <title>Contents of Groff</title>
88
89 <segmentedlist>
90 <segtitle>Installed programs</segtitle>
91
92 <seglistitem>
93 <seg>addftinfo, afmtodit, eqn, eqn2graph, geqn (link to eqn), grn,
94 grodvi, groff, groffer, grog, grolbp, grolj4, grops, grotty, gtbl
95 (link to tbl), hpftodit, indxbib, lkbib, lookbib, mmroff, neqn,
96 nroff, pfbtops, pic, pic2graph, post-grohtml, pre-grohtml, refer,
97 soelim, tbl, tfmtodit, and troff</seg>
98 </seglistitem>
99 </segmentedlist>
100
101 <variablelist>
102 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
103 <?dbfo list-presentation="list"?>
104 <?dbhtml list-presentation="table"?>
105
106 <varlistentry id="addftinfo">
107 <term><command>addftinfo</command></term>
108 <listitem>
109 <para>Reads a troff font file and adds some additional font-metric
110 information that is used by the <command>groff</command> system</para>
111 <indexterm zone="ch-system-groff addftinfo">
112 <primary sortas="b-addftinfo">addftinfo</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="afmtodit">
118 <term><command>afmtodit</command></term>
119 <listitem>
120 <para>Creates a font file for use with <command>groff</command> and
121 <command>grops</command></para>
122 <indexterm zone="ch-system-groff afmtodit">
123 <primary sortas="b-afmtodit">afmtodit</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="eqn">
129 <term><command>eqn</command></term>
130 <listitem>
131 <para>Compiles descriptions of equations embedded within troff
132 input files into commands that are understood by
133 <command>troff</command></para>
134 <indexterm zone="ch-system-groff eqn">
135 <primary sortas="b-eqn">eqn</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="eqn2graph">
141 <term><command>eqn2graph</command></term>
142 <listitem>
143 <para>Converts a troff EQN (equation) into a cropped image</para>
144 <indexterm zone="ch-system-groff eqn2graph">
145 <primary sortas="b-eqn2graph">eqn2graph</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="geqn">
151 <term><command>geqn</command></term>
152 <listitem>
153 <para>A link to <command>eqn</command></para>
154 <indexterm zone="ch-system-groff geqn">
155 <primary sortas="b-geqn">geqn</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="grn">
161 <term><command>grn</command></term>
162 <listitem>
163 <para>A <command>groff</command> preprocessor for gremlin files</para>
164 <indexterm zone="ch-system-groff grn">
165 <primary sortas="b-grn">grn</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="grodvi">
171 <term><command>grodvi</command></term>
172 <listitem>
173 <para>A driver for <command>groff</command> that produces TeX dvi
174 format</para>
175 <indexterm zone="ch-system-groff grodvi">
176 <primary sortas="b-grodvi">grodvi</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="groff">
182 <term><command>groff</command></term>
183 <listitem>
184 <para>A front-end to the groff document formatting system; normally, it
185 runs the <command>troff</command> program and a post-processor
186 appropriate for the selected device</para>
187 <indexterm zone="ch-system-groff groff">
188 <primary sortas="b-groff">groff</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="groffer">
194 <term><command>groffer</command></term>
195 <listitem>
196 <para>Displays groff files and man pages on X and tty terminals</para>
197 <indexterm zone="ch-system-groff groffer">
198 <primary sortas="b-groffer">groffer</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="grog">
204 <term><command>grog</command></term>
205 <listitem>
206 <para>Reads files and guesses which of the <command>groff</command>
207 options <option>-e</option>, <option>-man</option>, <option>-me</option>,
208 <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
209 <option>-s</option>, and <option>-t</option> are required for printing
210 files, and reports the <command>groff</command> command including those
211 options</para>
212 <indexterm zone="ch-system-groff grog">
213 <primary sortas="b-grog">grog</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="grolbp">
219 <term><command>grolbp</command></term>
220 <listitem>
221 <para>Is a <command>groff</command> driver for Canon CAPSL printers
222 (LBP-4 and LBP-8 series laser printers)</para>
223 <indexterm zone="ch-system-groff grolbp">
224 <primary sortas="b-grolbp">grolbp</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="grolj4">
230 <term><command>grolj4</command></term>
231 <listitem>
232 <para>Is a driver for <command>groff</command> that produces output
233 in PCL5 format suitable for an HP LaserJet 4 printer</para>
234 <indexterm zone="ch-system-groff grolj4">
235 <primary sortas="b-grolj4">grolj4</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="grops">
241 <term><command>grops</command></term>
242 <listitem>
243 <para>Translates the output of GNU <command>troff</command> to
244 PostScript</para>
245 <indexterm zone="ch-system-groff grops">
246 <primary sortas="b-grops">grops</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="grotty">
252 <term><command>grotty</command></term>
253 <listitem>
254 <para>Translates the output of GNU <command>troff</command> into
255 a form suitable for typewriter-like devices</para>
256 <indexterm zone="ch-system-groff grotty">
257 <primary sortas="b-grotty">grotty</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="gtbl">
263 <term><command>gtbl</command></term>
264 <listitem>
265 <para>A link to <command>tbl</command></para>
266 <indexterm zone="ch-system-groff gtbl">
267 <primary sortas="b-gtbl">gtbl</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="hpftodit">
273 <term><command>hpftodit</command></term>
274 <listitem>
275 <para>Creates a font file for use with <command>groff -Tlj4</command>
276 from an HP-tagged font metric file</para>
277 <indexterm zone="ch-system-groff hpftodit">
278 <primary sortas="b-hpftodit">hpftodit</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="indxbib">
284 <term><command>indxbib</command></term>
285 <listitem>
286 <para>Creates an inverted index for the bibliographic databases with a
287 specified file for use with <command>refer</command>,
288 <command>lookbib</command>, and <command>lkbib</command></para>
289 <indexterm zone="ch-system-groff indxbib">
290 <primary sortas="b-indxbib">indxbib</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="lkbib">
296 <term><command>lkbib</command></term>
297 <listitem>
298 <para>Searches bibliographic databases for references that contain
299 specified keys and reports any references found</para>
300 <indexterm zone="ch-system-groff lkbib">
301 <primary sortas="b-lkbib">lkbib</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="lookbib">
307 <term><command>lookbib</command></term>
308 <listitem>
309 <para>Prints a prompt on the standard error (unless the standard input
310 is not a terminal), reads a line containing a set of keywords from the
311 standard input, searches the bibliographic databases in a specified file
312 for references containing those keywords, prints any references found
313 on the standard output, and repeats this process until the end of
314 input</para>
315 <indexterm zone="ch-system-groff lookbib">
316 <primary sortas="b-lookbib">lookbib</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="mmroff">
322 <term><command>mmroff</command></term>
323 <listitem>
324 <para>A simple preprocessor for <command>groff</command></para>
325 <indexterm zone="ch-system-groff mmroff">
326 <primary sortas="b-mmroff">mmroff</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="neqn">
332 <term><command>neqn</command></term>
333 <listitem>
334 <para>Formats equations for American Standard Code for Information
335 Interchange (ASCII) output</para>
336 <indexterm zone="ch-system-groff neqn">
337 <primary sortas="b-neqn">neqn</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="nroff">
343 <term><command>nroff</command></term>
344 <listitem>
345 <para>A script that emulates the <command>nroff</command> command
346 using <command>groff</command></para>
347 <indexterm zone="ch-system-groff nroff">
348 <primary sortas="b-nroff">nroff</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="pfbtops">
354 <term><command>pfbtops</command></term>
355 <listitem>
356 <para>Translates a PostScript font in <filename
357 class="extension">.pfb</filename> format to ASCII</para>
358 <indexterm zone="ch-system-groff pfbtops">
359 <primary sortas="b-pfbtops">pfbtops</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="pic">
365 <term><command>pic</command></term>
366 <listitem>
367 <para>Compiles descriptions of pictures embedded within troff or
368 TeX input files into commands understood by TeX or
369 <command>troff</command></para>
370 <indexterm zone="ch-system-groff pic">
371 <primary sortas="b-pic">pic</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="pic2graph">
377 <term><command>pic2graph</command></term>
378 <listitem>
379 <para>Converts a PIC diagram into a cropped image</para>
380 <indexterm zone="ch-system-groff pic2graph">
381 <primary sortas="b-pic2graph">pic2graph</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="post-grohtml">
387 <term><command>post-grohtml</command></term>
388 <listitem>
389 <para>Translates the output of GNU <command>troff</command> to
390 HTML</para>
391 <indexterm zone="ch-system-groff post-grohtml">
392 <primary sortas="b-post-grohtml">post-grohtml</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="pre-grohtml">
398 <term><command>pre-grohtml </command></term>
399 <listitem>
400 <para>Translates the output of GNU <command>troff</command> to
401 HTML</para>
402 <indexterm zone="ch-system-groff pre-grohtml">
403 <primary sortas="b-pre-grohtml">pre-grohtml</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
408 <varlistentry id="refer">
409 <term><command>refer</command></term>
410 <listitem>
411 <para>Copies the contents of a file to the standard output, except
412 that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
413 are interpreted as citations, and lines between <emphasis>.R1</emphasis>
414 and <emphasis>.R2</emphasis> are interpreted as commands for how
415 citations are to be processed</para>
416 <indexterm zone="ch-system-groff refer">
417 <primary sortas="b-refer">refer</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="soelim">
423 <term><command>soelim</command></term>
424 <listitem>
425 <para>Reads files and replaces lines of the form <emphasis>.so
426 file</emphasis> by the contents of the mentioned
427 <emphasis>file</emphasis></para>
428 <indexterm zone="ch-system-groff soelim">
429 <primary sortas="b-soelim">soelim</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="tbl">
435 <term><command>tbl</command></term>
436 <listitem>
437 <para>Compiles descriptions of tables embedded within troff input
438 files into commands that are understood by
439 <command>troff</command></para>
440 <indexterm zone="ch-system-groff tbl">
441 <primary sortas="b-tbl">tbl</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="tfmtodit">
447 <term><command>tfmtodit</command></term>
448 <listitem>
449 <para>Creates a font file for use with <command>groff
450 -Tdvi</command></para>
451 <indexterm zone="ch-system-groff tfmtodit">
452 <primary sortas="b-tfmtodit">tfmtodit</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="troff">
458 <term><command>troff</command></term>
459 <listitem>
460 <para>Is highly compatible with Unix <command>troff</command>; it
461 should usually be invoked using the <command>groff</command> command,
462 which will also run preprocessors and post-processors in the
463 appropriate order and with the appropriate options</para>
464 <indexterm zone="ch-system-groff troff">
465 <primary sortas="b-troff">troff</primary>
466 </indexterm>
467 </listitem>
468 </varlistentry>
469
470 </variablelist>
471
472 </sect2>
473
474</sect1>
Note: See TracBrowser for help on using the repository browser.