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