groff.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. ]>
  6. <sect1 id="ch-system-groff" xreflabel="Groff" role="wrap">
  7. <title>Groff-&groff-version;</title>
  8. <?dbhtml filename="groff.html"?>
  9. <indexterm zone="ch-system-groff"><primary sortas="a-Groff">Groff</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Groff package contains programs for processing and formatting text.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.5 SBU</seg><seg>43 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Groff installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  20. Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Groff</title>
  25. <para>Groff expects the environment variable PAGE to contain the default paper
  26. size. For those in the United States, the command below is appropriate. If you
  27. live elsewhere, you may want to change <emphasis>PAGE=letter</emphasis> to
  28. <emphasis>PAGE=A4</emphasis>.</para>
  29. <para>Prepare Groff for compilation:</para>
  30. <screen><userinput>PAGE=letter ./configure --prefix=/usr</userinput></screen>
  31. <para>Compile the package:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>Now install it:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. <para>Some documentation programs, such as <command>xman</command>,
  36. will not work properly without the following symlinks:</para>
  37. <screen><userinput>ln -s soelim /usr/bin/zsoelim
  38. ln -s eqn /usr/bin/geqn
  39. ln -s tbl /usr/bin/gtbl</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-groff"><title>Contents of Groff</title>
  42. <para><emphasis>Installed programs</emphasis>: addftinfo, afmtodit, eqn,
  43. eqn2graph, geqn (link to eqn), grn, grodvi, groff, groffer, grog, grolbp,
  44. grolj4, grops, grotty, gtbl (link to tbl), hpftodit, indxbib, lkbib,
  45. lookbib, mmroff, neqn, nroff, pfbtops, pic, pic2graph, post-grohtml,
  46. pre-grohtml, refer, soelim, tbl, tfmtodit, troff and zsoelim (link to
  47. soelim)</para>
  48. </sect2>
  49. <sect2><title>Short descriptions</title>
  50. <indexterm zone="ch-system-groff addftinfo"><primary sortas="b-addftinfo">addftinfo</primary></indexterm>
  51. <para id="addftinfo"><command>addftinfo</command> reads a troff font file and adds some
  52. additional font-metric information that is used by the groff system.</para>
  53. <indexterm zone="ch-system-groff afmtodit"><primary sortas="b-afmtodit">afmtodit</primary></indexterm>
  54. <para id="afmtodit"><command>afmtodit</command> creates a font file for use with
  55. groff and grops.</para>
  56. <indexterm zone="ch-system-groff eqn"><primary sortas="b-eqn">eqn</primary></indexterm>
  57. <para id="eqn"><command>eqn</command> compiles descriptions of equations embedded
  58. within troff input files into commands that are understood by troff.</para>
  59. <indexterm zone="ch-system-groff eqn2graph"><primary sortas="b-eqn2graph">eqn2graph</primary></indexterm>
  60. <para id="eqn2graph"><command>eqn2graph</command> converts an EQN equation into a cropped
  61. image.</para>
  62. <indexterm zone="ch-system-groff grn"><primary sortas="b-grn">grn</primary></indexterm>
  63. <para id="grn"><command>grn</command> is a groff preprocessor for gremlin files.</para>
  64. <indexterm zone="ch-system-groff grodvi"><primary sortas="b-grodvi">grodvi</primary></indexterm>
  65. <para id="grodvi"><command>grodvi</command> is a driver for groff that produces TeX dvi format.</para>
  66. <indexterm zone="ch-system-groff groff"><primary sortas="b-groff">groff</primary></indexterm>
  67. <para id="groff"><command>groff</command> is a front-end to the groff document
  68. formatting system. Normally it runs the troff program and a post-processor
  69. appropriate for the selected device.</para>
  70. <indexterm zone="ch-system-groff groffer"><primary sortas="b-groffer">groffer</primary></indexterm>
  71. <para id="groffer"><command>groffer</command> displays groff files and man pages on X
  72. and tty terminals.</para>
  73. <indexterm zone="ch-system-groff grog"><primary sortas="b-grog">grog</primary></indexterm>
  74. <para id="grog"><command>grog</command> reads files and guesses which of the groff
  75. options -e, -man, -me, -mm, -ms, -p, -s, and -t are required for printing
  76. files, and reports the groff command including those options.</para>
  77. <indexterm zone="ch-system-groff grolbp"><primary sortas="b-grolbp">grolbp</primary></indexterm>
  78. <para id="grolbp"><command>grolbp</command> is a groff driver for Canon CAPSL printers
  79. (LBP-4 and LBP-8 series laser printers).</para>
  80. <indexterm zone="ch-system-groff grolj4"><primary sortas="b-grolj4">grolj4</primary></indexterm>
  81. <para id="grolj4"><command>grolj4</command> is a driver for groff that produces output
  82. in PCL5 format suitable for an HP Laserjet 4 printer.</para>
  83. <indexterm zone="ch-system-groff grops"><primary sortas="b-grops">grops</primary></indexterm>
  84. <para id="grops"><command>grops</command> translates the output of GNU troff to
  85. Postscript.</para>
  86. <indexterm zone="ch-system-groff grotty"><primary sortas="b-grotty">grotty</primary></indexterm>
  87. <para id="grotty"><command>grotty</command> translates the output of GNU troff into
  88. a form suitable for typewriter-like devices.</para>
  89. <indexterm zone="ch-system-groff gtbl"><primary sortas="b-gtbl">gtbl</primary></indexterm>
  90. <para id="gtbl"><command>gtbl</command> is the GNU implementation of tbl.</para>
  91. <indexterm zone="ch-system-groff hpftodit"><primary sortas="b-hpftodit">hpftodit</primary></indexterm>
  92. <para id="hpftodit"><command>hpftodit</command> creates a font file for use with
  93. groff -Tlj4 from an HP-tagged font metric file.</para>
  94. <indexterm zone="ch-system-groff indxbib"><primary sortas="b-indxbib">indxbib</primary></indexterm>
  95. <para id="indxbib"><command>indxbib</command> makes an inverted index for the
  96. bibliographic databases a specified file for use with refer, lookbib,
  97. and lkbib.</para>
  98. <indexterm zone="ch-system-groff lkbib"><primary sortas="b-lkbib">lkbib</primary></indexterm>
  99. <para id="lkbib"><command>lkbib</command> searches bibliographic databases for
  100. references that contain specified keys and reports any references found.</para>
  101. <indexterm zone="ch-system-groff lookbib"><primary sortas="b-lookbib">lookbib</primary></indexterm>
  102. <para id="lookbib"><command>lookbib</command> prints a prompt on the standard error
  103. (unless the standard input is not a terminal), reads from the standard input
  104. a line containing a set of keywords, searches the bibliographic databases in
  105. a specified file for references containing those keywords, prints any
  106. references found on the standard output and repeats this process until the
  107. end of input.</para>
  108. <indexterm zone="ch-system-groff mmroff"><primary sortas="b-mmroff">mmroff</primary></indexterm>
  109. <para id="mmroff"><command>mmroff</command> is a simple preprocessor for groff.</para>
  110. <indexterm zone="ch-system-groff neqn"><primary sortas="b-neqn">neqn</primary></indexterm>
  111. <para id="neqn"><command>neqn</command> formats equations for ASCII (American Standard Code for Information Interchange) output.</para>
  112. <indexterm zone="ch-system-groff nroff"><primary sortas="b-nroff">nroff</primary></indexterm>
  113. <para id="nroff"><command>nroff</command> is a script that emulates the nroff command
  114. using groff.</para>
  115. <indexterm zone="ch-system-groff pfbtops"><primary sortas="b-pfbtops">pfbtops</primary></indexterm>
  116. <para id="pfbtops"><command>pfbtops</command> translates a Postscript font in .pfb
  117. format to ASCII.</para>
  118. <indexterm zone="ch-system-groff pic"><primary sortas="b-pic">pic</primary></indexterm>
  119. <para id="pic"><command>pic</command> compiles descriptions of pictures embedded
  120. within troff or TeX input files into commands understood by TeX or troff.</para>
  121. <indexterm zone="ch-system-groff pic2graph"><primary sortas="b-pic2graph">pic2graph</primary></indexterm>
  122. <para id="pic2graph"><command>pic2graph</command> converts a PIC diagram into a cropped
  123. image.</para>
  124. <indexterm zone="ch-system-groff pre-grohtml"><primary sortas="b-pre-grohtml">pre-grohtml</primary></indexterm>
  125. <para id="pre-grohtml"><command>pre-grohtml </command> translates the output of GNU troff
  126. to html.</para>
  127. <indexterm zone="ch-system-groff post-grohtml"><primary sortas="b-post-grohtml">post-grohtml</primary></indexterm>
  128. <para id="post-grohtml"><command>post-grohtml</command> translates the output of GNU troff
  129. to html.</para>
  130. <indexterm zone="ch-system-groff refer"><primary sortas="b-refer">refer</primary></indexterm>
  131. <para id="refer"><command>refer</command> copies the contents of a file to the
  132. standard output, except that lines between .[ and .] are interpreted as
  133. citations, and lines between .R1 and .R2 are interpreted as commands about
  134. how citations are to be processed.</para>
  135. <indexterm zone="ch-system-groff soelim"><primary sortas="b-soelim">soelim</primary></indexterm>
  136. <para id="soelim"><command>soelim</command> reads files and replaces lines of the form
  137. <emphasis>.so file</emphasis> by the contents of the mentioned
  138. <emphasis>file</emphasis>.</para>
  139. <indexterm zone="ch-system-groff tbl"><primary sortas="b-tbl">tbl</primary></indexterm>
  140. <para id="tbl"><command>tbl</command> compiles descriptions of tables embedded
  141. within troff input files into commands that are understood by troff.</para>
  142. <indexterm zone="ch-system-groff tfmtodit"><primary sortas="b-tfmtodit">tfmtodit</primary></indexterm>
  143. <para id="tfmtodit"><command>tfmtodit</command> creates a font file for use with
  144. groff -Tdvi.</para>
  145. <indexterm zone="ch-system-groff troff"><primary sortas="b-troff">troff</primary></indexterm>
  146. <para id="troff"><command>troff</command> is highly compatible with Unix troff.
  147. Usually it should be invoked using the groff command, which will also run
  148. preprocessors and post-processors in the appropriate order and with the
  149. appropriate options.</para>
  150. <indexterm zone="ch-system-groff zsoelim"><primary sortas="b-zsoelim">zsoelim</primary></indexterm>
  151. <para id="zsoelim"><command>zsoelim</command> is the GNU implementation of soelim.</para>
  152. </sect2>
  153. </sect1>