xref: /freebsd/share/examples/mdoc/example.1 (revision 81fba91b52ba48715f76b37439681f7f66001a9e)
19a78dbdeSMike Pritchard.\" Copyright (c) [year]
29a78dbdeSMike Pritchard.\"	[you name here].  All rights reserved.
39a78dbdeSMike Pritchard.\"
49a78dbdeSMike Pritchard.\" Redistribution and use in source and binary forms, with or without
59a78dbdeSMike Pritchard.\" modification, are permitted provided that the following conditions
69a78dbdeSMike Pritchard.\" are met:
79a78dbdeSMike Pritchard.\" 1. Redistributions of source code must retain the above copyright
89a78dbdeSMike Pritchard.\"    notice, this list of conditions and the following disclaimer.
99a78dbdeSMike Pritchard.\" 2. Redistributions in binary form must reproduce the above copyright
109a78dbdeSMike Pritchard.\"    notice, this list of conditions and the following disclaimer in the
119a78dbdeSMike Pritchard.\"    documentation and/or other materials provided with the distribution.
129a78dbdeSMike Pritchard.\" 3. All advertising materials mentioning features or use of this software
139a78dbdeSMike Pritchard.\"    must display the following acknowledgement:
149a78dbdeSMike Pritchard.\"	This product includes software developed by [you name]
159a78dbdeSMike Pritchard.\"	and its contributors.
169a78dbdeSMike Pritchard.\" 4. Neither the name of the University nor the names of its contributors
179a78dbdeSMike Pritchard.\"    may be used to endorse or promote products derived from this software
189a78dbdeSMike Pritchard.\"    without specific prior written permission.
199a78dbdeSMike Pritchard.\"
209a78dbdeSMike Pritchard.\" THIS SOFTWARE IS PROVIDED BY [you name] AND CONTRIBUTORS ``AS IS'' AND
219a78dbdeSMike Pritchard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
229a78dbdeSMike Pritchard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
239a78dbdeSMike Pritchard.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
249a78dbdeSMike Pritchard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
259a78dbdeSMike Pritchard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
269a78dbdeSMike Pritchard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
279a78dbdeSMike Pritchard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
289a78dbdeSMike Pritchard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
299a78dbdeSMike Pritchard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
309a78dbdeSMike Pritchard.\" SUCH DAMAGE.
319a78dbdeSMike Pritchard.\"
329a78dbdeSMike Pritchard.\"
3381fba91bSMike Pritchard.\" Note: The date here should be updated whenever a non-trivial
3481fba91bSMike Pritchard.\" change is made to the manual page.
3581fba91bSMike Pritchard.Dd January 8, 1997
369a78dbdeSMike Pritchard.Dt EXAMPLE 1
379a78dbdeSMike Pritchard.\" Note: Only specify the operating system when the command
389a78dbdeSMike Pritchard.\" is FreeBSD specific, otherwise use the .Os macro with no
399a78dbdeSMike Pritchard.\" arguments.
409a78dbdeSMike Pritchard.Os FreeBSD 3.0
419a78dbdeSMike Pritchard.Sh NAME
429a78dbdeSMike Pritchard.Nm example
439a78dbdeSMike Pritchard.Nd example command manual page
449a78dbdeSMike Pritchard.Sh SYNOPSIS
459a78dbdeSMike Pritchard.Nm example
469a78dbdeSMike Pritchard.Op Fl abc
479a78dbdeSMike Pritchard.Op Fl d Ar argument
489a78dbdeSMike Pritchard.Ar file
499a78dbdeSMike Pritchard.Sh DESCRIPTION
509a78dbdeSMike PritchardThis is an example manual page for
519a78dbdeSMike Pritchardthe
529a78dbdeSMike Pritchard.Nm
539a78dbdeSMike Pritchardcommand.  It is intended
549a78dbdeSMike Pritchardthat this example can be used as a template when writing
559a78dbdeSMike Pritcharda new manual page.
569a78dbdeSMike Pritchard.Pp
579a78dbdeSMike PritchardThe options are as follows:
589a78dbdeSMike Pritchardhas several options:
599a78dbdeSMike Pritchard.Bl -tag -width Fl
609a78dbdeSMike Pritchard.It Fl a
619a78dbdeSMike PritchardExample optional
629a78dbdeSMike Pritchard.Fl a
639a78dbdeSMike Pritchardoption.
649a78dbdeSMike Pritchard.It Fl b
659a78dbdeSMike PritchardExample optional
669a78dbdeSMike Pritchard.Fl b
679a78dbdeSMike Pritchardoption.
689a78dbdeSMike Pritchard.It Fl c
699a78dbdeSMike PritchardExample optional
709a78dbdeSMike Pritchard.Fl c
719a78dbdeSMike Pritchardoption.
729a78dbdeSMike Pritchard.It Fl d Ar argument
739a78dbdeSMike PritchardExample optional
749a78dbdeSMike Pritchard.Fl d
759a78dbdeSMike Pritchardoption with required argument
769a78dbdeSMike Pritchard.Ar argument .
779a78dbdeSMike Pritchard.It Ar file
789a78dbdeSMike PritchardRequired argument
799a78dbdeSMike Pritchard.Ar file .
809a78dbdeSMike Pritchard.El
819a78dbdeSMike Pritchard.Sh ENVIRONMENT
829a78dbdeSMike PritchardThe
839a78dbdeSMike Pritchard.Nm
849a78dbdeSMike Pritchardcommand ignores the
859a78dbdeSMike Pritchard.Ev EXAMPLE
869a78dbdeSMike Pritchardenvironment variable.
879a78dbdeSMike Pritchard.Sh FILES
889a78dbdeSMike Pritchard.Bl -tag -width /dev/null -compact
899a78dbdeSMike Pritchard.It Pa /dev/null
909a78dbdeSMike PritchardExample of a file in the
919a78dbdeSMike Pritchard.Sx FILES
929a78dbdeSMike Pritchardsection.
939a78dbdeSMike Pritchard.El
9481fba91bSMike Pritchard.Sh EXAMPLES
9581fba91bSMike PritchardThe following is an example of a typical usage
9681fba91bSMike Pritchardof the
9781fba91bSMike Pritchard.Nm
9881fba91bSMike Pritchardcommand:
9981fba91bSMike Pritchard.Pp
10081fba91bSMike Pritchard.Dl % example -abc -d xyzzy /dev/null
1019a78dbdeSMike Pritchard.Sh SEE ALSO
1029a78dbdeSMike Pritchard.Xr example 3 ,
1039a78dbdeSMike Pritchard.Xr example 4 ,
1049a78dbdeSMike Pritchard.Xr mdoc 7 ,
1059a78dbdeSMike Pritchard.Xr mdoc.samples 7
10681fba91bSMike Pritchard.Rs
10781fba91bSMike Pritchard.%A A. B. Author
10881fba91bSMike Pritchard.%T Example RFC Title
10981fba91bSMike Pritchard.%O RFC0000
11081fba91bSMike Pritchard.Re
11181fba91bSMike Pritchard.Rs
11281fba91bSMike Pritchard.%A A. B. Author
11381fba91bSMike Pritchard.%B Example Book Title
11481fba91bSMike Pritchard.%O ISBN-0-000-00000-0
11581fba91bSMike Pritchard.Re
11681fba91bSMike Pritchard.Rs
11781fba91bSMike Pritchard.%A A. B. Author
11881fba91bSMike Pritchard.%D January 1997
11981fba91bSMike Pritchard.%J Example Journal Name
12081fba91bSMike Pritchard.%T Example Article Title
12181fba91bSMike Pritchard.Re
1229a78dbdeSMike Pritchard.Sh STANDARDS
1239a78dbdeSMike PritchardIf the command conforms to some standard, such as
1249a78dbdeSMike Pritchard.St -p1003.2
1259a78dbdeSMike Pritchardor
1269a78dbdeSMike Pritchard.St -ansiC ,
1279a78dbdeSMike Pritchardit should be noted here.
1289a78dbdeSMike Pritchard.Sh DIAGNOSTICS
12981fba91bSMike PritchardExist status is 0 on success, and 1 if the command
13081fba91bSMike Pritchardfails for one of the following reasons
13181fba91bSMike Pritchard.Bl -diag
13281fba91bSMike Pritchard.It example error message
13381fba91bSMike PritchardAn example of an error message.
13481fba91bSMike Pritchard.It another example error message.
13581fba91bSMike PritchardSelf explanatory.
13681fba91bSMike Pritchard.El
1379a78dbdeSMike Pritchard.Sh HISTORY
1389a78dbdeSMike PritchardThe
1399a78dbdeSMike Pritchard.Nm
1409a78dbdeSMike Pritchardmanual page example first appeared in
1419a78dbdeSMike Pritchard.Fx 3.0 .
14281fba91bSMike Pritchard.Pp
14381fba91bSMike PritchardSome other common
14481fba91bSMike Pritchard.Sx HISTORY
14581fba91bSMike Pritchardsection examples are:
14681fba91bSMike Pritchard.Pp
14781fba91bSMike PritchardThe
14881fba91bSMike Pritchard.Nm
14981fba91bSMike Pritchardmanual page example first appeared in
15081fba91bSMike Pritchard.Bx 4.4 .
15181fba91bSMike Pritchard.Pp
15281fba91bSMike PritchardThe
15381fba91bSMike Pritchard.Nm
15481fba91bSMike Pritchardmanual page example first appeared in
15581fba91bSMike Pritchard.At v6 .
1569a78dbdeSMike Pritchard.Sh AUTHOR
1579a78dbdeSMike PritchardThis
1589a78dbdeSMike Pritchardmanual page was written by Mike Pritchard
1599a78dbdeSMike Pritchard.Aq mpp@FreeBSD.ORG .
1609a78dbdeSMike Pritchard.Sh BUGS
1619a78dbdeSMike PritchardThe actual code for this command is vaporware.
162