groff.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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-fin-sbu;</seg>
  27. <seg>&groff-fin-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>This package does not support parallel build. Compile the package:</para>
  43. <screen><userinput remap="make">make -j1</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, glilypond,
  55. gperl, gpinyin, grap2graph, grn, grodvi, groff, groffer, grog, grolbp,
  56. grolj4, gropdf, grops, grotty, hpftodit, indxbib, lkbib, lookbib,
  57. mmroff, neqn, nroff, pdfmom, pdfroff, pfbtops, pic, pic2graph,
  58. post-grohtml, preconv, pre-grohtml, refer, roff2dvi, roff2html,
  59. roff2pdf, roff2ps, roff2text, roff2x, soelim, tbl, tfmtodit, and
  60. 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="glilypond">
  128. <term><command>glilypond</command></term>
  129. <listitem>
  130. <para>Transforms sheet music written in the lilypond language into
  131. the groff language</para>
  132. <indexterm zone="ch-system-groff glilypond">
  133. <primary sortas="b-glilypond">glilypond</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="gperl">
  138. <term><command>gperl</command></term>
  139. <listitem>
  140. <para>Preprocesor for groff, allowing addition of perl code
  141. into groff files</para>
  142. <indexterm zone="ch-system-groff gperl">
  143. <primary sortas="b-gperl">gperl</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="gpinyin">
  148. <term><command>gpinyin</command></term>
  149. <listitem>
  150. <para>Preprocesor for groff, allowing addition of Chinese
  151. European-like language Pinyin into groff files.</para>
  152. <indexterm zone="ch-system-groff gpinyin">
  153. <primary sortas="b-gpinyin">gpinyin</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="grap2graph">
  158. <term><command>grap2graph</command></term>
  159. <listitem>
  160. <para>Converts a grap diagram into a cropped bitmap image</para>
  161. <indexterm zone="ch-system-groff grap2graph">
  162. <primary sortas="b-grap2graph">grap2graph</primary>
  163. </indexterm>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry id="grn">
  167. <term><command>grn</command></term>
  168. <listitem>
  169. <para>A <command>groff</command> preprocessor for gremlin files</para>
  170. <indexterm zone="ch-system-groff grn">
  171. <primary sortas="b-grn">grn</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <varlistentry id="grodvi">
  176. <term><command>grodvi</command></term>
  177. <listitem>
  178. <para>A driver for <command>groff</command> that produces TeX dvi
  179. format</para>
  180. <indexterm zone="ch-system-groff grodvi">
  181. <primary sortas="b-grodvi">grodvi</primary>
  182. </indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="groff">
  186. <term><command>groff</command></term>
  187. <listitem>
  188. <para>A front-end to the groff document formatting system; normally, it
  189. runs the <command>troff</command> program and a post-processor
  190. appropriate for the selected device</para>
  191. <indexterm zone="ch-system-groff groff">
  192. <primary sortas="b-groff">groff</primary>
  193. </indexterm>
  194. </listitem>
  195. </varlistentry>
  196. <varlistentry id="groffer">
  197. <term><command>groffer</command></term>
  198. <listitem>
  199. <para>Displays groff files and man pages on X and tty terminals</para>
  200. <indexterm zone="ch-system-groff groffer">
  201. <primary sortas="b-groffer">groffer</primary>
  202. </indexterm>
  203. </listitem>
  204. </varlistentry>
  205. <varlistentry id="grog">
  206. <term><command>grog</command></term>
  207. <listitem>
  208. <para>Reads files and guesses which of the <command>groff</command>
  209. options <option>-e</option>, <option>-man</option>, <option>-me</option>,
  210. <option>-mm</option>, <option>-ms</option>, <option>-p</option>,
  211. <option>-s</option>, and <option>-t</option> are required for printing
  212. files, and reports the <command>groff</command> command including those
  213. options</para>
  214. <indexterm zone="ch-system-groff grog">
  215. <primary sortas="b-grog">grog</primary>
  216. </indexterm>
  217. </listitem>
  218. </varlistentry>
  219. <varlistentry id="grolbp">
  220. <term><command>grolbp</command></term>
  221. <listitem>
  222. <para>Is a <command>groff</command> driver for Canon CAPSL printers
  223. (LBP-4 and LBP-8 series laser printers)</para>
  224. <indexterm zone="ch-system-groff grolbp">
  225. <primary sortas="b-grolbp">grolbp</primary>
  226. </indexterm>
  227. </listitem>
  228. </varlistentry>
  229. <varlistentry id="grolj4">
  230. <term><command>grolj4</command></term>
  231. <listitem>
  232. <para>Is a driver for <command>groff</command> that produces output
  233. in PCL5 format suitable for an HP LaserJet 4 printer</para>
  234. <indexterm zone="ch-system-groff grolj4">
  235. <primary sortas="b-grolj4">grolj4</primary>
  236. </indexterm>
  237. </listitem>
  238. </varlistentry>
  239. <varlistentry id="gropdf">
  240. <term><command>gropdf</command></term>
  241. <listitem>
  242. <para>Translates the output of GNU <command>troff</command> to
  243. PDF</para>
  244. <indexterm zone="ch-system-groff gropdf">
  245. <primary sortas="b-gropdf">gropdf</primary>
  246. </indexterm>
  247. </listitem>
  248. </varlistentry>
  249. <varlistentry id="grops">
  250. <term><command>grops</command></term>
  251. <listitem>
  252. <para>Translates the output of GNU <command>troff</command> to
  253. PostScript</para>
  254. <indexterm zone="ch-system-groff grops">
  255. <primary sortas="b-grops">grops</primary>
  256. </indexterm>
  257. </listitem>
  258. </varlistentry>
  259. <varlistentry id="grotty">
  260. <term><command>grotty</command></term>
  261. <listitem>
  262. <para>Translates the output of GNU <command>troff</command> into
  263. a form suitable for typewriter-like devices</para>
  264. <indexterm zone="ch-system-groff grotty">
  265. <primary sortas="b-grotty">grotty</primary>
  266. </indexterm>
  267. </listitem>
  268. </varlistentry>
  269. <varlistentry id="hpftodit">
  270. <term><command>hpftodit</command></term>
  271. <listitem>
  272. <para>Creates a font file for use with <command>groff -Tlj4</command>
  273. from an HP-tagged font metric file</para>
  274. <indexterm zone="ch-system-groff hpftodit">
  275. <primary sortas="b-hpftodit">hpftodit</primary>
  276. </indexterm>
  277. </listitem>
  278. </varlistentry>
  279. <varlistentry id="indxbib">
  280. <term><command>indxbib</command></term>
  281. <listitem>
  282. <para>Creates an inverted index for the bibliographic databases with a
  283. specified file for use with <command>refer</command>,
  284. <command>lookbib</command>, and <command>lkbib</command></para>
  285. <indexterm zone="ch-system-groff indxbib">
  286. <primary sortas="b-indxbib">indxbib</primary>
  287. </indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="lkbib">
  291. <term><command>lkbib</command></term>
  292. <listitem>
  293. <para>Searches bibliographic databases for references that contain
  294. specified keys and reports any references found</para>
  295. <indexterm zone="ch-system-groff lkbib">
  296. <primary sortas="b-lkbib">lkbib</primary>
  297. </indexterm>
  298. </listitem>
  299. </varlistentry>
  300. <varlistentry id="lookbib">
  301. <term><command>lookbib</command></term>
  302. <listitem>
  303. <para>Prints a prompt on the standard error (unless the standard input
  304. is not a terminal), reads a line containing a set of keywords from the
  305. standard input, searches the bibliographic databases in a specified file
  306. for references containing those keywords, prints any references found
  307. on the standard output, and repeats this process until the end of
  308. input</para>
  309. <indexterm zone="ch-system-groff lookbib">
  310. <primary sortas="b-lookbib">lookbib</primary>
  311. </indexterm>
  312. </listitem>
  313. </varlistentry>
  314. <varlistentry id="mmroff">
  315. <term><command>mmroff</command></term>
  316. <listitem>
  317. <para>A simple preprocessor for <command>groff</command></para>
  318. <indexterm zone="ch-system-groff mmroff">
  319. <primary sortas="b-mmroff">mmroff</primary>
  320. </indexterm>
  321. </listitem>
  322. </varlistentry>
  323. <varlistentry id="neqn">
  324. <term><command>neqn</command></term>
  325. <listitem>
  326. <para>Formats equations for American Standard Code for Information
  327. Interchange (ASCII) output</para>
  328. <indexterm zone="ch-system-groff neqn">
  329. <primary sortas="b-neqn">neqn</primary>
  330. </indexterm>
  331. </listitem>
  332. </varlistentry>
  333. <varlistentry id="nroff">
  334. <term><command>nroff</command></term>
  335. <listitem>
  336. <para>A script that emulates the <command>nroff</command> command
  337. using <command>groff</command></para>
  338. <indexterm zone="ch-system-groff nroff">
  339. <primary sortas="b-nroff">nroff</primary>
  340. </indexterm>
  341. </listitem>
  342. </varlistentry>
  343. <varlistentry id="pdfmom">
  344. <term><command>pdfmom</command></term>
  345. <listitem>
  346. <para>Is a wrapper around groff that facilitates the production of PDF
  347. documents from files formatted with the mom macros.</para>
  348. <indexterm zone="ch-system-groff pdfmom">
  349. <primary sortas="b-pdfmom">pdfmom</primary>
  350. </indexterm>
  351. </listitem>
  352. </varlistentry>
  353. <varlistentry id="pdfroff">
  354. <term><command>pdfroff</command></term>
  355. <listitem>
  356. <para>Creates pdf documents using groff</para>
  357. <indexterm zone="ch-system-groff pdfroff">
  358. <primary sortas="b-pdfroff">pdfroff</primary>
  359. </indexterm>
  360. </listitem>
  361. </varlistentry>
  362. <varlistentry id="pfbtops">
  363. <term><command>pfbtops</command></term>
  364. <listitem>
  365. <para>Translates a PostScript font in <filename
  366. class="extension">.pfb</filename> format to ASCII</para>
  367. <indexterm zone="ch-system-groff pfbtops">
  368. <primary sortas="b-pfbtops">pfbtops</primary>
  369. </indexterm>
  370. </listitem>
  371. </varlistentry>
  372. <varlistentry id="pic">
  373. <term><command>pic</command></term>
  374. <listitem>
  375. <para>Compiles descriptions of pictures embedded within troff or
  376. TeX input files into commands understood by TeX or
  377. <command>troff</command></para>
  378. <indexterm zone="ch-system-groff pic">
  379. <primary sortas="b-pic">pic</primary>
  380. </indexterm>
  381. </listitem>
  382. </varlistentry>
  383. <varlistentry id="pic2graph">
  384. <term><command>pic2graph</command></term>
  385. <listitem>
  386. <para>Converts a PIC diagram into a cropped image</para>
  387. <indexterm zone="ch-system-groff pic2graph">
  388. <primary sortas="b-pic2graph">pic2graph</primary>
  389. </indexterm>
  390. </listitem>
  391. </varlistentry>
  392. <varlistentry id="post-grohtml">
  393. <term><command>post-grohtml</command></term>
  394. <listitem>
  395. <para>Translates the output of GNU <command>troff</command> to
  396. HTML</para>
  397. <indexterm zone="ch-system-groff post-grohtml">
  398. <primary sortas="b-post-grohtml">post-grohtml</primary>
  399. </indexterm>
  400. </listitem>
  401. </varlistentry>
  402. <varlistentry id="preconv">
  403. <term><command>preconv</command></term>
  404. <listitem>
  405. <para>Converts encoding of input files to something GNU
  406. <command>troff</command> understands</para>
  407. <indexterm zone="ch-system-groff preconv">
  408. <primary sortas="b-preconv">preconv</primary>
  409. </indexterm>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry id="pre-grohtml">
  413. <term><command>pre-grohtml </command></term>
  414. <listitem>
  415. <para>Translates the output of GNU <command>troff</command> to
  416. HTML</para>
  417. <indexterm zone="ch-system-groff pre-grohtml">
  418. <primary sortas="b-pre-grohtml">pre-grohtml</primary>
  419. </indexterm>
  420. </listitem>
  421. </varlistentry>
  422. <varlistentry id="refer">
  423. <term><command>refer</command></term>
  424. <listitem>
  425. <para>Copies the contents of a file to the standard output, except
  426. that lines between <emphasis>.[</emphasis> and <emphasis>.]</emphasis>
  427. are interpreted as citations, and lines between <emphasis>.R1</emphasis>
  428. and <emphasis>.R2</emphasis> are interpreted as commands for how
  429. citations are to be processed</para>
  430. <indexterm zone="ch-system-groff refer">
  431. <primary sortas="b-refer">refer</primary>
  432. </indexterm>
  433. </listitem>
  434. </varlistentry>
  435. <varlistentry id="roff2dvi">
  436. <term><command>roff2dvi</command></term>
  437. <listitem>
  438. <para>Transforms roff files into DVI format</para>
  439. <indexterm zone="ch-system-groff roff2dvi">
  440. <primary sortas="b-roff2dvi">roff2dvi</primary>
  441. </indexterm>
  442. </listitem>
  443. </varlistentry>
  444. <varlistentry id="roff2html">
  445. <term><command>roff2html</command></term>
  446. <listitem>
  447. <para>Transforms roff files into HTML format</para>
  448. <indexterm zone="ch-system-groff roff2html">
  449. <primary sortas="b-roff2html">roff2html</primary>
  450. </indexterm>
  451. </listitem>
  452. </varlistentry>
  453. <varlistentry id="roff2pdf">
  454. <term><command>roff2pdf</command></term>
  455. <listitem>
  456. <para>Transforms roff files into PDFs</para>
  457. <indexterm zone="ch-system-groff roff2pdf">
  458. <primary sortas="b-roff2pdf">roff2pdf</primary>
  459. </indexterm>
  460. </listitem>
  461. </varlistentry>
  462. <varlistentry id="roff2ps">
  463. <term><command>roff2ps</command></term>
  464. <listitem>
  465. <para>Transforms roff files into ps files</para>
  466. <indexterm zone="ch-system-groff roff2ps">
  467. <primary sortas="b-roff2ps">roff2ps</primary>
  468. </indexterm>
  469. </listitem>
  470. </varlistentry>
  471. <varlistentry id="roff2text">
  472. <term><command>roff2text</command></term>
  473. <listitem>
  474. <para>Transforms roff files into text files</para>
  475. <indexterm zone="ch-system-groff roff2text">
  476. <primary sortas="b-roff2text">roff2text</primary>
  477. </indexterm>
  478. </listitem>
  479. </varlistentry>
  480. <varlistentry id="roff2x">
  481. <term><command>roff2x</command></term>
  482. <listitem>
  483. <para>Transforms roff files into other formats</para>
  484. <indexterm zone="ch-system-groff roff2x">
  485. <primary sortas="b-roff2x">roff2x</primary>
  486. </indexterm>
  487. </listitem>
  488. </varlistentry>
  489. <varlistentry id="soelim">
  490. <term><command>soelim</command></term>
  491. <listitem>
  492. <para>Reads files and replaces lines of the form <emphasis>.so
  493. file</emphasis> by the contents of the mentioned
  494. <emphasis>file</emphasis></para>
  495. <indexterm zone="ch-system-groff soelim">
  496. <primary sortas="b-soelim">soelim</primary>
  497. </indexterm>
  498. </listitem>
  499. </varlistentry>
  500. <varlistentry id="tbl">
  501. <term><command>tbl</command></term>
  502. <listitem>
  503. <para>Compiles descriptions of tables embedded within troff input
  504. files into commands that are understood by
  505. <command>troff</command></para>
  506. <indexterm zone="ch-system-groff tbl">
  507. <primary sortas="b-tbl">tbl</primary>
  508. </indexterm>
  509. </listitem>
  510. </varlistentry>
  511. <varlistentry id="tfmtodit">
  512. <term><command>tfmtodit</command></term>
  513. <listitem>
  514. <para>Creates a font file for use with <command>groff
  515. -Tdvi</command></para>
  516. <indexterm zone="ch-system-groff tfmtodit">
  517. <primary sortas="b-tfmtodit">tfmtodit</primary>
  518. </indexterm>
  519. </listitem>
  520. </varlistentry>
  521. <varlistentry id="troff">
  522. <term><command>troff</command></term>
  523. <listitem>
  524. <para>Is highly compatible with Unix <command>troff</command>; it
  525. should usually be invoked using the <command>groff</command> command,
  526. which will also run preprocessors and post-processors in the
  527. appropriate order and with the appropriate options</para>
  528. <indexterm zone="ch-system-groff troff">
  529. <primary sortas="b-troff">troff</primary>
  530. </indexterm>
  531. </listitem>
  532. </varlistentry>
  533. </variablelist>
  534. </sect2>
  535. </sect1>