groff.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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 <command>groff</command> 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 <command>groff</command> and <command>grops</command>.</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 <command>troff</command>.</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 <command>groff</command> 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 <command>groff</command> 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 <command>troff</command> 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 <command>groff</command>
  115. options <parameter>-e</parameter>, <parameter>-man</parameter>,
  116. <parameter>-me</parameter>, <parameter>-mm</parameter>,
  117. <parameter>-ms</parameter>, <parameter>-p</parameter>, <parameter>-s</parameter>,
  118. and <parameter>-t</parameter> are required for printing
  119. files, and reports the <command>groff</command> command including those options.</para>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="grolbp">
  123. <term><command>grolbp</command></term>
  124. <listitem>
  125. <indexterm zone="ch-system-groff grolbp"><primary sortas="b-grolbp">grolbp</primary></indexterm>
  126. <para>is a <command>groff</command> driver for Canon CAPSL printers
  127. (LBP-4 and LBP-8 series laser printers).</para>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="grolj4">
  131. <term><command>grolj4</command></term>
  132. <listitem>
  133. <indexterm zone="ch-system-groff grolj4"><primary sortas="b-grolj4">grolj4</primary></indexterm>
  134. <para>is a driver for <command>groff</command> that produces output
  135. in PCL5 format suitable for an HP Laserjet 4 printer.</para>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="grops">
  139. <term><command>grops</command></term>
  140. <listitem>
  141. <indexterm zone="ch-system-groff grops"><primary sortas="b-grops">grops</primary></indexterm>
  142. <para>translates the output of GNU <command>troff</command> to PostScript.</para>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="grotty">
  146. <term><command>grotty</command></term>
  147. <listitem>
  148. <indexterm zone="ch-system-groff grotty"><primary sortas="b-grotty">grotty</primary></indexterm>
  149. <para>translates the output of GNU <command>troff</command> into
  150. a form suitable for typewriter-like devices.</para>
  151. </listitem>
  152. </varlistentry>
  153. <varlistentry id="gtbl">
  154. <term><command>gtbl</command></term>
  155. <listitem>
  156. <indexterm zone="ch-system-groff gtbl"><primary sortas="b-gtbl">gtbl</primary></indexterm>
  157. <para>is the GNU implementation of <command>tbl</command>.</para>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="hpftodit">
  161. <term><command>hpftodit</command></term>
  162. <listitem>
  163. <indexterm zone="ch-system-groff hpftodit"><primary sortas="b-hpftodit">hpftodit</primary></indexterm>
  164. <para>creates a font file for use with
  165. <command>groff -Tlj4</command> from an HP-tagged font metric file.</para>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="indxbib">
  169. <term><command>indxbib</command></term>
  170. <listitem>
  171. <indexterm zone="ch-system-groff indxbib"><primary sortas="b-indxbib">indxbib</primary></indexterm>
  172. <para>makes an inverted index for the bibliographic databases a specified file for
  173. use with <command>refer</command>, <command>lookbib</command>, and <command>lkbib</command>.</para>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="lkbib">
  177. <term><command>lkbib</command></term>
  178. <listitem>
  179. <indexterm zone="ch-system-groff lkbib"><primary sortas="b-lkbib">lkbib</primary></indexterm>
  180. <para>searches bibliographic databases for
  181. references that contain specified keys and reports any references found.</para>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="lookbib">
  185. <term><command>lookbib</command></term>
  186. <listitem>
  187. <indexterm zone="ch-system-groff lookbib"><primary sortas="b-lookbib">lookbib</primary></indexterm>
  188. <para>prints a prompt on the standard error
  189. (unless the standard input is not a terminal), reads from the standard input
  190. a line containing a set of keywords, searches the bibliographic databases in
  191. a specified file for references containing those keywords, prints any
  192. references found on the standard output and repeats this process until the
  193. end of input.</para>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry id="mmroff">
  197. <term><command>mmroff</command></term>
  198. <listitem>
  199. <indexterm zone="ch-system-groff mmroff"><primary sortas="b-mmroff">mmroff</primary></indexterm>
  200. <para>is a simple preprocessor for <command>groff</command>.</para>
  201. </listitem>
  202. </varlistentry>
  203. <varlistentry id="neqn">
  204. <term><command>neqn</command></term>
  205. <listitem>
  206. <indexterm zone="ch-system-groff neqn"><primary sortas="b-neqn">neqn</primary></indexterm>
  207. <para>formats equations for ASCII (American Standard Code for Information
  208. Interchange) output.</para>
  209. </listitem>
  210. </varlistentry>
  211. <varlistentry id="nroff">
  212. <term><command>nroff</command></term>
  213. <listitem>
  214. <indexterm zone="ch-system-groff nroff"><primary sortas="b-nroff">nroff</primary></indexterm>
  215. <para>is a script that emulates the <command>nroff</command> command using <command>groff</command>.</para>
  216. </listitem>
  217. </varlistentry>
  218. <varlistentry id="pfbtops">
  219. <term><command>pfbtops</command></term>
  220. <listitem>
  221. <indexterm zone="ch-system-groff pfbtops"><primary sortas="b-pfbtops">pfbtops</primary></indexterm>
  222. <para>translates a PostScript font in <filename class="extension">.pfb</filename> format to ASCII.</para>
  223. </listitem>
  224. </varlistentry>
  225. <varlistentry id="pic">
  226. <term><command>pic</command></term>
  227. <listitem>
  228. <indexterm zone="ch-system-groff pic"><primary sortas="b-pic">pic</primary></indexterm>
  229. <para>compiles descriptions of pictures embedded
  230. within troff or TeX input files into commands understood by TeX or <command>troff</command>.</para>
  231. </listitem>
  232. </varlistentry>
  233. <varlistentry id="pic2graph">
  234. <term><command>pic2graph</command></term>
  235. <listitem>
  236. <indexterm zone="ch-system-groff pic2graph"><primary sortas="b-pic2graph">pic2graph</primary></indexterm>
  237. <para>converts a PIC diagram into a cropped image.</para>
  238. </listitem>
  239. </varlistentry>
  240. <varlistentry id="pre-grohtml">
  241. <term><command>pre-grohtml </command></term>
  242. <listitem>
  243. <indexterm zone="ch-system-groff pre-grohtml"><primary sortas="b-pre-grohtml">pre-grohtml</primary></indexterm>
  244. <para>translates the output of GNU <command>troff</command> to html.</para>
  245. </listitem>
  246. </varlistentry>
  247. <varlistentry id="post-grohtml">
  248. <term><command>post-grohtml</command></term>
  249. <listitem>
  250. <indexterm zone="ch-system-groff post-grohtml"><primary sortas="b-post-grohtml">post-grohtml</primary></indexterm>
  251. <para>translates the output of GNU <command>troff</command> to html.</para>
  252. </listitem>
  253. </varlistentry>
  254. <varlistentry id="refer">
  255. <term><command>refer</command></term>
  256. <listitem>
  257. <indexterm zone="ch-system-groff refer"><primary sortas="b-refer">refer</primary></indexterm>
  258. <para>copies the contents of a file to the
  259. standard output, except that lines between .[ and .] are interpreted as
  260. citations, and lines between .R1 and .R2 are interpreted as commands about
  261. how citations are to be processed.</para>
  262. </listitem>
  263. </varlistentry>
  264. <varlistentry id="soelim">
  265. <term><command>soelim</command></term>
  266. <listitem>
  267. <indexterm zone="ch-system-groff soelim"><primary sortas="b-soelim">soelim</primary></indexterm>
  268. <para>reads files and replaces lines of the form
  269. <emphasis>.so file</emphasis> by the contents of the mentioned
  270. <emphasis>file</emphasis>.</para>
  271. </listitem>
  272. </varlistentry>
  273. <varlistentry id="tbl">
  274. <term><command>tbl</command></term>
  275. <listitem>
  276. <indexterm zone="ch-system-groff tbl"><primary sortas="b-tbl">tbl</primary></indexterm>
  277. <para>compiles descriptions of tables embedded
  278. within troff input files into commands that are understood by <command>troff</command>.</para>
  279. </listitem>
  280. </varlistentry>
  281. <varlistentry id="tfmtodit">
  282. <term><command>tfmtodit</command></term>
  283. <listitem>
  284. <indexterm zone="ch-system-groff tfmtodit"><primary sortas="b-tfmtodit">tfmtodit</primary></indexterm>
  285. <para>creates a font file for use with <command>groff -Tdvi</command>.</para>
  286. </listitem>
  287. </varlistentry>
  288. <varlistentry id="troff">
  289. <term><command>troff</command></term>
  290. <listitem>
  291. <indexterm zone="ch-system-groff troff"><primary sortas="b-troff">troff</primary></indexterm>
  292. <para>is highly compatible with Unix <command>troff</command>. Usually it should be invoked using the
  293. <command>groff</command> command, which will also run preprocessors and post-processors in the
  294. appropriate order and with the appropriate options.</para>
  295. </listitem>
  296. </varlistentry>
  297. <varlistentry id="zsoelim">
  298. <term><command>zsoelim</command></term>
  299. <listitem>
  300. <indexterm zone="ch-system-groff zsoelim"><primary sortas="b-zsoelim">zsoelim</primary></indexterm>
  301. <para>is the GNU implementation of <command>soelim</command>.</para>
  302. </listitem>
  303. </varlistentry>
  304. </variablelist>
  305. </sect2>
  306. </sect1>