groff.xml 20 KB

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