groff.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-groff" role="wrap">
  8. <?dbhtml filename="groff.html"?>
  9. <sect1info condition="script">
  10. <productname>groff</productname>
  11. <productnumber>&groff-version;</productnumber>
  12. <address>&groff-url;</address>
  13. </sect1info>
  14. <title>Groff-&groff-version;</title>
  15. <indexterm zone="ch-system-groff">
  16. <primary sortas="a-Groff">Groff</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Groff package contains programs for processing and formatting
  21. text.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&groff-ch6-sbu;</seg>
  27. <seg>&groff-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Groff</title>
  33. <para>Groff expects the environment variable <envar>PAGE</envar> to
  34. contain the default paper size. For users in the United States,
  35. <parameter>PAGE=letter</parameter> is appropriate. Elsewhere,
  36. <parameter>PAGE=A4</parameter> may be more suitable. While the default
  37. paper size is configured during compilation, it can be overridden later
  38. by echoing either <quote>A4</quote> or <quote>letter</quote> to the
  39. <filename>/etc/papersize</filename> file.</para>
  40. <para>Prepare Groff for compilation:</para>
  41. <screen><userinput remap="configure">PAGE=<replaceable>&lt;paper_size&gt;</replaceable> ./configure --prefix=/usr</userinput></screen>
  42. <para>Compile the package:</para>
  43. <screen><userinput remap="make">make</userinput></screen>
  44. <para>This package does not come with a test suite.</para>
  45. <para>Install the package:</para>
  46. <screen><userinput remap="install">make install</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-groff" role="content">
  49. <title>Contents of Groff</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <segtitle>Installed directories</segtitle>
  53. <seglistitem>
  54. <seg>addftinfo, afmtodit, chem, eqn, eqn2graph, gdiffmk,
  55. geqn (link to eqn), grap2graph, grn, grodvi, groff, groffer, grog,
  56. grolbp, grolj4, grops, grotty, gtbl (link to tbl), hpftodit,
  57. indxbib, lkbib, lookbib, mmroff, neqn, nroff, pdfroff, pfbtops, pic,
  58. pic2graph, post-grohtml, preconv, pre-grohtml, refer, roff2dvi,
  59. roff2html, roff2pdf, roff2ps, roff2text, roff2x, soelim, tbl, tfmtodit,
  60. and troff</seg>
  61. <seg>/usr/lib/groff and /usr/share/doc/groff-&groff-version;,
  62. /usr/share/groff</seg>
  63. </seglistitem>
  64. </segmentedlist>
  65. <variablelist>
  66. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  67. <?dbfo list-presentation="list"?>
  68. <?dbhtml list-presentation="table"?>
  69. <varlistentry id="addftinfo">
  70. <term><command>addftinfo</command></term>
  71. <listitem>
  72. <para>Reads a troff font file and adds some additional font-metric
  73. information that is used by the <command>groff</command> system</para>
  74. <indexterm zone="ch-system-groff addftinfo">
  75. <primary sortas="b-addftinfo">addftinfo</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="afmtodit">
  80. <term><command>afmtodit</command></term>
  81. <listitem>
  82. <para>Creates a font file for use with <command>groff</command> and
  83. <command>grops</command></para>
  84. <indexterm zone="ch-system-groff afmtodit">
  85. <primary sortas="b-afmtodit">afmtodit</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="chem">
  90. <term><command>chem</command></term>
  91. <listitem>
  92. <para>Groff preprocessor for producing chemical structure diagrams</para>
  93. <indexterm zone="ch-system-groff chem">
  94. <primary sortas="b-chem">chem</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="eqn">
  99. <term><command>eqn</command></term>
  100. <listitem>
  101. <para>Compiles descriptions of equations embedded within troff
  102. input files into commands that are understood by
  103. <command>troff</command></para>
  104. <indexterm zone="ch-system-groff eqn">
  105. <primary sortas="b-eqn">eqn</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="eqn2graph">
  110. <term><command>eqn2graph</command></term>
  111. <listitem>
  112. <para>Converts a troff EQN (equation) into a cropped image</para>
  113. <indexterm zone="ch-system-groff eqn2graph">
  114. <primary sortas="b-eqn2graph">eqn2graph</primary>
  115. </indexterm>
  116. </listitem>
  117. </varlistentry>
  118. <varlistentry id="gdiffmk">
  119. <term><command>gdiffmk</command></term>
  120. <listitem>
  121. <para>Marks differences between groff/nroff/troff files</para>
  122. <indexterm zone="ch-system-groff gdiffmk">
  123. <primary sortas="b-gdiffmk">gdiffmk</primary>
  124. </indexterm>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="geqn">
  128. <term><command>geqn</command></term>
  129. <listitem>
  130. <para>A link to <command>eqn</command></para>
  131. <indexterm zone="ch-system-groff geqn">
  132. <primary sortas="b-geqn">geqn</primary>
  133. </indexterm>
  134. </listitem>
  135. </varlistentry>
  136. <varlistentry id="grap2graph">
  137. <term><command>grap2graph</command></term>
  138. <listitem>
  139. <para>Converts a grap diagram into a cropped bitmap image</para>
  140. <indexterm zone="ch-system-groff grap2graph">
  141. <primary sortas="b-grap2graph">grap2graph</primary>
  142. </indexterm>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="grn">
  146. <term><command>grn</command></term>
  147. <listitem>
  148. <para>A <command>groff</command> preprocessor for gremlin files</para>
  149. <indexterm zone="ch-system-groff grn">
  150. <primary sortas="b-grn">grn</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="grodvi">
  155. <term><command>grodvi</command></term>
  156. <listitem>
  157. <para>A driver for <command>groff</command> that produces TeX dvi
  158. format</para>
  159. <indexterm zone="ch-system-groff grodvi">
  160. <primary sortas="b-grodvi">grodvi</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="groff">
  165. <term><command>groff</command></term>
  166. <listitem>
  167. <para>A front-end to the groff document formatting system; normally, it
  168. runs the <command>troff</command> program and a post-processor
  169. appropriate for the selected device</para>
  170. <indexterm zone="ch-system-groff groff">
  171. <primary sortas="b-groff">groff</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="groffer">
  176. <term><command>groffer</command></term>
  177. <listitem>
  178. <para>Displays groff files and man pages on X and tty terminals</para>
  179. <indexterm zone="ch-system-groff groffer">
  180. <primary sortas="b-groffer">groffer</primary>
  181. </indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="grog">
  185. <term><command>grog</command></term>
  186. <listitem>
  187. <para>Reads files and guesses which of the <command>groff</command>
  188. options <option>-e</option>, <option>-man</option>, <option>-me</option>,
  189. <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
  190. <option>-s</option>, and <option>-t</option> are required for printing
  191. files, and reports the <command>groff</command> command including those
  192. options</para>
  193. <indexterm zone="ch-system-groff grog">
  194. <primary sortas="b-grog">grog</primary>
  195. </indexterm>
  196. </listitem>
  197. </varlistentry>
  198. <varlistentry id="grolbp">
  199. <term><command>grolbp</command></term>
  200. <listitem>
  201. <para>Is a <command>groff</command> driver for Canon CAPSL printers
  202. (LBP-4 and LBP-8 series laser printers)</para>
  203. <indexterm zone="ch-system-groff grolbp">
  204. <primary sortas="b-grolbp">grolbp</primary>
  205. </indexterm>
  206. </listitem>
  207. </varlistentry>
  208. <varlistentry id="grolj4">
  209. <term><command>grolj4</command></term>
  210. <listitem>
  211. <para>Is a driver for <command>groff</command> that produces output
  212. in PCL5 format suitable for an HP LaserJet 4 printer</para>
  213. <indexterm zone="ch-system-groff grolj4">
  214. <primary sortas="b-grolj4">grolj4</primary>
  215. </indexterm>
  216. </listitem>
  217. </varlistentry>
  218. <varlistentry id="grops">
  219. <term><command>grops</command></term>
  220. <listitem>
  221. <para>Translates the output of GNU <command>troff</command> to
  222. PostScript</para>
  223. <indexterm zone="ch-system-groff grops">
  224. <primary sortas="b-grops">grops</primary>
  225. </indexterm>
  226. </listitem>
  227. </varlistentry>
  228. <varlistentry id="grotty">
  229. <term><command>grotty</command></term>
  230. <listitem>
  231. <para>Translates the output of GNU <command>troff</command> into
  232. a form suitable for typewriter-like devices</para>
  233. <indexterm zone="ch-system-groff grotty">
  234. <primary sortas="b-grotty">grotty</primary>
  235. </indexterm>
  236. </listitem>
  237. </varlistentry>
  238. <varlistentry id="gtbl">
  239. <term><command>gtbl</command></term>
  240. <listitem>
  241. <para>A link to <command>tbl</command></para>
  242. <indexterm zone="ch-system-groff gtbl">
  243. <primary sortas="b-gtbl">gtbl</primary>
  244. </indexterm>
  245. </listitem>
  246. </varlistentry>
  247. <varlistentry id="hpftodit">
  248. <term><command>hpftodit</command></term>
  249. <listitem>
  250. <para>Creates a font file for use with <command>groff -Tlj4</command>
  251. from an HP-tagged font metric file</para>
  252. <indexterm zone="ch-system-groff hpftodit">
  253. <primary sortas="b-hpftodit">hpftodit</primary>
  254. </indexterm>
  255. </listitem>
  256. </varlistentry>
  257. <varlistentry id="indxbib">
  258. <term><command>indxbib</command></term>
  259. <listitem>
  260. <para>Creates an inverted index for the bibliographic databases with a
  261. specified file for use with <command>refer</command>,
  262. <command>lookbib</command>, and <command>lkbib</command></para>
  263. <indexterm zone="ch-system-groff indxbib">
  264. <primary sortas="b-indxbib">indxbib</primary>
  265. </indexterm>
  266. </listitem>
  267. </varlistentry>
  268. <varlistentry id="lkbib">
  269. <term><command>lkbib</command></term>
  270. <listitem>
  271. <para>Searches bibliographic databases for references that contain
  272. specified keys and reports any references found</para>
  273. <indexterm zone="ch-system-groff lkbib">
  274. <primary sortas="b-lkbib">lkbib</primary>
  275. </indexterm>
  276. </listitem>
  277. </varlistentry>
  278. <varlistentry id="lookbib">
  279. <term><command>lookbib</command></term>
  280. <listitem>
  281. <para>Prints a prompt on the standard error (unless the standard input
  282. is not a terminal), reads a line containing a set of keywords from the
  283. standard input, searches the bibliographic databases in a specified file
  284. for references containing those keywords, prints any references found
  285. on the standard output, and repeats this process until the end of
  286. input</para>
  287. <indexterm zone="ch-system-groff lookbib">
  288. <primary sortas="b-lookbib">lookbib</primary>
  289. </indexterm>
  290. </listitem>
  291. </varlistentry>
  292. <varlistentry id="mmroff">
  293. <term><command>mmroff</command></term>
  294. <listitem>
  295. <para>A simple preprocessor for <command>groff</command></para>
  296. <indexterm zone="ch-system-groff mmroff">
  297. <primary sortas="b-mmroff">mmroff</primary>
  298. </indexterm>
  299. </listitem>
  300. </varlistentry>
  301. <varlistentry id="neqn">
  302. <term><command>neqn</command></term>
  303. <listitem>
  304. <para>Formats equations for American Standard Code for Information
  305. Interchange (ASCII) output</para>
  306. <indexterm zone="ch-system-groff neqn">
  307. <primary sortas="b-neqn">neqn</primary>
  308. </indexterm>
  309. </listitem>
  310. </varlistentry>
  311. <varlistentry id="nroff">
  312. <term><command>nroff</command></term>
  313. <listitem>
  314. <para>A script that emulates the <command>nroff</command> command
  315. using <command>groff</command></para>
  316. <indexterm zone="ch-system-groff nroff">
  317. <primary sortas="b-nroff">nroff</primary>
  318. </indexterm>
  319. </listitem>
  320. </varlistentry>
  321. <varlistentry id="pdfroff">
  322. <term><command>pdfroff</command></term>
  323. <listitem>
  324. <para>Creates pdf documents using groff</para>
  325. <indexterm zone="ch-system-groff pdfroff">
  326. <primary sortas="b-pdfroff">pdfroff</primary>
  327. </indexterm>
  328. </listitem>
  329. </varlistentry>
  330. <varlistentry id="pfbtops">
  331. <term><command>pfbtops</command></term>
  332. <listitem>
  333. <para>Translates a PostScript font in <filename
  334. class="extension">.pfb</filename> format to ASCII</para>
  335. <indexterm zone="ch-system-groff pfbtops">
  336. <primary sortas="b-pfbtops">pfbtops</primary>
  337. </indexterm>
  338. </listitem>
  339. </varlistentry>
  340. <varlistentry id="pic">
  341. <term><command>pic</command></term>
  342. <listitem>
  343. <para>Compiles descriptions of pictures embedded within troff or
  344. TeX input files into commands understood by TeX or
  345. <command>troff</command></para>
  346. <indexterm zone="ch-system-groff pic">
  347. <primary sortas="b-pic">pic</primary>
  348. </indexterm>
  349. </listitem>
  350. </varlistentry>
  351. <varlistentry id="pic2graph">
  352. <term><command>pic2graph</command></term>
  353. <listitem>
  354. <para>Converts a PIC diagram into a cropped image</para>
  355. <indexterm zone="ch-system-groff pic2graph">
  356. <primary sortas="b-pic2graph">pic2graph</primary>
  357. </indexterm>
  358. </listitem>
  359. </varlistentry>
  360. <varlistentry id="post-grohtml">
  361. <term><command>post-grohtml</command></term>
  362. <listitem>
  363. <para>Translates the output of GNU <command>troff</command> to
  364. HTML</para>
  365. <indexterm zone="ch-system-groff post-grohtml">
  366. <primary sortas="b-post-grohtml">post-grohtml</primary>
  367. </indexterm>
  368. </listitem>
  369. </varlistentry>
  370. <varlistentry id="preconv">
  371. <term><command>preconv</command></term>
  372. <listitem>
  373. <para>Converts encoding of input files to something GNU
  374. <command>troff</command> understands</para>
  375. <indexterm zone="ch-system-groff preconv">
  376. <primary sortas="b-preconv">preconv</primary>
  377. </indexterm>
  378. </listitem>
  379. </varlistentry>
  380. <varlistentry id="pre-grohtml">
  381. <term><command>pre-grohtml </command></term>
  382. <listitem>
  383. <para>Translates the output of GNU <command>troff</command> to
  384. HTML</para>
  385. <indexterm zone="ch-system-groff pre-grohtml">
  386. <primary sortas="b-pre-grohtml">pre-grohtml</primary>
  387. </indexterm>
  388. </listitem>
  389. </varlistentry>
  390. <varlistentry id="refer">
  391. <term><command>refer</command></term>
  392. <listitem>
  393. <para>Copies the contents of a file to the standard output, except
  394. that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
  395. are interpreted as citations, and lines between <emphasis>.R1</emphasis>
  396. and <emphasis>.R2</emphasis> are interpreted as commands for how
  397. citations are to be processed</para>
  398. <indexterm zone="ch-system-groff refer">
  399. <primary sortas="b-refer">refer</primary>
  400. </indexterm>
  401. </listitem>
  402. </varlistentry>
  403. <varlistentry id="roff2dvi">
  404. <term><command>roff2dvi</command></term>
  405. <listitem>
  406. <para>Transforms roff files into DVI format</para>
  407. <indexterm zone="ch-system-groff roff2dvi">
  408. <primary sortas="b-roff2dvi">roff2dvi</primary>
  409. </indexterm>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry id="roff2html">
  413. <term><command>roff2html</command></term>
  414. <listitem>
  415. <para>Transforms roff files into HTML format</para>
  416. <indexterm zone="ch-system-groff roff2html">
  417. <primary sortas="b-roff2html">roff2html</primary>
  418. </indexterm>
  419. </listitem>
  420. </varlistentry>
  421. <varlistentry id="roff2pdf">
  422. <term><command>roff2pdf</command></term>
  423. <listitem>
  424. <para>Transforms roff files into PDFs</para>
  425. <indexterm zone="ch-system-groff roff2pdf">
  426. <primary sortas="b-roff2pdf">roff2pdf</primary>
  427. </indexterm>
  428. </listitem>
  429. </varlistentry>
  430. <varlistentry id="roff2ps">
  431. <term><command>roff2ps</command></term>
  432. <listitem>
  433. <para>Transforms roff files into ps files</para>
  434. <indexterm zone="ch-system-groff roff2ps">
  435. <primary sortas="b-roff2ps">roff2ps</primary>
  436. </indexterm>
  437. </listitem>
  438. </varlistentry>
  439. <varlistentry id="roff2text">
  440. <term><command>roff2text</command></term>
  441. <listitem>
  442. <para>Transforms roff files into text files</para>
  443. <indexterm zone="ch-system-groff roff2text">
  444. <primary sortas="b-roff2text">roff2text</primary>
  445. </indexterm>
  446. </listitem>
  447. </varlistentry>
  448. <varlistentry id="roff2x">
  449. <term><command>roff2x</command></term>
  450. <listitem>
  451. <para>Transforms roff files into other formats</para>
  452. <indexterm zone="ch-system-groff roff2x">
  453. <primary sortas="b-roff2x">roff2x</primary>
  454. </indexterm>
  455. </listitem>
  456. </varlistentry>
  457. <varlistentry id="soelim">
  458. <term><command>soelim</command></term>
  459. <listitem>
  460. <para>Reads files and replaces lines of the form <emphasis>.so
  461. file</emphasis> by the contents of the mentioned
  462. <emphasis>file</emphasis></para>
  463. <indexterm zone="ch-system-groff soelim">
  464. <primary sortas="b-soelim">soelim</primary>
  465. </indexterm>
  466. </listitem>
  467. </varlistentry>
  468. <varlistentry id="tbl">
  469. <term><command>tbl</command></term>
  470. <listitem>
  471. <para>Compiles descriptions of tables embedded within troff input
  472. files into commands that are understood by
  473. <command>troff</command></para>
  474. <indexterm zone="ch-system-groff tbl">
  475. <primary sortas="b-tbl">tbl</primary>
  476. </indexterm>
  477. </listitem>
  478. </varlistentry>
  479. <varlistentry id="tfmtodit">
  480. <term><command>tfmtodit</command></term>
  481. <listitem>
  482. <para>Creates a font file for use with <command>groff
  483. -Tdvi</command></para>
  484. <indexterm zone="ch-system-groff tfmtodit">
  485. <primary sortas="b-tfmtodit">tfmtodit</primary>
  486. </indexterm>
  487. </listitem>
  488. </varlistentry>
  489. <varlistentry id="troff">
  490. <term><command>troff</command></term>
  491. <listitem>
  492. <para>Is highly compatible with Unix <command>troff</command>; it
  493. should usually be invoked using the <command>groff</command> command,
  494. which will also run preprocessors and post-processors in the
  495. appropriate order and with the appropriate options</para>
  496. <indexterm zone="ch-system-groff troff">
  497. <primary sortas="b-troff">troff</primary>
  498. </indexterm>
  499. </listitem>
  500. </varlistentry>
  501. </variablelist>
  502. </sect2>
  503. </sect1>