groff.xml 13 KB

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