source: chapter06/groff.xml@ 332ba21

6.0
Last change on this file since 332ba21 was 752f4e5, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags corrections, Chapter 6.

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

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