Chapter 20 . Working with (Business web hosting) Words and Images
Chapter 20 . Working with Words and Images 511 3. Send the document to an output device (a printer or a display program). If you are accustomed to a word processor with a GUI, you may find these publishing tools difficult to learn at first. In general, Groff is useful for creating man pages for Linux. LaTeX is useful if you need to produce mathematical documents, perhaps for publication in a technical journal. Text Processing with Groff The nroff and troff text formatting commands were the first interfaces available for producing typeset-quality documents with the UNIX system. They aren t editors, but commands through which you send your text, with the result being formatted pages. nroff produces formatted plain text and includes the capability to do pagination, indents, and text justification, as well as other features. troff produces typeset text, including everything nroff can do, plus the capability to produce different fonts and spacing. The troff command also supports kerning. The groff command is the front end for producing nroff/troff documentation. Because Linux man pages are formatted and output in Groff, most of the examples here help you create and print man pages with Groff. People rarely use primitive nroff/troff markup. Instead, there are common macro packages that simplify creating nroff/troff formatted documents, which include: . man These macros are used to create Linux man pages. You can format a man page using the -man option to the groff command. . mm The mm macros (memorandum macros) were created to produce memos, letters, and technical white papers. This package includes macros for creating tables of contents, lists of figures, references, and other technicaldocument- style features. You can format an mm document using the -mm option to the groff command. . me These macros are popular for producing memos and technical papers on Berkeley UNIX systems. Format an me document using the groff command option -me. Groff macro packages are stored in /usr/share/groff/*/tmac. The man macros are called from the an.tmac file, mm macros are from m.tmac, and me macros are from e.tmac. The naming convention for each macro package is xxx.tmac, where xxx is replaced by one or more letters representing the macro package. In each case, you can understand the name of the macro package by adding an m to the beginning of the file suffix. Tip Instead of noting a specific macro package, you can use -mandoc to choose one.
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.