diff options
Diffstat (limited to 'tmac')
-rw-r--r-- | tmac/doc-common | 13 | ||||
-rw-r--r-- | tmac/groff_mdoc.man | 19 |
2 files changed, 25 insertions, 7 deletions
diff --git a/tmac/doc-common b/tmac/doc-common index 0cc0ea17..438a749d 100644 --- a/tmac/doc-common +++ b/tmac/doc-common @@ -180,7 +180,7 @@ .eo . . -.\" punctuation values (suffix=3, prefix = 4) +.\" punctuation values (suffix=3, prefix=4) . .nr doc-punct. 3 .nr doc-punct, 3 @@ -321,11 +321,12 @@ . as doc-volume " \*[doc-volume-ds-\$2] . \}\}\} . el \{\ -. ie "\$2"unass" .ds doc-volume DRAFT -. el \{ .ie "\$2"draft" .ds doc-volume DRAFT -. el \{ .ie "\$2"paper" .ds doc-volume UNTITLED -. el \ -. tm mdoc warning: .Dt: unknown section `\$2' (#\n[.c]) +. ie "\$2"unass" \ +. ds doc-volume DRAFT +. el \{ .ie "\$2"draft" \ +. ds doc-volume DRAFT +. el .if "\$2"paper" \ +. ds doc-volume UNTITLED . \}\} . if \A\$3 \{\ . if d doc-volume-ds-\$3 \ diff --git a/tmac/groff_mdoc.man b/tmac/groff_mdoc.man index 5033cb57..e39df7a2 100644 --- a/tmac/groff_mdoc.man +++ b/tmac/groff_mdoc.man @@ -46,7 +46,7 @@ .\" for an already extremely slow package. .\" . -.Dd October 07, 2002 +.Dd February 27, 2003 .Os .Dt GROFF_MDOC 7 . @@ -778,14 +778,27 @@ By default, the following architecture keywords are defined: .Ed .Pp . +If the section number is neither a numeric expression in the range 1 to\~9 +nor one of the above described keywords, the third parameter is used +verbatim as the volume name. +.Pp In the following examples, the left (which is identical to the right) and the middle part of the manual page header strings are shown. +Note how +.Ql \e& +prevents the digit\~1 from being a valid numeric expression. . .Bd -ragged .Bl -tag -width ".Li .Dt\ FOO\ 2\ i386" -compact -offset indent .It Li ".Dt FOO 7" .Ql FOO(7) .Ql \*[volume-operating-system] \*[volume-ds-7] +.It Li ".Dt FOO 7 bar" +.Ql FOO(7) +.Ql \*[volume-operating-system] \*[volume-ds-7] +.It Li ".Dt FOO \e&7 bar" +.Ql FOO(7) +.Ql bar .It Li ".Dt FOO 2 i386" .Ql FOO(2) .Ql \*[volume-operating-system]/\*[volume-as-i386] \*[volume-ds-2] @@ -3064,11 +3077,13 @@ display must be ended with the macro. It has the following syntax: .Pp +.Bd -ragged -compact .Bl -tag -width ".Li .Bd" -offset indent .It Li .Bd Xo .Bro \-literal | \-filled | \-unfilled | \-ragged | \-centered Brc .Oo \-offset Ao string Ac Oc Oo \-file Ao file name Ac Oc Oo \-compact Oc Xc .El +.Ed .Pp . .Bl -tag -width ".Fl file Ao Ar file name Ac " -compact @@ -3194,6 +3209,7 @@ Most of this document has been formatted with a tag style list It has the following syntax forms: . .Pp +.Bd -ragged -compact .Bl -tag -width ".Li .Bl" -offset indent -compact .It Li .Bl Xo .Bro \-hang | \-ohang | \-tag | \-diag | \-inset Brc @@ -3206,6 +3222,7 @@ It has the following syntax forms: .Bro \-item | \-enum Oo \-nested Oc | \-bullet | \-hyphen | \-dash Brc .Oo \-offset Ao string Ac Oc Oo \-compact Oc Xc .El +.Ed .Pp . And now a detailed description of the list types. |