OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man7 / mdoc.samples.7
index a424c47..876dc1f 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)mdoc.samples.7     8.2 (Berkeley) 12/30/93
 .\"    $Id: mdoc.samples.7,v 1.17 1998/12/03 03:38:45 jkoshy Exp $
@@ -36,6 +38,8 @@
 .\" times and is guaranteed to give a worst case performance
 .\" for an already extremely slow package.
 .\"
+.\" String \*(Pu was not defined, probably means punctuation
+.ds Pu "[ .,:;()[]?! ]
 .Dd December 30, 1993
 .Os
 .Dt MDOC.SAMPLES 7
@@ -71,7 +75,8 @@ page layout macros
 make up the
 .Em "page structure domain"
 which consists of macros for titles, section headers, displays
-and lists. Essentially items which affect the physical position
+and lists.
+Essentially items which affect the physical position
 of text on a formatted page.
 In addition to the page structure domain, there are two more domains,
 the manual domain and the general text domain.
@@ -433,7 +438,7 @@ are handled by replacing the
 .Ql \e
 with
 .Ql \ee
-(e.g.
+(e.g.,
 .Ql \een )
 to preserve
 the backslash.
@@ -535,10 +540,10 @@ A volume title may be arbitrary or one of the following:
 .\" PS1        UNIX Programmer's Supplementary Documents
 .Pp
 .Bl -column SMM -offset indent -compact
-.It Li AMD     UNIX Ancestral Manual Documents
-.It Li SMM     UNIX System Manager's Manual
-.It Li URM     UNIX Reference Manual
-.It Li PRM     UNIX Programmer's Manual
+.It Li "AMD    UNIX Ancestral Manual Documents"
+.It Li "SMM    UNIX System Manager's Manual"
+.It Li "URM    UNIX Reference Manual"
+.It Li "PRM    UNIX Programmer's Manual"
 .El
 .Pp
 The default volume labeling is
@@ -808,7 +813,7 @@ The address macro identifies an address construct
 of the form addr1[,addr2[,addr3]].
 .Pp
 .Dl Usage: .Ad address ... \*(Pu
-.Bl -tag -width ".Ad f1 , f2 , f3 :" -compact -offset 14n
+.Bl -tag -width "\&.Ad f1 , f2 , f3 :" -compact -offset 14n
 .It Li \&.Ad addr1
 .Ad addr1
 .It Li \&.Ad addr1\ .
@@ -835,7 +840,7 @@ Any remaining arguments after the name information are assumed
 to be punctuation.
 .Pp
 .Dl Usage: .An author_name \*(Pu
-.Bl -tag -width ".An Joe Author ) ) ," -compact -offset 14n
+.Bl -tag -width "\&.An Joe Author ) ) ," -compact -offset 14n
 .It Li \&.An Joe\ Author
 .An Joe Author
 .It Li \&.An Joe\ Author\ ,
@@ -860,7 +865,7 @@ argument macro may be used whenever
 a command-line argument is referenced.
 .Pp
 .Dl Usage: .Ar argument ... \*(Pu
-.Bl -tag -width ".Ar file1 file2" -compact -offset 15n
+.Bl -tag -width "\&.Ar file1 file2" -compact -offset 15n
 .It Li \&.Ar
 .Ar
 .It Li \&.Ar file1
@@ -878,7 +883,7 @@ a command-line argument is referenced.
 If
 .Ql \&.Ar
 is called without arguments
-.Ql Ar
+.Ql \&Ar
 is assumed.
 The
 .Ql \&.Ar
@@ -916,7 +921,7 @@ by the macro
 .Ql \&.Dv .
 .Pp
 .Dl Usage: .Dv defined_variable ... \*(Pu
-.Bl -tag -width ".Dv MAXHOSTNAMELEN" -compact -offset 14n
+.Bl -tag -width "\&.Dv MAXHOSTNAMELEN" -compact -offset 14n
 .It Li ".Dv MAXHOSTNAMELEN"
 .Dv MAXHOSTNAMELEN
 .It Li ".Dv TIOCGPGRP )"
@@ -942,7 +947,7 @@ general text domain macro, as it would be used in
 a section two manual page.
 .Pp
 .Dl Usage: .Er ERRNOTYPE ... \*(Pu
-.Bl -tag -width ".Bq Er ENOTDIR" -compact -offset 14n
+.Bl -tag -width "\&.Bq Er ENOTDIR" -compact -offset 14n
 .It Li \&.Er ENOENT
 .Er ENOENT
 .It Li \&.Er ENOENT\ )\ ;
@@ -963,7 +968,7 @@ The
 macro specifies an environment variable.
 .Pp
 .Dl Usage: .Ev argument ... \*(Pu
-.Bl -tag -width ".Ev PRINTER ) ) ," -compact -offset 14n
+.Bl -tag -width "\&.Ev PRINTER ) ) ," -compact -offset 14n
 .It Li \&.Ev DISPLAY
 .Ev  DISPLAY
 .It Li \&.Ev PATH\ .
@@ -999,7 +1004,7 @@ must be used.
 may also be used to refer to structure members.
 .Pp
 .Dl Usage: .Fa function_argument ... \*(Pu
-.Bl -tag -width ".Fa d_namlen\ )\ )\ ," -compact -offset 14n
+.Bl -tag -width "\&.Fa d_namlen\ )\ )\ ," -compact -offset 14n
 .It Li \&.Fa d_namlen\ )\ )\ ,
 .Fa d_namlen ) ) ,
 .It Li \&.Fa iov_len
@@ -1049,7 +1054,7 @@ are not prepended with a dash, the
 macro is identical, but without the dash.
 .Pp
 .Dl Usage: .Fl argument ... \*(Pu
-.Bl -tag -width ".Fl \-s \-t \-v" -compact -offset 14n
+.Bl -tag -width "\&.Fl \-s \-t \-v" -compact -offset 14n
 .It Li \&.Fl
 .Fl
 .It Li \&.Fl cfv
@@ -1079,7 +1084,7 @@ The .Fn macro is modeled on ANSI C conventions.
 .Bd -literal
 Usage: .Fn [type] function [[type] parameters ... \*(Pu]
 .Ed
-.Bl -tag -width ".Fn _int align_ _const * char *sptrsxx" -compact
+.Bl -tag -width "\&.Fn _int align_ _const * char *sptrsxx" -compact
 .It Li "\&.Fn getchar"
 .Fn getchar
 .It Li "\&.Fn strlen ) ,"
@@ -1190,7 +1195,7 @@ The
 macro designates an interactive or internal command.
 .Pp
 .Dl Usage: .Ic argument ... \*(Pu
-.Bl -tag -width ".Ic setenv , unsetenvxx" -compact -offset 14n
+.Bl -tag -width "\&.Ic setenv , unsetenvxx" -compact -offset 14n
 .It Li \&.Ic :wq
 .Ic :wq
 .It Li \&.Ic do while {...}
@@ -1243,7 +1248,7 @@ to
 it can not recall the first argument it was invoked with.
 .Pp
 .Dl Usage: .Nm argument ... \*(Pu
-.Bl -tag -width ".Nm mdoc.sample" -compact -offset 14n
+.Bl -tag -width "\&.Nm mdoc.sample" -compact -offset 14n
 .It Li \&.Nm mdoc.sample
 .Nm mdoc.sample
 .It Li \&.Nm \e-mdoc
@@ -1271,7 +1276,7 @@ and
 may be used across one or more lines.
 .Pp
 .Dl Usage: .Op options ... \*(Pu
-.Bl -tag -width ".Op Fl c Ar objfil Op Ar corfil ," -compact -offset indent
+.Bl -tag -width "\&.Op Fl c Ar objfil Op Ar corfil ," -compact -offset indent
 .It Li \&.Op
 .Op
 .It Li ".Op Fl k"
@@ -1322,7 +1327,7 @@ The
 macro formats pathnames or filenames.
 .Pp
 .Dl Usage: .Pa pathname \*(Pu
-.Bl -tag -width ".Pa /tmp/fooXXXXX ) ." -compact -offset 14n
+.Bl -tag -width "\&.Pa /tmp/fooXXXXX ) ." -compact -offset 14n
 .It Li \&.Pa /usr/share
 .Pa /usr/share
 .It Li \&.Pa /tmp/fooXXXXX\ )\ .
@@ -1336,7 +1341,7 @@ macro is parsed and is callable.
 Generic variable reference:
 .Pp
 .Dl Usage: .Va variable ... \*(Pu
-.Bl -tag -width ".Va char s ] ) ) ," -compact -offset 14n
+.Bl -tag -width "\&.Va char s ] ) ) ," -compact -offset 14n
 .It Li \&.Va count
 .Va count
 .It Li \&.Va settimer ,
@@ -1363,7 +1368,7 @@ Any
 remaining arguments are assumed to be punctuation.
 .Pp
 .Dl Usage: .Xr man_page [1,...,8] \*(Pu
-.Bl -tag -width ".Xr mdoc 7 ) ) ," -compact -offset 14n
+.Bl -tag -width "\&.Xr mdoc 7 ) ) ," -compact -offset 14n
 .It Li \&.Xr mdoc
 .Xr mdoc
 .It Li \&.Xr mdoc\ ,
@@ -1386,7 +1391,7 @@ any arguments.
 .Bd -literal -offset indent -compact
 Usage: .At [v6 | v7 | 32v | V.1 | V.4] ... \*(Pu
 .Ed
-.Bl -tag -width ".At v6 ) ," -compact -offset 14n
+.Bl -tag -width "\&.At v6 ) ," -compact -offset 14n
 .It Li ".At"
 .At
 .It Li ".At v6 ."
@@ -1403,7 +1408,7 @@ callable
 It accepts at most two arguments.
 .Ss BSD Macro
 .Dl Usage: .Bx [Version/release] ... \*(Pu
-.Bl -tag -width ".Bx 4.3 ) ," -compact -offset 14n
+.Bl -tag -width "\&.Bx 4.3 ) ," -compact -offset 14n
 .It Li ".Bx"
 .Bx
 .It Li ".Bx 4.3 ."
@@ -1417,7 +1422,7 @@ macro is parsed and is callable.
 .Bd -literal -offset indent -compact
 Usage: .Fx Version.release ... \*(Pu
 .Ed
-.Bl -tag -width ".Fx 2.2 ) ," -compact -offset 14n
+.Bl -tag -width "\&.Fx 2.2 ) ," -compact -offset 14n
 .It Li ".Fx 2.2 ."
 .Fx 2.2 .
 .El
@@ -1432,7 +1437,7 @@ callable
 It accepts at most two arguments.
 .Ss UNIX Macro
 .Dl Usage: .Ux ... \*(Pu
-.Bl -tag -width ".Ux 4.3 ) ," -compact -offset 14n
+.Bl -tag -width "\&.Ux 4.3 ) ," -compact -offset 14n
 .It Li ".Ux"
 .Ux
 .El
@@ -1518,7 +1523,7 @@ The
 .Pp
 .ne 4
 Examples of quoting:
-.Bl -tag -width ".Aq Pa ctype.h ) ,xxxxxxxx" -compact -offset indent
+.Bl -tag -width "\&.Aq Pa ctype.h ) ,xxxxxxxx" -compact -offset indent
 .It Li \&.Aq
 .Aq
 .It Li \&.Aq \&Ar ctype.h\ )\ ,
@@ -1576,7 +1581,7 @@ The
 macro eliminates unwanted spaces in between macro requests.
 It is useful for old style argument lists where there is no space
 between the flag and argument:
-.Bl -tag -width ".Op Fl I Ns Ar directoryxx" -offset indent
+.Bl -tag -width "\&.Op Fl I Ns Ar directoryxx" -offset indent
 .It Li ".Op Fl I Ns Ar directory"
 produces
 .Op Fl I Ns Ar directory
@@ -1661,11 +1666,13 @@ section.
 .Ql \&.Rv -std atexit
 will generate the following text:
 .Pp
-.\" fake chapter 3 to avoid error message from Rv
-.ds cH 3
+.\" fake section 3 to avoid error message from Rv
+.\".ds cH 3
+.ds section 3
 .Rv -std atexit
 .\" and back to 7 again
-.ds cH 7
+.\".ds cH 7
+.ds section 7
 .Pp
 The
 .Fl std
@@ -1675,7 +1682,7 @@ The trade name macro is generally a small caps macro for
 all upper case words longer than two characters.
 .Pp
 .Dl Usage: .Tn symbol ... \*(Pu
-.Bl -tag -width ".Tn ASCII" -compact -offset 14n
+.Bl -tag -width "\&.Tn ASCII" -compact -offset 14n
 .It Li \&.Tn DEC
 .Tn DEC
 .It Li \&.Tn ASCII
@@ -1815,7 +1822,7 @@ The
 .Ql \&.Sh
 macro can take up to nine arguments.
 It is parsed and but is not callable.
-.Bl -tag -width ".Sh SYNOPSIS"
+.Bl -tag -width "\&.Sh SYNOPSIS"
 .It \&.Sh NAME
 The
 .Ql \&.Sh NAME
@@ -1868,6 +1875,7 @@ or a
 configuration device usage macro.
 Several other macros may be necessary to produce
 the synopsis line as shown below:
+.El
 .Pp
 .Bd -filled -offset indent
 .Nm cat
@@ -1902,6 +1910,7 @@ See
 .Sx PREDEFINED STRINGS
 for a usable \*(Ba
 character in other situations.
+.Bl -tag
 .It \&.Sh DESCRIPTION
 In most cases the first text in the
 .Sx DESCRIPTION
@@ -2233,6 +2242,7 @@ has the following syntax:
 The display-type must be one of the following four types and
 may have an offset specifier for indentation:
 .Ql \&.Bd .
+.El
 .Pp
 .Bl -tag -width "file file_name  " -compact
 .It Fl ragged
@@ -2291,7 +2301,6 @@ This macro needs
 work and perhaps may never do the right thing by
 .Xr troff .
 .El
-.El
 .It ".Ed"
 End-display.
 .El
@@ -2305,7 +2314,7 @@ macro.
 The usual font for emphasis is italic.
 .Pp
 .Dl Usage: .Em argument ... \*(Pu
-.Bl -tag -width ".Em vide infra ) ) ," -compact -offset 14n
+.Bl -tag -width "\&.Em vide infra ) ) ," -compact -offset 14n
 .It Li ".Em does not"
 .Em does not
 .It Li ".Em exceed 1024 ."
@@ -2328,7 +2337,7 @@ variable constants, anything which should be displayed as it
 would be typed.
 .Pp
 .Dl Usage: .Li argument ... \*(Pu
-.Bl -tag -width ".Li cntrl-D ) ,"  -compact -offset 14n
+.Bl -tag -width "\&.Li cntrl-D ) ,"  -compact -offset 14n
 .It Li \&.Li \een
 .Li \en
 .It Li \&.Li M1 M2 M3\ ;
@@ -2347,10 +2356,9 @@ The symbolic emphasis macro is generally a boldface macro in
 either the symbolic sense or the traditional English usage.
 .Pp
 .Dl Usage: .Sy symbol ... \*(Pu
-.Bl -tag -width ".Sy Important Noticex" -compact -offset 14n
+.Bl -tag -width "\&.Sy Important Noticex" -compact -offset 14n
 .It Li \&.Sy Important Notice
 .Sy Important Notice
-.El
 .Pp
 The
 .Ql \&.Sy
@@ -2358,6 +2366,7 @@ macro is parsed and is callable.
 Arguments to
 .Ql \&.Sy
 may be quoted.
+.El
 .It Li \&.Bf
 Begin font mode.
 The
@@ -2444,6 +2453,7 @@ would look like:
 \&Lastly item three goes here.
 \&.El
 .Ed
+.El
 .Pp
 The results:
 .Pp
@@ -2474,6 +2484,7 @@ Bullet one goes here.
 Bullet two here.
 .El
 .Pp
+.Bl -ohang -compact
 .It Fl tag
 .It Fl diag
 .It Fl hang
@@ -2491,13 +2502,14 @@ from above and not indented or
 .Em tagged .
 This
 list was constructed with the
-.Ql Fl ohang
+.Ql \&Fl ohang
 list-type.
 The
 .Ql \&.It
 macro is parsed only for the inset, hang
 and tag list-types and is not callable.
 Here is an example of inset labels:
+.El
 .Bl -inset -offset indent
 .It Em Tag
 The tagged list (also called a tagged paragraph) is the
@@ -2621,7 +2633,6 @@ string given.
 again, the width is set to the constant width of the string
 given.
 .El
-.El
 .Pp
 If a width is not specified for the tag list type, the first
 time
@@ -2944,10 +2955,10 @@ and certainly should be able to.
 .Xr groff_mdoc 7 ,
 .Xr mdoc 7
 .Sh COLOPHON
-This page is part of release 3.35 of the Linux
+This page is part of release 3.50 of the Linux
 .Em man-pages
 project.
 A description of the project,
 and information about reporting bugs,
 can be found at
-http://man7.org/linux/man-pages/.
+http://www.kernel.org/doc/man-pages/.