=================================================================== RCS file: /cvs/mandoc/Attic/manuals.7,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- mandoc/Attic/manuals.7 2009/03/22 14:28:08 1.3 +++ mandoc/Attic/manuals.7 2009/03/22 14:35:16 1.4 @@ -28,15 +28,16 @@ format or directory structure or device driver, it nee .Sh CLASSIFICATION Classify your system component. In .Ux , -each component has a -.Dq manual section , -which categorises the component's function. The section of a manual is -usually listed in parenthesis next to the component name, such as +each component has a manual section , which categorises the component's +function. The section of a manual is usually listed in parenthesis next +to the component name, such as .Xr ps 1 , section 1. You can query a manual explicitly by its section: +.Bd -literal -offset XXXX +% man \-s 1 ps +% apropos ps +.Ed .Pp -.Dl % man \-s 1 ps -.Pp The following table lists classifications and the applicable manual sections: .Pp @@ -90,7 +91,12 @@ symbolic link handling .El .\" SECTION .Sh COMPOSITION -Prepare your composition environment. +Prepare your composition environment by copying over the manual template +from +.Pa /usr/share/misc/mdoc.template . +.Em \&Do not +start afresh or by copying another manual unless you know exactly what +you're doing! .\" SUBSECTION .Ss Naming Your component will need a name by which to query its contents via @@ -139,9 +145,9 @@ formal language reference macro reference .El .Pp -Don't merely copy existing manuals! Most systems distribute an mdoc -template to help you get started in -.Pa /usr/share/misc/mdoc.template . +Open the template you've copied into +.Pa name.section +and begin editing. .\" SUBSECTION .Ss Development Tools While writing, make sure that your manual is correctly structured: @@ -161,7 +167,6 @@ to version-control your work. If you wish the last ch your document's date, use the following RCS tag for the date macro: .Pp .Dl \&.Dd $Mdocdate: March 22 2009 $ -.Pp .\" SUBSECTION .Ss Viewing mdoc documents may be paged to your terminal with traditional @@ -208,7 +213,7 @@ The .Xr mdoc 7 and .Xr mdoc.samples 7 -files will be indispensable in guiding composition. In this section, we +files are indispensable in guiding composition. In this section, we introduce some .Ux manual best practices: @@ -260,4 +265,4 @@ lists), assume that your output device is a fixed-widt .Pp You may assume that the width calculated by the string literal .Qq Fl o Ar outfile -will +will be covered by the \-width argument.