Re: problem with mm macros

2021-02-26 Thread Andreas Eder
On Do 25 Feb 2021 at 10:40, Mike Bianchi  wrote:

> Andreas has found a true bug.  The  .AT  macro does not act as advertised in
> groff_mm ...
>   The  title  _does_not_ show up after the name in the signature block.
>
> Search  /usr/share/groff/1.22.2/tmac/m.tmac  (the copy I am using at present)
>   fgrep   'cov*at!'  /usr/share/groff/1.22.2/tmac/m.tmac
> and I find
>   .\" author(s) title stored in cov*at!x!y
>   .   ds cov*at!\\n[cov*au]!\\n[cov*i] "\\$[\\n[cov*i]]
>
> which shows that  cov*at!N!N  is created as   cov*at!1!1
> but never referenced.
>
I think I have found the place where the title should be added:

it is very probably in the let*mt-sign macro which is defined in m.tmac
at line 3298. That is the place where the authors are printed.
Unfortunately my roff fu is still much too weak to attempt a fix.

Sincerely

Andreas



Re: problem with mm macros

2021-02-26 Thread Andreas Eder
On Do 25 Feb 2021 at 10:40, Mike Bianchi  wrote:

> Andreas has found a true bug.  The  .AT  macro does not act as advertised in
> groff_mm ...
>   The  title  _does_not_ show up after the name in the signature block.
>
> Search  /usr/share/groff/1.22.2/tmac/m.tmac  (the copy I am using at present)
>   fgrep   'cov*at!'  /usr/share/groff/1.22.2/tmac/m.tmac
> and I find
>   .\" author(s) title stored in cov*at!x!y
>   .   ds cov*at!\\n[cov*au]!\\n[cov*i] "\\$[\\n[cov*i]]
>
> which shows that  cov*at!N!N  is created as   cov*at!1!1
> but never referenced.

I think I have found another instance of that problem.
If you specify the author's firm with .AF it gets stored away in
cov*firm but it is not referenced or used anywhere except 0.MT, 4.MT and ms.cov.

Try the following test:

.TL
Merger Technical Specifications
.AF "ABC Corporation"
.AU "Christopher Craft"
.AT "President"
.AS
This memo details the specifications for the planned merger.
.AE
.MT "Merger Description and Marching Orders"
As a result of our talks with XYZ corporation, we plan to go
forward with the merger. This document contains the following:
.BL
.LI
Schedule and time tables.
.LI
Financial statements.
.LI
Asset allocations.
.LE
.SP
Please add any corrections you have, then sign the approval line
indicated at the bottom of this sheet.
.FC
.SG
.AV "John W. Doe, XYZ Corporation President"
.AV "Sylvia Q. Public, XYZ Corporation CFO"
.NS
Everyone in the corporation.
.NE

It should show up in the right top of the page - or at least that is
what neatroff does.

Sincerely,

Andreas