home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!news.oc.com!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: man macro manual?
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Sep7.235156.273@news.eng.convex.com>
- Date: Mon, 7 Sep 1992 23:51:56 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <Bu6z2u.3tq@mtholyoke.edu> <1992Sep7.101314.3759@ericsson.se> <1992Sep7.211517.26876@tous.oau.org>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 60
-
- From the keyboard of rbt@tous.oau.org (Robert B. Tate):
- :This is really LESS than usefull! If you already know what man is and how
- :to use it, it will remind you, but what about HOW to USE the macros in
- :the tmac.an? What do they mean? Where to use them? What order to do a
- :proper man page? Not all of use are experts in roff macros!
-
- .TH NAME SECTION
- .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
- .\" other parms are allowed: see man(7)
- .SH NAME
- foo, bar \- programs to do something
- .SH SYNOPSIS
- a short usage summary
- .SH DESCRIPTION
- long drawn out discussion of the program. it's a good idea
- to break this up into subsections using the .SS macros, like
- .SS "Section Selection"
- .SS "Online Problem Reports"
- .SH OPTIONS
- Some people make this separate from the description.
- .SH "RETURN VALUE"
- What the program or function returns if successful.
- .SH ERRORS
- Return codes, either exit status or errno settings.
- .SH EXAMPLES
- give some example uses of the program
- .SH ENVIRONMENT
- envariables this program might care about
- .SH FILES
- all files used by the program. typical usage is like this:
- .br
- .nf
- .\" set tabstop to longest possible filename, plus a bit
- .ta \w'/usr/lib/perl/getopts.pl 'u
- \fI/usr/man\fR default man tree
- \fI/usr/man/man*/*.*\fR unformatted (nroff source) man pages
- .SH "SEE ALSO"
- other man pages to check out, like man(1), man(7), makewhatis(8), catman(8)
- .SH NOTES
- miscellaneous commentary
- .SH CAVEATS
- things to take special care with. sometimes called WARNINGS.
- .SH DIAGNOSTICS
- all the possible error messages the program can print out, and
- what they mean.
- .SH BUGS
- things that are broken
- .SH RESTRICTIONS
- bugs you don't plan to fix :-)
- .SH AUTHOR
- who wrote it (or AUTHORS if multiple)
- .SH HISTORY
- programs derived from other sources sometimes have this.
-
-
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
-
- Every absurdity has a champion who will defend it.
-