groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with number registers


From: G. Branden Robinson
Subject: Re: Problems with number registers
Date: Tue, 11 Jan 2022 15:12:47 +1100
User-agent: NeoMutt/20180716

Hi, Bob!

At 2022-01-11T14:45:04+1100, Robert Marks wrote:
> After some years, I have returned to groff macros.

Welcome back!

> I'm trying to write to code, using number registers.
> But I'm having problems.
> 
> .tm .v = \n(.v
> .tm .s = \n(.s
> 
> work OK:
> 
> .v = 12000
> .s = 10
> 
> but then
> 
> .nr a 1
> .nr a +1
> .tm a = \na
> .nr aa 17
> .tm aa = \n(aa
> 
> give zeros:
> 
> a = 0
> aa = 0

I cannot reproduce the problem you're having, using groff 1.22.4 on my
Debian system.

$ cat EXPERIMENTS/marks.roff
.nr a 1
.nr a +1
.tm a = \na
.nr aa 17
.tm aa = \n(aa
$ groff -Tutf8 EXPERIMENTS/marks.roff
a = 2
aa = 17

Can you show us what commands you're using?  Maybe the output of "groff
--version" as well.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]