Prev | Current Page 1062 | Next

Christopher Negus

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


.SM Small text. Used to show words in all caps.
.SH Section head.
.SS Subheading within a .SH heading.
.TH Title heading. Used once at the beginning of the man page.
.TP Begin a hanging tag. Begins text on next line, not same line as tag.
Creating a Letter, Memo, or White Paper with Groff
Memorandum macros (which are used with the -mm option of groff) were once popular among
UNIX users for producing technical documents, letters, and memos. Although more modern word
processors with a variety of WYSIWYG (What You See Is What You Get) templates have made the
mm macros outdated, in a pinch they are still a quick way to create a typeset-style document in a
text environment.
To format and print (to a PostScript printer) a document with mm macros, use the following:
$ groff -mm -Tps -l letter.mm
To convert to a PDF instead of to PostScript, use a command like the following:
$ groff -mm -Tps letter.mm | ps2pdf - letter.pdf
Here??™s a simple example of how to use mm macros to produce a letter:
.WA ???Christopher T. Craft???
999 Anyway Way
Anytown, UT 84111 USA
.WE
.IA
John W. Doe
564
Running Applications Part IV
111 Notown Blvd.
Notown, UT 84111
.IE
.LO RN ???Our telephone conversation???
.LO SA ???Dear Mr. Doe:???
.LT
In reference to our telephone conversation on the 4th, I am
calling to confirm our upcoming appointment on the 18th.


Pages:
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074