.TH name section "date"
.\"  "name" is the command name
.\"  "section" is one of the characters F, H, L, P, U, or V
.\"  "date" is in the format of 29 February 1988 (quotes required)
.SH NAME
<command name> \- <one line description>
.SH "MODULA-2 SYNOPSIS"
.nh
.na
parameter 1
.br
parameter 2
.br
 . . .
.br
calling example
.br
.hy
.ad
.SH "C SYNOPSIS"
.B <command name>
parameters
.SH DESCRIPTION
.PP                             \" simple paragraphs
text
.SH EXAMPLES
.SH "SIDE EFFECTS"
.SH CAVEATS
.SH "NORMAL MESSAGES"
.SH "ERROR MESSAGES"
.SH "RANGES AND LIMITATIONS"
.SH DIAGNOSTICS
.SH WARNINGS
.SH BUGS
.SH AUTHOR
.SH FILES
.SH "SEE ALSO"
.ig
This text is ignored by nroff, but you could delete to the .. if
you wish. Use the above ordering, selecting those sections which
apply to what you are writing. The arguments marked by <> are to
be filled in for each document, and the .th macro must be the first
line of your document file.

Here is brief synopsis of man page macros:

.SH heading		subject heading, starts paragraph
.PP                     new paragraph, 1 vert sp,
			checks room for 3 more lines on page
.PP                     new paragraph, 1 vert sp in nroff,
			1/2 vert sp in troff
.TP arg1 arg2		labeled paragraph, body of which
			indented arg1 units to right of left
			margin, hanging label is arg2 units to 
			the left of the body.
			  tag <tab> text
				-- or --
			  .bn  tag           for bold face
.bd word		Causes word to be emboldened (underlined)
.I word			Causes word to be italicized (underlined)
.DT                     default tabs

To get your output type: nroff -mank files...
..
