[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with mm macros
From: |
Mike Bianchi |
Subject: |
Re: problem with mm macros |
Date: |
Thu, 25 Feb 2021 10:40:57 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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.
Witness: If I give nroff -mm the following ...
.ND "January 1, 1999"
.AU "Dr. Gray Hound"
.AT "Project Leader"
.MT 5
.nf
xxxx
\*[cov*au!1!1]
\*[cov*at!1!1]
it yields ...
xxxx
Dr. Gray Hound
Project Leader
Does anyone maintain m.tmac these days?
Mike
On Thu, Feb 25, 2021 at 09:55:59AM -0500, Robert Goulding wrote:
> I get the same result; and then tried variants with .LT instead of .MT, and
> the signature is not produced at all!
>
> On Thu, Feb 25, 2021 at 9:44 AM Andreas Eder <a_eder_muc@web.de> wrote:
>
> >
> > Hello,
> >
> > I'm a newcomer to roff and have just begun reading the book 'UNIX
> > Document Processing and Typesetting'. There is an example of a letter in
> > there thay I enclose here, necause it shows the poblem:
> >
> > .ND "January 1, 1999"
> > .AU "Dr. Gray Hound"
> > .AT "Project Leader"
> > .MT 5
> > .DS
> > Our Reference: prog/001
> > Your Reference: xyz/100
> > .SP 4
> > Mr. William Smith
> > Chief Advisor
> > Consult the Consultants
> > Penny House
> > Graceland
> > .DE
> > .SP 3
> > Dear Mr. Smith
> > .SP 2
> > .ce
> > Recruitment of a Programmer
> > .fi
> > .SP 2
> > .P
> > With reference to our discussion over lunch at the West Gate Club,
> > the requirements of the programmer are as follows:
> > .P
> > The programmer should be conversant in all computer programming languages
> > and be ready to develop any kind of software using different computers.
> > The programmer must also be willing to do administrative and paperwork
> > to get his/her pay.
> > .P
> > Although the requirements may seem to be unusual, I am sure
> > that with your company's expertise in head hunting, finding a
> > suitable person for the above-mentioned position will be a trivial matter.
> > .P
> > Hope to hear from you soon.
> > .FC Sincerely yours
> > .SG
> >
> > Now the problem is that groff doesn't show the author's title below the
> > author's name. Both heirloom and neatroff do, so it is maybe a bug in
> > groff? Also both heirloom and neatroff show name and tile in bold,
> > whereas groff only shows the name an does not do so in bold.
> >
> > Maybe someone with more experience in roff can explain what goes wrong.
> >
> > Sincerly,
> >
> > Andreas Eder
> >
> >
> >
> >
>
> --
> Robert Goulding
> Director, John J. Reilly Center for Science, Technology, and Values;
> Director, Program in History and Philosophy of Science;
> Assoc. Professor, Program of Liberal Studies,
> Fellow, Medieval Institute,
> University of Notre Dame.
--
Mike Bianchi
Foveal Systems
973 822-2085
MBianchi@Foveal.com
http://www.AutoAuditorium.com
http://www.FovealMounts.com