groff.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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" role="content"><title>Contents of Groff</title>
  42. <segmentedlist>
  43. <segtitle>Installed programs</segtitle>
  44. <seglistitem><seg>addftinfo, afmtodit, eqn, eqn2graph, geqn (link to eqn), grn,
  45. grodvi, groff, groffer, grog, grolbp, grolj4, grops, grotty, gtbl (link to tbl), hpftodit,
  46. indxbib, lkbib, lookbib, mmroff, neqn, nroff, pfbtops, pic, pic2graph, post-grohtml,
  47. pre-grohtml, refer, soelim, tbl, tfmtodit, troff and zsoelim (link to soelim)</seg></seglistitem>
  48. </segmentedlist>
  49. <variablelist><title>Short descriptions</title>
  50. <varlistentry id="addftinfo">
  51. <term><command>addftinfo</command></term>
  52. <listitem>
  53. <indexterm zone="ch-system-groff addftinfo"><primary sortas="b-addftinfo">addftinfo</primary></indexterm>
  54. <para>reads a troff font file and adds some
  55. additional font-metric information that is used by the groff system.</para>
  56. </listitem>
  57. </varlistentry>
  58. <varlistentry id="afmtodit">
  59. <term><command>afmtodit</command></term>
  60. <listitem>
  61. <indexterm zone="ch-system-groff afmtodit"><primary sortas="b-afmtodit">afmtodit</primary></indexterm>
  62. <para>creates a font file for use with groff and grops.</para>
  63. </listitem>
  64. </varlistentry>
  65. <varlistentry id="eqn">
  66. <term><command>eqn</command></term>
  67. <listitem>
  68. <indexterm zone="ch-system-groff eqn"><primary sortas="b-eqn">eqn</primary></indexterm>
  69. <para>compiles descriptions of equations embedded
  70. within troff input files into commands that are understood by troff.</para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="eqn2graph">
  74. <term><command>eqn2graph</command></term>
  75. <listitem>
  76. <indexterm zone="ch-system-groff eqn2graph"><primary sortas="b-eqn2graph">eqn2graph</primary></indexterm>
  77. <para>converts an EQN equation into a cropped image.</para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="grn">
  81. <term><command>grn</command></term>
  82. <listitem>
  83. <indexterm zone="ch-system-groff grn"><primary sortas="b-grn">grn</primary></indexterm>
  84. <para>is a groff preprocessor for gremlin files.</para>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="grodvi">
  88. <term><command>grodvi</command></term>
  89. <listitem>
  90. <indexterm zone="ch-system-groff grodvi"><primary sortas="b-grodvi">grodvi</primary></indexterm>
  91. <para>is a driver for groff that produces TeX dvi format.</para>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="groff">
  95. <term><command>groff</command></term>
  96. <listitem>
  97. <indexterm zone="ch-system-groff groff"><primary sortas="b-groff">groff</primary></indexterm>
  98. <para>is a front-end to the groff document
  99. formatting system. Normally it runs the troff program and a post-processor
  100. appropriate for the selected device.</para>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="groffer">
  104. <term><command>groffer</command></term>
  105. <listitem>
  106. <indexterm zone="ch-system-groff groffer"><primary sortas="b-groffer">groffer</primary></indexterm>
  107. <para>displays groff files and man pages on X and tty terminals.</para>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="grog">
  111. <term><command>grog</command></term>
  112. <listitem>
  113. <indexterm zone="ch-system-groff grog"><primary sortas="b-grog">grog</primary></indexterm>
  114. <para>reads files and guesses which of the groff
  115. options -e, -man, -me, -mm, -ms, -p, -s, and -t are required for printing
  116. files, and reports the groff command including those options.</para>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="grolbp">
  120. <term><command>grolbp</command></term>
  121. <listitem>
  122. <indexterm zone="ch-system-groff grolbp"><primary sortas="b-grolbp">grolbp</primary></indexterm>
  123. <para>is a groff driver for Canon CAPSL printers
  124. (LBP-4 and LBP-8 series laser printers).</para>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="grolj4">
  128. <term><command>grolj4</command></term>
  129. <listitem>
  130. <indexterm zone="ch-system-groff grolj4"><primary sortas="b-grolj4">grolj4</primary></indexterm>
  131. <para>is a driver for groff that produces output
  132. in PCL5 format suitable for an HP Laserjet 4 printer.</para>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry id="grops">
  136. <term><command>grops</command></term>
  137. <listitem>
  138. <indexterm zone="ch-system-groff grops"><primary sortas="b-grops">grops</primary></indexterm>
  139. <para>translates the output of GNU troff to Postscript.</para>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="grotty">
  143. <term><command>grotty</command></term>
  144. <listitem>
  145. <indexterm zone="ch-system-groff grotty"><primary sortas="b-grotty">grotty</primary></indexterm>
  146. <para>translates the output of GNU troff into
  147. a form suitable for typewriter-like devices.</para>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="gtbl">
  151. <term><command>gtbl</command></term>
  152. <listitem>
  153. <indexterm zone="ch-system-groff gtbl"><primary sortas="b-gtbl">gtbl</primary></indexterm>
  154. <para>is the GNU implementation of tbl.</para>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="hpftodit">
  158. <term><command>hpftodit</command></term>
  159. <listitem>
  160. <indexterm zone="ch-system-groff hpftodit"><primary sortas="b-hpftodit">hpftodit</primary></indexterm>
  161. <para>creates a font file for use with
  162. groff -Tlj4 from an HP-tagged font metric file.</para>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="indxbib">
  166. <term><command>indxbib</command></term>
  167. <listitem>
  168. <indexterm zone="ch-system-groff indxbib"><primary sortas="b-indxbib">indxbib</primary></indexterm>
  169. <para>makes an inverted index for the bibliographic databases a specified file for
  170. use with refer, lookbib, and lkbib.</para>
  171. </listitem>
  172. </varlistentry>
  173. <varlistentry id="lkbib">
  174. <term><command>lkbib</command></term>
  175. <listitem>
  176. <indexterm zone="ch-system-groff lkbib"><primary sortas="b-lkbib">lkbib</primary></indexterm>
  177. <para>searches bibliographic databases for
  178. references that contain specified keys and reports any references found.</para>
  179. </listitem>
  180. </varlistentry>
  181. <varlistentry id="lookbib">
  182. <term><command>lookbib</command></term>
  183. <listitem>
  184. <indexterm zone="ch-system-groff lookbib"><primary sortas="b-lookbib">lookbib</primary></indexterm>
  185. <para>prints a prompt on the standard error
  186. (unless the standard input is not a terminal), reads from the standard input
  187. a line containing a set of keywords, searches the bibliographic databases in
  188. a specified file for references containing those keywords, prints any
  189. references found on the standard output and repeats this process until the
  190. end of input.</para>
  191. </listitem>
  192. </varlistentry>
  193. <varlistentry id="mmroff">
  194. <term><command>mmroff</command></term>
  195. <listitem>
  196. <indexterm zone="ch-system-groff mmroff"><primary sortas="b-mmroff">mmroff</primary></indexterm>
  197. <para>is a simple preprocessor for groff.</para>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry id="neqn">
  201. <term><command>neqn</command></term>
  202. <listitem>
  203. <indexterm zone="ch-system-groff neqn"><primary sortas="b-neqn">neqn</primary></indexterm>
  204. <para>formats equations for ASCII (American Standard Code for Information
  205. Interchange) output.</para>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry id="nroff">
  209. <term><command>nroff</command></term>
  210. <listitem>
  211. <indexterm zone="ch-system-groff nroff"><primary sortas="b-nroff">nroff</primary></indexterm>
  212. <para>is a script that emulates the nroff command using groff.</para>
  213. </listitem>
  214. </varlistentry>
  215. <varlistentry id="pfbtops">
  216. <term><command>pfbtops</command></term>
  217. <listitem>
  218. <indexterm zone="ch-system-groff pfbtops"><primary sortas="b-pfbtops">pfbtops</primary></indexterm>
  219. <para>translates a Postscript font in .pfb format to ASCII.</para>
  220. </listitem>
  221. </varlistentry>
  222. <varlistentry id="pic">
  223. <term><command>pic</command></term>
  224. <listitem>
  225. <indexterm zone="ch-system-groff pic"><primary sortas="b-pic">pic</primary></indexterm>
  226. <para>compiles descriptions of pictures embedded
  227. within troff or TeX input files into commands understood by TeX or troff.</para>
  228. </listitem>
  229. </varlistentry>
  230. <varlistentry id="pic2graph">
  231. <term><command>pic2graph</command></term>
  232. <listitem>
  233. <indexterm zone="ch-system-groff pic2graph"><primary sortas="b-pic2graph">pic2graph</primary></indexterm>
  234. <para>converts a PIC diagram into a cropped image.</para>
  235. </listitem>
  236. </varlistentry>
  237. <varlistentry id="pre-grohtml">
  238. <term><command>pre-grohtml </command></term>
  239. <listitem>
  240. <indexterm zone="ch-system-groff pre-grohtml"><primary sortas="b-pre-grohtml">pre-grohtml</primary></indexterm>
  241. <para>translates the output of GNU troff to html.</para>
  242. </listitem>
  243. </varlistentry>
  244. <varlistentry id="post-grohtml">
  245. <term><command>post-grohtml</command></term>
  246. <listitem>
  247. <indexterm zone="ch-system-groff post-grohtml"><primary sortas="b-post-grohtml">post-grohtml</primary></indexterm>
  248. <para>translates the output of GNU troff to html.</para>
  249. </listitem>
  250. </varlistentry>
  251. <varlistentry id="refer">
  252. <term><command>refer</command></term>
  253. <listitem>
  254. <indexterm zone="ch-system-groff refer"><primary sortas="b-refer">refer</primary></indexterm>
  255. <para>copies the contents of a file to the
  256. standard output, except that lines between .[ and .] are interpreted as
  257. citations, and lines between .R1 and .R2 are interpreted as commands about
  258. how citations are to be processed.</para>
  259. </listitem>
  260. </varlistentry>
  261. <varlistentry id="soelim">
  262. <term><command>soelim</command></term>
  263. <listitem>
  264. <indexterm zone="ch-system-groff soelim"><primary sortas="b-soelim">soelim</primary></indexterm>
  265. <para>reads files and replaces lines of the form
  266. <emphasis>.so file</emphasis> by the contents of the mentioned
  267. <emphasis>file</emphasis>.</para>
  268. </listitem>
  269. </varlistentry>
  270. <varlistentry id="tbl">
  271. <term><command>tbl</command></term>
  272. <listitem>
  273. <indexterm zone="ch-system-groff tbl"><primary sortas="b-tbl">tbl</primary></indexterm>
  274. <para>compiles descriptions of tables embedded
  275. within troff input files into commands that are understood by troff.</para>
  276. </listitem>
  277. </varlistentry>
  278. <varlistentry id="tfmtodit">
  279. <term><command>tfmtodit</command></term>
  280. <listitem>
  281. <indexterm zone="ch-system-groff tfmtodit"><primary sortas="b-tfmtodit">tfmtodit</primary></indexterm>
  282. <para>creates a font file for use with groff -Tdvi.</para>
  283. </listitem>
  284. </varlistentry>
  285. <varlistentry id="troff">
  286. <term><command>troff</command></term>
  287. <listitem>
  288. <indexterm zone="ch-system-groff troff"><primary sortas="b-troff">troff</primary></indexterm>
  289. <para>is highly compatible with Unix troff. Usually it should be invoked using the
  290. groff command, which will also run preprocessors and post-processors in the
  291. appropriate order and with the appropriate options.</para>
  292. </listitem>
  293. </varlistentry>
  294. <varlistentry id="zsoelim">
  295. <term><command>zsoelim</command></term>
  296. <listitem>
  297. <indexterm zone="ch-system-groff zsoelim"><primary sortas="b-zsoelim">zsoelim</primary></indexterm>
  298. <para>is the GNU implementation of soelim.</para>
  299. </listitem>
  300. </varlistentry>
  301. </variablelist>
  302. </sect2>
  303. </sect1>