[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/08: [ms]: Fix documentation content and style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/08: [ms]: Fix documentation content and style nits. |
Date: |
Wed, 24 Mar 2021 02:53:19 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 50328c288e5c1539d06c3bf33a4f49f0e0de3d00
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Mar 21 13:05:22 2021 +1100
[ms]: Fix documentation content and style nits.
* doc/groff.texi (ms Document Structure): Fix erroneous claim that only
one string is used for document formatting (there are three).
(ms Document Control Settings, Headings in ms): Say "scaling
indicator" instead of "scaling factor".
(Headings in ms): Note that headings can be used to organize a
document sequentially, not just hierarchically (which is implicitly
more elaborate). Fix spurious comma.
(Highlighting in ms): Fix sentence fragment in comment.
(Lists in ms): Downcase sentence fragments ending in colons.
* doc/ms.ms: Stop referring to macro package names with a leading hyphen
except where they appear literally in a citation of a work title.
Update table format. Use GNU tbl syntax for setting the font name in
column descriptors. Use GNU tbl "x" modifier in a table column to be
expanded instead of using the "expand" option. Use "l" column format
instead of "a" (no application of tables in this document requires the
behavior of "a" format). Set code example tables more consistently;
center them instead of expanding them, and name the example input
column heading "Input" instead of "Code" (or having no column headings
at all).
(Headings): Fix spurious comma. Say "scaling indicator" instead of
"scaling factor".
(Highlighting): Fix sentence fragment in comment.
(Lists): Remove leading dot from macro name identified as such.
* tmac/groff_ms.7.man (Footnotes): Remove .ne request. Call more
idiomatic (within page) PP macro instead of LP.
---
doc/groff.texi | 40 ++++++++++----------
doc/ms.ms | 107 +++++++++++++++++++++++++++-------------------------
tmac/groff_ms.7.man | 7 ++--
3 files changed, 79 insertions(+), 75 deletions(-)
diff --git a/doc/groff.texi b/doc/groff.texi
index cba28c4..2a16789 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -2560,9 +2560,9 @@ text immediately following. Some document types found in
other
and are not supported in @code{groff} @file{ms}.
@item Format and layout
-By setting registers (and one string), you can change your document's
-type (font and point size), margins, spacing, headers and footers, and
-footnotes. @xref{ms Document Control Settings}.
+By setting registers and strings, you can change your document's type
+(font and point size), margins, spacing, headers and footers, and
+footnote arrangment. @xref{ms Document Control Settings}.
@item Document description
A document description consists of any of: a title, one or more authors'
@@ -2761,9 +2761,9 @@ Default: 1.
Defines an increment in point size to be applied to headings at nesting
levels more significant (numerically less) than the value specified in
@code{GROWPS}. The value of @code{PSINCR} should be specified in points
-with the @dmn{p} scaling factor and may include a fractional component;
-for example, @w{@samp{.nr PSINCR 1.5p}} sets a point size increment of
-1.5@dmn{p}. This is a GNU extension.
+with the @dmn{p} scaling indicator and may include a fractional
+component; for example, @w{@samp{.nr PSINCR 1.5p}} sets a point size
+increment of 1.5@dmn{p}. This is a GNU extension.
Effective: next heading.
@@ -2916,7 +2916,7 @@ revision, explicitly identified authors, sponsoring
institutions for
authors, and, at the rarefied heights, an abstract of their content.
Define these data by using the macros below in the order shown;
@code{DA} or @code{ND} can be called to set the document date (or other
-identifier) at any time before (a) the abstract, if present; or (b) the
+identifier) at any time before (a) the abstract, if present, or (b) the
end of the first page. Use of these macros is optional, except that
@code{TL} is mandatory if any other document description macro is
called,@footnote{Strictly, a @code{TL} call is not mandated by @code{DA}
@@ -2928,7 +2928,7 @@ Footers}).} and @code{AE} is mandatory if @code{AB} is
called.
Use the ``report'' (@acronym{AT&T}: ``released paper'') format for your
document, creating a separate cover page. The default arrangement is to
print most of the document description (title, author names and
-institutions, abstract, but not the date) at the top of page@tie{}1.
+institutions, and abstract, but not the date) at the top of page@tie{}1.
If the optional @code{no} argument is given, @file{ms} prints a cover
page but does not repeat any of its information on page@tie{}1 (see the
@@ -3126,12 +3126,12 @@ printing of orphaned lines at the bottom of any page.
@subsubsection Headings
@cindex @code{ms} macros, headings
-Use headings to create a hierarchical structure for your document. The
-@file{ms} macros print headings in @strong{bold} using the same font
-family and, by default, point size as the body text. Numbered and
-unnumbered headings are available. Text lines after heading macros are
-treated as part of the heading, rendered on the same output line in the
-same style.
+Use headings to create a sequential or hierarchical structure for your
+document. The @file{ms} macros print headings in @strong{bold} using
+the same font family and, by default, point size as the body text.
+Numbered and unnumbered headings are available. Text lines after
+heading macros are treated as part of the heading, rendered on the same
+output line in the same style.
@DefmacList {NH, @Var{level}, ms}
@DefmacListEnd {NH, @t{S} @Var{heading-level-index} @dots{}, ms}
@@ -3203,7 +3203,7 @@ define the alias as follows.
@noindent
Any such change in numbering style becomes effective from the next use
-of @code{NH}, following redefinition of the alias for @code{SN-STYLE}.
+of @code{NH} following redefinition of the alias for @code{SN-STYLE}.
@endDefstr
@Defmac {SH, [@Var{match-level}], ms}
@@ -3222,7 +3222,7 @@ If the @code{GROWPS} register is set to a value greater
than the
a heading produced by these macros increases by @code{PSINCR} units over
the size specified by @code{PS} multiplied by the difference between
@var{level} and @code{GROWPS}. The value stored in @code{PSINCR} is
-interpreted in @code{groff} basic units; the @code{p} scaling factor
+interpreted in @code{groff} basic units; the @code{p} scaling indicator
should be employed when assigning a value specified in points. For
example, the sequence
@@ -3304,7 +3304,7 @@ the @code{B}@tie{}macro otherwise.
Sets its first argument in a @code{constant-width} (monospaced)
roman typeface. It operates similarly to the @code{B}@tie{}macro
otherwise. This is a Version@tie{}10 Research Unix extension.
-@c Possibly V9, but definitely not Berkeley.
+@c possibly V9, but definitely not Berkeley
In @code{groff} @file{ms} you might prefer to change the font family to
Courier, which is monospaced, by setting the @code{FAM} string to
@@ -3390,7 +3390,7 @@ guns
money
@endCartoucheExample
-Produces:
+produces:
@Example
A bulleted list:
@@ -3417,7 +3417,7 @@ guns
money
@endCartoucheExample
-Produces:
+produces:
@Example
A numbered list:
@@ -3447,7 +3447,7 @@ Gotta pay for those
lawyers and guns!
@endCartoucheExample
-Produces:
+produces:
@Example
A glossary-style list:
diff --git a/doc/ms.ms b/doc/ms.ms
index d05aa97..7c5972a 100644
--- a/doc/ms.ms
+++ b/doc/ms.ms
@@ -160,7 +160,7 @@ The following table summarizes typical units.
.TS
box center;
cb cb
-cfCR l .
+cf(CR) l .
Unit Description
_
i inches
@@ -184,7 +184,7 @@ request.
.
.TS
box center;
-lfCR.
+lf(CR).
\&.nr PS 12 \[rs]" Use 12-point type.
\&.ds FAM P \[rs]" Use Palatino font family.
.TE
@@ -194,21 +194,23 @@ lfCR.
.if t .bp
.NH 1
General structure of an
-.I -ms
+.I ms
document
.XS
General structure of an
-.I -ms
+.I ms
document
.XE
.LP
The
-.I -ms
+.I ms
macro package expects a certain amount of structure,
but not as much as packages such as
-.I -man
+.I man
or
-.I -mdoc .
+.I mdoc .
+.
+.
.PP
The simplest documents can begin with a paragraph macro
(such as
@@ -262,7 +264,7 @@ The main matter of your document follows its description
(if any).
.
You can use the
-.I -ms
+.I ms
macros to write reports, letters, books, and so forth.
The package is designed for structured documents,
consisting of paragraphs interspersed with headings
@@ -278,7 +280,7 @@ which you can invoke by placing the
macro at the end of your document.\**
.FS
The
-.I -ms
+.I ms
macros have minimal indexing facilities, consisting of the
.CW .IX
macro, which prints an entry on standard error.
@@ -292,7 +294,7 @@ it thus cannot determine the page number of a division of
the text until
it has been set and output.
.
Since
-.I -ms
+.I ms
output was intended for hardcopy,
the standard procedure was to manually relocate the pages containing
the table of contents between the cover page and the
@@ -324,9 +326,9 @@ They are presented in the syntax used to interpolate them.
.
.
.TS H
-box expand;
+box;
cb | cb cb cb cb
-l | afCR l l lfCR .
+l | lf(CR) lx l lf(CR).
Type Parameter Definition Effective Default
_
.TH
@@ -400,7 +402,7 @@ or
can be called to set the document date
(or other identifier)
at any time before (a) the abstract,
-if present;
+if present,
or (b) the end of the first page.
.
Use of these macros is optional,
@@ -444,7 +446,7 @@ creating a separate cover page.
The default arrangement is to print most of the document description
(title,
author names and institutions,
-abstract,
+and abstract,
but not the date)
at the top of page\~1.
.
@@ -729,7 +731,7 @@ rendered on the same output line in the same style.
.TS
box;
cb cb
-afCR lx .
+lf(CR) lx .
Macro Description
_
\&.NH \f[I]level\f[] T{
@@ -786,7 +788,7 @@ An example may be illustrative.
.TS
box center;
cb | cb
-lfCR | lB.
+lf(CR) | lB.
Code Output
_
T{
@@ -851,7 +853,7 @@ you may define the alias as follows.
.
.TS
box center;
-lfCR.
+lf(CR).
\&.als SN\-STYLE SN\-NO\-DOT
.TE
.
@@ -859,7 +861,7 @@ lfCR.
.LP
Any such change in numbering style becomes effective from the next use
of
-.CW .NH ,
+.CW .NH
following redefinition of the alias for
.CW \[rs]*[SN\-STYLE] .
.
@@ -867,7 +869,7 @@ following redefinition of the alias for
.TS
box;
cb cb
-afCR lx .
+lf(CR) lx .
Macro Description
_
\&.SH [\f[I]level\f[]] T{
@@ -904,13 +906,13 @@ The value of
.CW \[rs]n[PSINCR]
should be specified in points with the
.CW p
-scaling factor and may include a fractional component;
+scaling indicator and may include a fractional component;
for example,
.
.
.TS
box center;
-lfCR.
+lf(CR).
\&.nr PSINCR 1.5p
.TE
.
@@ -969,7 +971,7 @@ the sequence
.
.TS
box center;
-lfCR.
+lf(CR).
\&.nr PS 10
\&.nr GROWPS 3
\&.nr PSINCR 1.5p
@@ -1120,7 +1122,7 @@ It operates similarly to the
macro otherwise.
.
This is a Version\~10 Research Unix extension.
-.\" Possibly V9, but definitely not Berkeley.
+.\" possibly V9, but definitely not Berkeley
.
.
.sp \n[PD]u
@@ -1242,10 +1244,10 @@ list items in the document until specified again.
The following are examples of each type of list.
.
.TS H
-box expand;
+box center;
cb cb
-afCR a .
-Source Result
+lf(CR) l .
+Input Result
_
.TH
T{
@@ -1322,7 +1324,7 @@ The second example sets up an auto-incrementing register,
.
In the last example,
observe how the
-.CW .IP
+.CW IP
macro places the definition on the same line as the term if it has
enough space.
.
@@ -1331,10 +1333,10 @@ there are a couple of workarounds.
.
.
.TS
-box expand;
+box center;
cb cb
-afCR l .
-Code Result
+lf(CR) l .
+Input Result
_
T{
.nf
@@ -1414,7 +1416,7 @@ filling.
.TS
box;
cb cb
-lfCR lx .
+lf(CR) lx .
Macro Description
_
\&.RS T{
@@ -1439,9 +1441,12 @@ regions to line up text under hanging and indented
paragraphs.
For example,
you may wish to nest lists.
.
+.
.TS
box center;
-l l .
+cb cb
+lf(CR) l .
+Input Result
T{
.nf
.CW
@@ -1506,7 +1511,7 @@ The following table shows the display types available.
box;
cb s | cb
cb cb | ^
-lfCR lfCR | lx .
+lf(CR) lf(CR) | lx .
Display macro Description
With keep No keep
_
@@ -1553,7 +1558,7 @@ For example, you may want to keep two paragraphs
together, or
a paragraph that refers to a table (or list, or other item)
immediately following.
The
-.I -ms
+.I ms
macros provide the
.CW .KS
and
@@ -1600,7 +1605,7 @@ Tables, figures, equations, and references
.XE
.LP
The
-.I -ms
+.I ms
macros support the standard
.I groff
preprocessors:
@@ -1616,7 +1621,7 @@ in pairs of tags as follows:
.TS
box;
cb cb
-lfCR lx .
+lf(CR) lx .
Tag pair Description
_
T{
@@ -1811,7 +1816,7 @@ register as follows.
.TS
box;
cb cb
-lfCR lx .
+lf(CR) lx .
Value Description
_
0 T{
@@ -1912,7 +1917,7 @@ languages are evaluated from left to right.
.
.TS
box center;
-lfCR.
+lf(CR).
\&.ds FR 0+3i \[rs]" Set footnote line length to 3 inches.
.TE
.
@@ -1933,7 +1938,7 @@ Page layout
.XE
.LP
The default output from the
-.I -ms
+.I ms
macros provides a minimalist
page layout:
it prints a single column, with
@@ -2012,7 +2017,7 @@ Multiple columns
.XE
.LP
The
-.I -ms
+.I ms
macros can set text in as many columns as will reasonably
fit on the page.
The following macros are available.
@@ -2026,7 +2031,7 @@ force a page break.
.TS
box;
cb cb
-lfCR lx .
+lf(CR) lx .
Macro Description
_
\&.1C Single-column mode.
@@ -2062,7 +2067,7 @@ Creating a table of contents
.XE
.LP
The facilities in the
-.I -ms
+.I ms
macro package for creating a table of contents
are semi-automated at best.
Assuming that you want the table of contents to
@@ -2128,22 +2133,22 @@ Altering the
macro to automatically build the table of contents
is perhaps initially more difficult, but would save
a great deal of time in the long run if you use
-.I -ms
+.I ms
regularly.
.\" ------------------------
.NH 1
Differences from AT&T
-.I -ms
+.I ms
.XS
Differences from AT&T
-.I -ms
+.I ms
.XE
.LP
This section lists the (minor) differences between the
-.I "groff -ms"
+.I "groff ms"
macros and
.Acr AT&T
-.I "troff -ms"
+.I "troff ms"
macros.
.NH 2
.I troff
@@ -2156,7 +2161,7 @@ macros not appearing in
.XE
.LP
Macros missing from
-.I "groff -ms"
+.I "groff ms"
are cover page macros specific to
Bell Labs.
The macros known to be missing are:
@@ -2191,10 +2196,10 @@ AT&T
.XE
.LP
The
-.I "groff -ms"
+.I "groff ms"
macros have a few minor extensions compared to the
.Acr AT&T
-.I "troff -ms"
+.I "troff ms"
macros.
.IP \&.AM 0.5i
Improved accent marks.
@@ -2202,7 +2207,7 @@ Improved accent marks.
Indented display.
The default behavior of
.Acr AT&T
-.I "troff -ms"
+.I "troff ms"
was to indent; the
.I groff
default prints displays flush left with the body text.
diff --git a/tmac/groff_ms.7.man b/tmac/groff_ms.7.man
index f216d3f..babef08 100644
--- a/tmac/groff_ms.7.man
+++ b/tmac/groff_ms.7.man
@@ -296,7 +296,7 @@ or
can be called to set the document date
(or other identifier)
at any time before (a) the abstract,
-if present;
+if present,
or (b) the end of the first page.
.
Use of these macros is optional,
@@ -330,7 +330,7 @@ creating a separate cover page.
The default arrangement is to print most of the document description
(title,
author names and institutions,
-abstract,
+and abstract,
but not the date)
at the top of page\~1.
.
@@ -1241,7 +1241,6 @@ prints footnote numbers by changing the value of the
register as follows.
.
.
-.ne 7
.RS
.TP
0
@@ -1270,7 +1269,7 @@ indent.
.RE
.
.
-.LP
+.PP
You can use footnotes safely within keeps and displays,
but avoid using numbered footnotes within floating keeps.
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/08: [ms]: Fix documentation content and style nits.,
G. Branden Robinson <=