Prev | Current Page 1058 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

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. You 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 represents the macro package. In each case,
you can deduce the name of the macro package by adding an m to the beginning of the file prefix.
Instead of noting a specific macro package, you can use -mandoc to choose one.
When you run the groff formatting command, you can indicate on the command line which
macro packages you are using. You can also indicate that the document should be run through
any of the following commands that preprocess text for special formats:
 eqn??”Formats macros that produce equations in Groff.
 pic??”Formats macros that create simple line drawings in Groff.
 tbl??”Formats macros that produce tables within Groff.
The formatted Groff document is output for a particular device type. The device can be a printer, a
window, or (for plain text) your shell. Here are the output forms Groff supports:
 ps??”PostScript output for a PostScript printer or a PostScript previewer
TIP
560
Running Applications Part IV
 lj4??”Output for an HP LaserJet4 printer or other PCL5-compatible printer
 ascii??”Plain-text output that can be viewed from a Terminal window
 dvi??”Output in TeX dvi, to output to a variety of devices described later
 X75??”Output for an X11 75 dots/inch previewer
 X100??”Output for an X11 100 dots/inch previewer
 latin1??”Typewriter-like output using the ISO Latin-1 character set
Formatting and Printing Documents with Groff
Try formatting and printing an existing Groff document using any man pages on your system.


Pages:
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070