aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-18 08:48:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-18 08:48:30 +0000
commit5884f21bb5d782888f0d5979a8a2c7e28c0ee25b (patch)
tree76866423e3cddb6f384c206fde13c17ff193a7f4 /man.7
parent64d0475dc9d0f3783750a27bce64dd1c78e4fa01 (diff)
downloadmandoc-5884f21bb5d782888f0d5979a8a2c7e28c0ee25b.tar.gz
mandoc-5884f21bb5d782888f0d5979a8a2c7e28c0ee25b.tar.zst
mandoc-5884f21bb5d782888f0d5979a8a2c7e28c0ee25b.zip
Small updates to man.7 (next-line break-exclusions, numerical width example).
Fully tested and correct scope-rewinding of block macros.
Diffstat (limited to 'man.7')
-rw-r--r--man.745
1 files changed, 35 insertions, 10 deletions
diff --git a/man.7 b/man.7
index 968f4787..16250bbc 100644
--- a/man.7
+++ b/man.7
@@ -1,4 +1,4 @@
-.\" $Id: man.7,v 1.26 2009/08/17 11:03:07 kristaps Exp $
+.\" $Id: man.7,v 1.27 2009/08/18 08:48:30 kristaps Exp $
.\"
.\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 17 2009 $
+.Dd $Mdocdate: August 18 2009 $
.Dt MAN 7
.Os
.\" SECTION
@@ -238,6 +238,7 @@ invocation.
.Pp
If a block macro is next-line scoped, it may only be followed by in-line
macros (excluding
+.Sq br ,
.Sq na ,
.Sq sp ,
.Sq nf ,
@@ -271,7 +272,15 @@ multiplier
corresponding to the width of the formatted letter n, or
.Qq m ,
corresponding to the width of the formatted letter m. The latter is the
-default, if unspecified.
+default, if unspecified. Thus,
+.Bd -literal -offset indent
+\&.HP 12n
+.Ed
+.Pp
+indicates an offset of 12
+.Qq n
+.Ns -sized
+letters.
.\" SUBSECTION
.Ss Macro Reference
.Bl -tag -width Ds
@@ -294,7 +303,15 @@ Text is rendered alternately in bold face and roman (the default font).
Whitespace between arguments is omitted in output.
.It \&HP
Begin a paragraph whose initial output line is left-justified, but
-subsequent output lines are indented.
+subsequent output lines are indented, with the following syntax:
+.Bd -literal -offset indent
+\&.HP [width]
+.Ed
+.Pp
+If
+.Va width
+is specified, it's saved for later paragraph left-margins; if
+unspecified, the saved or default width is used.
.It \&I
Text is rendered in italics.
.It \&IB
@@ -309,13 +326,17 @@ Begin a paragraph with the following syntax:
This follows the behaviour of the
.Sq \&TP
except for the macro syntax (all arguments on the line, instead of
-having next-line scope).
+having next-line scope). If
+.Va width
+is specified, it's saved for later paragraph left-margins; if
+unspecified, the saved or default width is used.
.It \&IR
Text is rendered alternately in italics and roman (the default font).
Whitespace between arguments is omitted in output.
.It \&LP, \&P, \&PP
Begin an undecorated paragraph. The scope of a paragraph is closed by a
-subsequent paragraph, sub-section, section, or end of file.
+subsequent paragraph, sub-section, section, or end of file. The saved
+paragraph left-margin width is re-set to the default.
.It \&R
Text is rendered in roman (the default font).
.It \&RB
@@ -329,13 +350,15 @@ Text is rendered in small size (one point smaller than the default font)
bold face.
.It \&SH
Begin a section. The scope of a section is only closed by another
-section or the end of file.
+section or the end of file. The paragraph left-margin width is re-set
+to the default.
.It \&SM
Text is rendered in small size (one point smaller than the default
font).
.It \&SS
Begin a sub-section. The scope of a sub-section is closed by a
-subsequent sub-section, section, or end of file.
+subsequent sub-section, section, or end of file. The paragraph
+left-margin width is re-set to the default.
.It \&TH
Sets the title of the manual page with the following syntax:
.Bd -literal -offset indent
@@ -369,8 +392,10 @@ The indentation width may be set as follows:
.Pp
Where
.Va width
-must be a properly-formed numeric width. If unspecified or improperly
-formed, the default indentation width is used.
+must be a properly-formed numeric width. If
+.Va width
+is specified, it's saved for later paragraph left-margins; if
+unspecified, the saved or default width is used.
.It \&br
Breaks the current line. Consecutive invocations have no further effect.
.It \&fi