groff
[Top][All Lists]
Advanced

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

Re: [Groff] Question about number registers


From: Werner LEMBERG
Subject: Re: [Groff] Question about number registers
Date: Sun, 18 Dec 2005 12:55:21 +0100 (CET)

> I'm relatively new to *roff in general. I can't figure out how to
> keep track of a numeric value, for example a currency sum through a
> document.
> 
> How is it done? We start with a value of 0, and each time we want to
> add to the "total" we increment a number register (or something) by
> the desired value.
> 
> At the end we can print "Total = $numregister" (so to speak).

See section `Setting Registers' in groff.info.


    Werner




reply via email to

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