source: chapter06/groff.xml@ 2c5ca04

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 7.5 7.6 7.7 7.8 7.9 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 2c5ca04 was 2c5ca04, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Fix e2fsprogs tests to run properly in the LFS chroot envirnment.
Remove unnecessary mkdir in groff.

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

  • Property mode set to 100644
File size: 20.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[4ae4324]7
[81fd230]8<sect1 id="ch-system-groff" role="wrap">
[4ae4324]9 <?dbhtml filename="groff.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>groff</productname>
13 <productnumber>&groff-version;</productnumber>
14 <address>&groff-url;</address>
15 </sect1info>
16
[4ae4324]17 <title>Groff-&groff-version;</title>
18
19 <indexterm zone="ch-system-groff">
20 <primary sortas="a-Groff">Groff</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[673b0d8]25
[4ae4324]26 <para>The Groff package contains programs for processing and formatting
27 text.</para>
[6370fa6]28
[4ae4324]29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[5888299]32
[4ae4324]33 <seglistitem>
[e4a5635]34 <seg>&groff-ch6-sbu;</seg>
35 <seg>&groff-ch6-du;</seg>
[4ae4324]36 </seglistitem>
37 </segmentedlist>
[a001133]38
[4ae4324]39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Groff</title>
43
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>
[81fd230]51
[f99f444]52 <para>Prepare Groff for compilation:</para>
[73aedd1d]53
[2fa7965]54<screen><userinput remap="configure">PAGE=<replaceable>&lt;paper_size&gt;</replaceable> ./configure --prefix=/usr</userinput></screen>
[73aedd1d]55
[4ae4324]56 <para>Compile the package:</para>
[73aedd1d]57
[0445a3d]58<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]59
[4ae4324]60 <para>This package does not come with a test suite.</para>
[0be3d41]61
[4ae4324]62 <para>Install the package:</para>
[73aedd1d]63
[2c5ca04]64<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]65
[4ae4324]66 <para>Some documentation programs, such as <command>xman</command>,
67 will not work properly without the following symlinks:</para>
[73aedd1d]68
[0445a3d]69<screen><userinput remap="install">ln -sv eqn /usr/bin/geqn
[5998892]70ln -sv tbl /usr/bin/gtbl</userinput></screen>
[73aedd1d]71
[4ae4324]72 </sect2>
73
74 <sect2 id="contents-groff" role="content">
75 <title>Contents of Groff</title>
76
77 <segmentedlist>
78 <segtitle>Installed programs</segtitle>
[fe05b08]79 <segtitle>Installed directories</segtitle>
[4ae4324]80
81 <seglistitem>
[90aae6b]82 <seg>addftinfo, afmtodit, chem, eqn, eqn2graph, gdiffmk,
83 geqn (link to eqn), grap2graph, grn, grodvi, groff, groffer, grog,
84 grolbp, grolj4, grops, grotty, gtbl (link to tbl), hpftodit,
85 indxbib, lkbib, lookbib, mmroff, neqn, nroff, pdfroff, pfbtops, pic,
86 pic2graph, post-grohtml, preconv, pre-grohtml, refer, roff2dvi,
87 roff2html, roff2pdf, roff2ps, roff2text, roff2x, soelim, tbl, tfmtodit,
88 and troff</seg>
[fe05b08]89 <seg>/usr/lib/groff, /usr/share/doc/groff-&groff-version;,
90 /usr/share/groff</seg>
[4ae4324]91 </seglistitem>
92 </segmentedlist>
93
94 <variablelist>
95 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
96 <?dbfo list-presentation="list"?>
97 <?dbhtml list-presentation="table"?>
98
99 <varlistentry id="addftinfo">
100 <term><command>addftinfo</command></term>
101 <listitem>
102 <para>Reads a troff font file and adds some additional font-metric
103 information that is used by the <command>groff</command> system</para>
104 <indexterm zone="ch-system-groff addftinfo">
105 <primary sortas="b-addftinfo">addftinfo</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="afmtodit">
111 <term><command>afmtodit</command></term>
112 <listitem>
113 <para>Creates a font file for use with <command>groff</command> and
114 <command>grops</command></para>
115 <indexterm zone="ch-system-groff afmtodit">
116 <primary sortas="b-afmtodit">afmtodit</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
[90aae6b]121 <varlistentry id="chem">
122 <term><command>chem</command></term>
123 <listitem>
124 <para>Groff preprocessor for producing chemical structure diagrams</para>
125 <indexterm zone="ch-system-groff chem">
126 <primary sortas="b-chem">chem</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
[4ae4324]131 <varlistentry id="eqn">
132 <term><command>eqn</command></term>
133 <listitem>
134 <para>Compiles descriptions of equations embedded within troff
135 input files into commands that are understood by
136 <command>troff</command></para>
137 <indexterm zone="ch-system-groff eqn">
138 <primary sortas="b-eqn">eqn</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="eqn2graph">
144 <term><command>eqn2graph</command></term>
145 <listitem>
146 <para>Converts a troff EQN (equation) into a cropped image</para>
147 <indexterm zone="ch-system-groff eqn2graph">
148 <primary sortas="b-eqn2graph">eqn2graph</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
[90aae6b]153 <varlistentry id="gdiffmk">
154 <term><command>gdiffmk</command></term>
155 <listitem>
156 <para>Marks differences between groff/nroff/troff files</para>
157 <indexterm zone="ch-system-groff gdiffmk">
158 <primary sortas="b-gdiffmk">gdiffmk</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
[4ae4324]163 <varlistentry id="geqn">
164 <term><command>geqn</command></term>
165 <listitem>
166 <para>A link to <command>eqn</command></para>
167 <indexterm zone="ch-system-groff geqn">
168 <primary sortas="b-geqn">geqn</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
[90aae6b]173 <varlistentry id="grap2graph">
174 <term><command>grap2graph</command></term>
175 <listitem>
176 <para>Converts a grap diagram into a cropped bitmap image</para>
177 <indexterm zone="ch-system-groff grap2graph">
178 <primary sortas="b-grap2graph">grap2graph</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
[4ae4324]183 <varlistentry id="grn">
184 <term><command>grn</command></term>
185 <listitem>
186 <para>A <command>groff</command> preprocessor for gremlin files</para>
187 <indexterm zone="ch-system-groff grn">
188 <primary sortas="b-grn">grn</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="grodvi">
194 <term><command>grodvi</command></term>
195 <listitem>
196 <para>A driver for <command>groff</command> that produces TeX dvi
197 format</para>
198 <indexterm zone="ch-system-groff grodvi">
199 <primary sortas="b-grodvi">grodvi</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="groff">
205 <term><command>groff</command></term>
206 <listitem>
207 <para>A front-end to the groff document formatting system; normally, it
208 runs the <command>troff</command> program and a post-processor
209 appropriate for the selected device</para>
210 <indexterm zone="ch-system-groff groff">
211 <primary sortas="b-groff">groff</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="groffer">
217 <term><command>groffer</command></term>
218 <listitem>
219 <para>Displays groff files and man pages on X and tty terminals</para>
220 <indexterm zone="ch-system-groff groffer">
221 <primary sortas="b-groffer">groffer</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="grog">
227 <term><command>grog</command></term>
228 <listitem>
229 <para>Reads files and guesses which of the <command>groff</command>
230 options <option>-e</option>, <option>-man</option>, <option>-me</option>,
231 <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
232 <option>-s</option>, and <option>-t</option> are required for printing
233 files, and reports the <command>groff</command> command including those
234 options</para>
235 <indexterm zone="ch-system-groff grog">
236 <primary sortas="b-grog">grog</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="grolbp">
242 <term><command>grolbp</command></term>
243 <listitem>
244 <para>Is a <command>groff</command> driver for Canon CAPSL printers
245 (LBP-4 and LBP-8 series laser printers)</para>
246 <indexterm zone="ch-system-groff grolbp">
247 <primary sortas="b-grolbp">grolbp</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="grolj4">
253 <term><command>grolj4</command></term>
254 <listitem>
255 <para>Is a driver for <command>groff</command> that produces output
256 in PCL5 format suitable for an HP LaserJet 4 printer</para>
257 <indexterm zone="ch-system-groff grolj4">
258 <primary sortas="b-grolj4">grolj4</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="grops">
264 <term><command>grops</command></term>
265 <listitem>
266 <para>Translates the output of GNU <command>troff</command> to
267 PostScript</para>
268 <indexterm zone="ch-system-groff grops">
269 <primary sortas="b-grops">grops</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="grotty">
275 <term><command>grotty</command></term>
276 <listitem>
277 <para>Translates the output of GNU <command>troff</command> into
278 a form suitable for typewriter-like devices</para>
279 <indexterm zone="ch-system-groff grotty">
280 <primary sortas="b-grotty">grotty</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="gtbl">
286 <term><command>gtbl</command></term>
287 <listitem>
288 <para>A link to <command>tbl</command></para>
289 <indexterm zone="ch-system-groff gtbl">
290 <primary sortas="b-gtbl">gtbl</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="hpftodit">
296 <term><command>hpftodit</command></term>
297 <listitem>
298 <para>Creates a font file for use with <command>groff -Tlj4</command>
299 from an HP-tagged font metric file</para>
300 <indexterm zone="ch-system-groff hpftodit">
301 <primary sortas="b-hpftodit">hpftodit</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="indxbib">
307 <term><command>indxbib</command></term>
308 <listitem>
309 <para>Creates an inverted index for the bibliographic databases with a
310 specified file for use with <command>refer</command>,
311 <command>lookbib</command>, and <command>lkbib</command></para>
312 <indexterm zone="ch-system-groff indxbib">
313 <primary sortas="b-indxbib">indxbib</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="lkbib">
319 <term><command>lkbib</command></term>
320 <listitem>
321 <para>Searches bibliographic databases for references that contain
322 specified keys and reports any references found</para>
323 <indexterm zone="ch-system-groff lkbib">
324 <primary sortas="b-lkbib">lkbib</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="lookbib">
330 <term><command>lookbib</command></term>
331 <listitem>
332 <para>Prints a prompt on the standard error (unless the standard input
333 is not a terminal), reads a line containing a set of keywords from the
334 standard input, searches the bibliographic databases in a specified file
335 for references containing those keywords, prints any references found
336 on the standard output, and repeats this process until the end of
337 input</para>
338 <indexterm zone="ch-system-groff lookbib">
339 <primary sortas="b-lookbib">lookbib</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="mmroff">
345 <term><command>mmroff</command></term>
346 <listitem>
347 <para>A simple preprocessor for <command>groff</command></para>
348 <indexterm zone="ch-system-groff mmroff">
349 <primary sortas="b-mmroff">mmroff</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="neqn">
355 <term><command>neqn</command></term>
356 <listitem>
357 <para>Formats equations for American Standard Code for Information
358 Interchange (ASCII) output</para>
359 <indexterm zone="ch-system-groff neqn">
360 <primary sortas="b-neqn">neqn</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="nroff">
366 <term><command>nroff</command></term>
367 <listitem>
368 <para>A script that emulates the <command>nroff</command> command
369 using <command>groff</command></para>
370 <indexterm zone="ch-system-groff nroff">
371 <primary sortas="b-nroff">nroff</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
[90aae6b]376 <varlistentry id="pdfroff">
377 <term><command>pdfroff</command></term>
378 <listitem>
379 <para>Creates pdf documents using groff</para>
380 <indexterm zone="ch-system-groff pdfroff">
381 <primary sortas="b-pdfroff">pdfroff</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
[4ae4324]386 <varlistentry id="pfbtops">
387 <term><command>pfbtops</command></term>
388 <listitem>
389 <para>Translates a PostScript font in <filename
390 class="extension">.pfb</filename> format to ASCII</para>
391 <indexterm zone="ch-system-groff pfbtops">
392 <primary sortas="b-pfbtops">pfbtops</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="pic">
398 <term><command>pic</command></term>
399 <listitem>
400 <para>Compiles descriptions of pictures embedded within troff or
401 TeX input files into commands understood by TeX or
402 <command>troff</command></para>
403 <indexterm zone="ch-system-groff pic">
404 <primary sortas="b-pic">pic</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="pic2graph">
410 <term><command>pic2graph</command></term>
411 <listitem>
412 <para>Converts a PIC diagram into a cropped image</para>
413 <indexterm zone="ch-system-groff pic2graph">
414 <primary sortas="b-pic2graph">pic2graph</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="post-grohtml">
420 <term><command>post-grohtml</command></term>
421 <listitem>
422 <para>Translates the output of GNU <command>troff</command> to
423 HTML</para>
424 <indexterm zone="ch-system-groff post-grohtml">
425 <primary sortas="b-post-grohtml">post-grohtml</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
[90aae6b]430 <varlistentry id="preconv">
431 <term><command>preconv</command></term>
432 <listitem>
433 <para>Converts encoding of input files to something GNU
434 <command>troff</command> understands</para>
435 <indexterm zone="ch-system-groff preconv">
[79f9e00]436 <primary sortas="b-preconv">preconv</primary>
[90aae6b]437 </indexterm>
438 </listitem>
439 </varlistentry>
440
[4ae4324]441 <varlistentry id="pre-grohtml">
442 <term><command>pre-grohtml </command></term>
443 <listitem>
444 <para>Translates the output of GNU <command>troff</command> to
445 HTML</para>
446 <indexterm zone="ch-system-groff pre-grohtml">
447 <primary sortas="b-pre-grohtml">pre-grohtml</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="refer">
453 <term><command>refer</command></term>
454 <listitem>
455 <para>Copies the contents of a file to the standard output, except
456 that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
457 are interpreted as citations, and lines between <emphasis>.R1</emphasis>
458 and <emphasis>.R2</emphasis> are interpreted as commands for how
459 citations are to be processed</para>
460 <indexterm zone="ch-system-groff refer">
461 <primary sortas="b-refer">refer</primary>
462 </indexterm>
463 </listitem>
464 </varlistentry>
465
[90aae6b]466 <varlistentry id="roff2dvi">
467 <term><command>roff2dvi</command></term>
468 <listitem>
469 <para>Transforms roff files into DVI format</para>
470 <indexterm zone="ch-system-groff roff2dvi">
471 <primary sortas="b-roff2dvi">roff2dvi</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
475
476 <varlistentry id="roff2html">
477 <term><command>roff2html</command></term>
478 <listitem>
479 <para>Transforms roff files into HTML format</para>
480 <indexterm zone="ch-system-groff roff2html">
481 <primary sortas="b-roff2html">roff2html</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="roff2pdf">
487 <term><command>roff2pdf</command></term>
488 <listitem>
489 <para>Transforms roff files into PDFs</para>
490 <indexterm zone="ch-system-groff roff2pdf">
491 <primary sortas="b-roff2pdf">roff2pdf</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="roff2ps">
497 <term><command>roff2ps</command></term>
498 <listitem>
499 <para>Transforms roff files into ps files</para>
500 <indexterm zone="ch-system-groff roff2ps">
501 <primary sortas="b-roff2ps">roff2ps</primary>
502 </indexterm>
503 </listitem>
504 </varlistentry>
505
506 <varlistentry id="roff2text">
507 <term><command>roff2text</command></term>
508 <listitem>
509 <para>Transforms roff files into text files</para>
510 <indexterm zone="ch-system-groff roff2text">
511 <primary sortas="b-roff2text">roff2text</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="roff2x">
517 <term><command>roff2x</command></term>
518 <listitem>
519 <para>Transforms roff files into other formats</para>
520 <indexterm zone="ch-system-groff roff2x">
521 <primary sortas="b-roff2x">roff2x</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
[4ae4324]526 <varlistentry id="soelim">
527 <term><command>soelim</command></term>
528 <listitem>
529 <para>Reads files and replaces lines of the form <emphasis>.so
530 file</emphasis> by the contents of the mentioned
531 <emphasis>file</emphasis></para>
532 <indexterm zone="ch-system-groff soelim">
533 <primary sortas="b-soelim">soelim</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
538 <varlistentry id="tbl">
539 <term><command>tbl</command></term>
540 <listitem>
541 <para>Compiles descriptions of tables embedded within troff input
542 files into commands that are understood by
543 <command>troff</command></para>
544 <indexterm zone="ch-system-groff tbl">
545 <primary sortas="b-tbl">tbl</primary>
546 </indexterm>
547 </listitem>
548 </varlistentry>
549
550 <varlistentry id="tfmtodit">
551 <term><command>tfmtodit</command></term>
552 <listitem>
553 <para>Creates a font file for use with <command>groff
554 -Tdvi</command></para>
555 <indexterm zone="ch-system-groff tfmtodit">
556 <primary sortas="b-tfmtodit">tfmtodit</primary>
557 </indexterm>
558 </listitem>
559 </varlistentry>
560
561 <varlistentry id="troff">
562 <term><command>troff</command></term>
563 <listitem>
564 <para>Is highly compatible with Unix <command>troff</command>; it
565 should usually be invoked using the <command>groff</command> command,
566 which will also run preprocessors and post-processors in the
567 appropriate order and with the appropriate options</para>
568 <indexterm zone="ch-system-groff troff">
569 <primary sortas="b-troff">troff</primary>
570 </indexterm>
571 </listitem>
572 </varlistentry>
573
574 </variablelist>
575
576 </sect2>
[673b0d8]577
578</sect1>
Note: See TracBrowser for help on using the repository browser.