source: chapter06/groff.xml@ 6a1593df

Last change on this file since 6a1593df was 2256873, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Last edit round.

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

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