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