From 945b54830eccf9323319045b8eb749a5baa46ac6 Mon Sep 17 00:00:00 2001 From: Bjarni Ingi Gislason Date: Sat, 6 Nov 2021 01:02:44 +0000 Subject: [PATCH] [doc] fix explanations of units "em" and "en" 1) en = em/2 2) em is about as wide as the letter 'M' 3) align a header to the data in a table (same alignment). The header is too far from the beginning of the data in the wide table 4) Remove an unnecessary font change Signed-off-by: Bjarni Ingi Gislason --- doc/groff.texi | 2 +- doc/ms.ms | 6 +++--- man/groff.7.man | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/groff.texi b/doc/groff.texi index 6ee4a199..b9eb0e1b 100644 --- a/doc/groff.texi +++ b/doc/groff.texi @@ -5508,7 +5508,7 @@ specifying measurements that should look proper with any size of text. @cindex @code{m} unit @cindex unit, @code{m} Ems. This unit is equal to the current font size in points. So called -because it is @emph{approximately} the width of the letter@tie{}@samp{m} +because it is @emph{approximately} the width of the letter@tie{}@samp{M} in the current font. @item n diff --git a/doc/ms.ms b/doc/ms.ms index 08c5c01e..ac530b2d 100644 --- a/doc/ms.ms +++ b/doc/ms.ms @@ -143,7 +143,7 @@ The following table summarizes typical units. . .TS box center; -cb cb +cb lb cf(CR) l . Unit Description _ @@ -152,8 +152,8 @@ c centimeters p points (1/72\[sd]) P picas (1/6\[sd]) v \[lq]vees\[rq]; height of a line using the current font -n \[lq]ens\[rq]; width of an \[lq]n\[rq] using the current font -m \[lq]ems\[rq]; width of an \[lq]M\[rq] using the current font +m \[lq]ems\[rq]; type size of the font; approx. width of an \[lq]M\[rq] +n \[lq]ens\[rq]; same as em/2; approx. width of an \[lq]n\[rq] .TE . . diff --git a/man/groff.7.man b/man/groff.7.man index cbc0f53c..fc063b8a 100644 --- a/man/groff.7.man +++ b/man/groff.7.man @@ -795,12 +795,12 @@ point\ \[eq]\ 1/72\ inch . .TPx .B m -em\ \[eq]\ \f[R]the font size in points (approx.\& width of letter -\[oq]\f[CR]m\f[R]\[cq]) +em\ \[eq]\ the font size in points (approx.\& width of letter +\[oq]\f[CR]M\f[R]\[cq]) . .TPx .B M -100\^th \f[R]of an \f[CR]em +100\^th of an \f[CR]em . .TPx .B n -- 2.33.0