groff.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-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, and Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Groff</title>
  25. <para>Groff expects the environment variable <envar>PAGE</envar>
  26. to contain the default paper size. For users in the United States,
  27. <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
  28. <parameter>PAGE=A4</parameter> may be more suitable.</para>
  29. <para>Prepare Groff for compilation:</para>
  30. <screen><userinput>PAGE=<replaceable>[paper_size]</replaceable> ./configure --prefix=/usr</userinput></screen>
  31. <para>Compile the package:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>Install the package:</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><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  50. <?dbfo list-presentation="list"?>
  51. <varlistentry id="addftinfo">
  52. <term><command>addftinfo</command></term>
  53. <listitem>
  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. <indexterm zone="ch-system-groff addftinfo"><primary sortas="b-addftinfo">addftinfo</primary></indexterm>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry id="afmtodit">
  60. <term><command>afmtodit</command></term>
  61. <listitem>
  62. <para>Creates a font file for use with <command>groff</command> and <command>grops</command></para>
  63. <indexterm zone="ch-system-groff afmtodit"><primary sortas="b-afmtodit">afmtodit</primary></indexterm>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry id="eqn">
  67. <term><command>eqn</command></term>
  68. <listitem>
  69. <para>Compiles descriptions of equations embedded
  70. within troff input files into commands that are understood by <command>troff</command></para>
  71. <indexterm zone="ch-system-groff eqn"><primary sortas="b-eqn">eqn</primary></indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="eqn2graph">
  75. <term><command>eqn2graph</command></term>
  76. <listitem>
  77. <para>Converts a troff EQN (equation) into a cropped image</para>
  78. <indexterm zone="ch-system-groff eqn2graph"><primary sortas="b-eqn2graph">eqn2graph</primary></indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="geqn">
  82. <term><command>eqn</command></term>
  83. <listitem>
  84. <para>A link to <command>eqn</command></para>
  85. <indexterm zone="ch-system-groff geqn"><primary sortas="b-geqn">geqn</primary></indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="grn">
  89. <term><command>grn</command></term>
  90. <listitem>
  91. <para>A <command>groff</command> preprocessor for gremlin files</para>
  92. <indexterm zone="ch-system-groff grn"><primary sortas="b-grn">grn</primary></indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="grodvi">
  96. <term><command>grodvi</command></term>
  97. <listitem>
  98. <para>A driver for <command>groff</command> that produces TeX dvi format</para>
  99. <indexterm zone="ch-system-groff grodvi"><primary sortas="b-grodvi">grodvi</primary></indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="groff">
  103. <term><command>groff</command></term>
  104. <listitem>
  105. <para>A front-end to the groff document
  106. formatting system; normally, it runs the <command>troff</command> program and a post-processor
  107. appropriate for the selected device</para>
  108. <indexterm zone="ch-system-groff groff"><primary sortas="b-groff">groff</primary></indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="groffer">
  112. <term><command>groffer</command></term>
  113. <listitem>
  114. <para>Displays groff files and man pages on X and tty terminals</para>
  115. <indexterm zone="ch-system-groff groffer"><primary sortas="b-groffer">groffer</primary></indexterm>
  116. </listitem>
  117. </varlistentry>
  118. <varlistentry id="grog">
  119. <term><command>grog</command></term>
  120. <listitem>
  121. <para>Reads files and guesses which of the <command>groff</command>
  122. options <parameter>-e</parameter>, <parameter>-man</parameter>,
  123. <parameter>-me</parameter>, <parameter>-mm</parameter>,
  124. <parameter>-ms</parameter>, <parameter>-p</parameter>, <parameter>-s</parameter>,
  125. and <parameter>-t</parameter> are required for printing
  126. files, and reports the <command>groff</command> command including those options</para>
  127. <indexterm zone="ch-system-groff grog"><primary sortas="b-grog">grog</primary></indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="grolbp">
  131. <term><command>grolbp</command></term>
  132. <listitem>
  133. <para>Is a <command>groff</command> driver for Canon CAPSL printers
  134. (LBP-4 and LBP-8 series laser printers)</para>
  135. <indexterm zone="ch-system-groff grolbp"><primary sortas="b-grolbp">grolbp</primary></indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="grolj4">
  139. <term><command>grolj4</command></term>
  140. <listitem>
  141. <para>Is a driver for <command>groff</command> that produces output
  142. in PCL5 format suitable for an HP Laserjet 4 printer</para>
  143. <indexterm zone="ch-system-groff grolj4"><primary sortas="b-grolj4">grolj4</primary></indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="grops">
  147. <term><command>grops</command></term>
  148. <listitem>
  149. <para>Translates the output of GNU <command>troff</command> to PostScript</para>
  150. <indexterm zone="ch-system-groff grops"><primary sortas="b-grops">grops</primary></indexterm>
  151. </listitem>
  152. </varlistentry>
  153. <varlistentry id="grotty">
  154. <term><command>grotty</command></term>
  155. <listitem>
  156. <para>Translates the output of GNU <command>troff</command> into
  157. a form suitable for typewriter-like devices</para>
  158. <indexterm zone="ch-system-groff grotty"><primary sortas="b-grotty">grotty</primary></indexterm>
  159. </listitem>
  160. </varlistentry>
  161. <varlistentry id="gtbl">
  162. <term><command>gtbl</command></term>
  163. <listitem>
  164. <para>Is the GNU implementation of <command>tbl</command></para>
  165. <indexterm zone="ch-system-groff gtbl"><primary sortas="b-gtbl">gtbl</primary></indexterm>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="hpftodit">
  169. <term><command>hpftodit</command></term>
  170. <listitem>
  171. <para>Creates a font file for use with
  172. <command>groff -Tlj4</command> from an HP-tagged font metric file</para>
  173. <indexterm zone="ch-system-groff hpftodit"><primary sortas="b-hpftodit">hpftodit</primary></indexterm>
  174. </listitem>
  175. </varlistentry>
  176. <varlistentry id="indxbib">
  177. <term><command>indxbib</command></term>
  178. <listitem>
  179. <para>Creates an inverted index for the bibliographic databases with a specified file for
  180. use with <command>refer</command>, <command>lookbib</command>, and <command>lkbib</command></para>
  181. <indexterm zone="ch-system-groff indxbib"><primary sortas="b-indxbib">indxbib</primary></indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="lkbib">
  185. <term><command>lkbib</command></term>
  186. <listitem>
  187. <para>Searches bibliographic databases for references that contain
  188. specified keys and reports any references found</para>
  189. <indexterm zone="ch-system-groff lkbib"><primary sortas="b-lkbib">lkbib</primary></indexterm>
  190. </listitem>
  191. </varlistentry>
  192. <varlistentry id="lookbib">
  193. <term><command>lookbib</command></term>
  194. <listitem>
  195. <para>Prints a prompt on the standard error (unless the standard input
  196. is not a terminal), reads a line containing a
  197. set of keywords from the standard input, searches the bibliographic databases in a specified
  198. file for references containing those keywords, prints any references
  199. found on the standard output, and repeats this process until the end
  200. of input</para>
  201. <indexterm zone="ch-system-groff lookbib"><primary sortas="b-lookbib">lookbib</primary></indexterm>
  202. </listitem>
  203. </varlistentry>
  204. <varlistentry id="mmroff">
  205. <term><command>mmroff</command></term>
  206. <listitem>
  207. <para>A simple preprocessor for <command>groff</command></para>
  208. <indexterm zone="ch-system-groff mmroff"><primary sortas="b-mmroff">mmroff</primary></indexterm>
  209. </listitem>
  210. </varlistentry>
  211. <varlistentry id="neqn">
  212. <term><command>neqn</command></term>
  213. <listitem>
  214. <para>Formats equations for American Standard Code for Information
  215. Interchange (ASCII) output</para>
  216. <indexterm zone="ch-system-groff neqn"><primary sortas="b-neqn">neqn</primary></indexterm>
  217. </listitem>
  218. </varlistentry>
  219. <varlistentry id="nroff">
  220. <term><command>nroff</command></term>
  221. <listitem>
  222. <para>A script that emulates the <command>nroff</command> command using <command>groff</command></para>
  223. <indexterm zone="ch-system-groff nroff"><primary sortas="b-nroff">nroff</primary></indexterm>
  224. </listitem>
  225. </varlistentry>
  226. <varlistentry id="pfbtops">
  227. <term><command>pfbtops</command></term>
  228. <listitem>
  229. <para>Translates a PostScript font in <filename class="extension">.pfb</filename> format to ASCII</para>
  230. <indexterm zone="ch-system-groff pfbtops"><primary sortas="b-pfbtops">pfbtops</primary></indexterm>
  231. </listitem>
  232. </varlistentry>
  233. <varlistentry id="pic">
  234. <term><command>pic</command></term>
  235. <listitem>
  236. <para>Compiles descriptions of pictures embedded
  237. within troff or TeX input files into commands understood by TeX or <command>troff</command></para>
  238. <indexterm zone="ch-system-groff pic"><primary sortas="b-pic">pic</primary></indexterm>
  239. </listitem>
  240. </varlistentry>
  241. <varlistentry id="pic2graph">
  242. <term><command>pic2graph</command></term>
  243. <listitem>
  244. <para>Converts a PIC diagram into a cropped image</para>
  245. <indexterm zone="ch-system-groff pic2graph"><primary sortas="b-pic2graph">pic2graph</primary></indexterm>
  246. </listitem>
  247. </varlistentry>
  248. <varlistentry id="post-grohtml">
  249. <term><command>post-grohtml</command></term>
  250. <listitem>
  251. <para>Translates the output of GNU <command>troff</command> to html</para>
  252. <indexterm zone="ch-system-groff post-grohtml"><primary sortas="b-post-grohtml">post-grohtml</primary></indexterm>
  253. </listitem>
  254. </varlistentry>
  255. <varlistentry id="pre-grohtml">
  256. <term><command>pre-grohtml </command></term>
  257. <listitem>
  258. <para>Translates the output of GNU <command>troff</command> to html</para>
  259. <indexterm zone="ch-system-groff pre-grohtml"><primary sortas="b-pre-grohtml">pre-grohtml</primary></indexterm>
  260. </listitem>
  261. </varlistentry>
  262. <varlistentry id="refer">
  263. <term><command>refer</command></term>
  264. <listitem>
  265. <para>Copies the contents of a file to the standard output, except
  266. that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
  267. are interpreted as citations, and lines between
  268. <emphasis>.R1</emphasis> and <emphasis>.R2</emphasis> are interpreted
  269. as commands for how citations are to be processed</para>
  270. <indexterm zone="ch-system-groff refer"><primary sortas="b-refer">refer</primary></indexterm>
  271. </listitem>
  272. </varlistentry>
  273. <varlistentry id="soelim">
  274. <term><command>soelim</command></term>
  275. <listitem>
  276. <para>Reads files and replaces lines of the form
  277. <emphasis>.so file</emphasis> by the contents of the mentioned
  278. <emphasis>file</emphasis></para>
  279. <indexterm zone="ch-system-groff soelim"><primary sortas="b-soelim">soelim</primary></indexterm>
  280. </listitem>
  281. </varlistentry>
  282. <varlistentry id="tbl">
  283. <term><command>tbl</command></term>
  284. <listitem>
  285. <para>Compiles descriptions of tables embedded
  286. within troff input files into commands that are understood by <command>troff</command></para>
  287. <indexterm zone="ch-system-groff tbl"><primary sortas="b-tbl">tbl</primary></indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="tfmtodit">
  291. <term><command>tfmtodit</command></term>
  292. <listitem>
  293. <para>Creates a font file for use with <command>groff -Tdvi</command></para>
  294. <indexterm zone="ch-system-groff tfmtodit"><primary sortas="b-tfmtodit">tfmtodit</primary></indexterm>
  295. </listitem>
  296. </varlistentry>
  297. <varlistentry id="troff">
  298. <term><command>troff</command></term>
  299. <listitem>
  300. <para>Is highly compatible with Unix <command>troff</command>; it
  301. should usually be invoked using the
  302. <command>groff</command> command, which will also run preprocessors and post-processors in the
  303. appropriate order and with the appropriate options</para>
  304. <indexterm zone="ch-system-groff troff"><primary sortas="b-troff">troff</primary></indexterm>
  305. </listitem>
  306. </varlistentry>
  307. <varlistentry id="zsoelim">
  308. <term><command>zsoelim</command></term>
  309. <listitem>
  310. <para>Is the GNU implementation of <command>soelim</command></para>
  311. <indexterm zone="ch-system-groff zsoelim"><primary sortas="b-zsoelim">zsoelim</primary></indexterm>
  312. </listitem>
  313. </varlistentry>
  314. </variablelist>
  315. </sect2>
  316. </sect1>