Example

Following is an example of a simple man page. The source code:

	.Dd March 24, 2001
	.Dt SAMPLE_PAGE 1
	.Os Darwin
	.Sh NAME
	.Nm sample_page
	.Nm not_a_real_man_page
	.Nm fake_page
	.Nd sample man page
	.Sh SYNOPSIS
	.Nm
	.Op Fl abc
	.Op Fl a Ar path
	.Ar
	.Sh DESCRIPTION
	.Nm
	is not a very useful man page, except for seing what the source looks like.
	.Sh SEE ALSO
	.Xr man 1 ,
	.Xr mdoc 7 ,
	.Xr mdoc.samples 7

The output as formatted by man:

SAMPLE_PAGE(1)		    System Reference Manual		SAMPLE_PAGE(1)
NAME
            sample_page, not_a_real_man_page, fake_page - sample man page
SYNOPSIS
            sample_page [-abc] [-a path] file ...
DESCRIPTION
            sample_page is not a very useful man page, except for seing what the
     source looks like.
SEE ALSO
     man(1),  mdoc(7),	mdoc.samples(7)

Darwin Operating System		March 24, 2001				     1