groff
[Top][All Lists]
Advanced

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

Re: [Groff] conditionals inside a table?


From: Anton Shterenlikht
Subject: Re: [Groff] conditionals inside a table?
Date: Fri, 05 Dec 2014 06:58:37 -0800 (PST)

>From address@hidden Fri Dec  5 14:30:08 2014
>>
>> The only thing I don't understand is
>> what is "u" in
>> 
>> lw(\n[w1]u)
>
>The default unit for the value in the w() modifier is en; so in my
>example w1 has value (in nroff) 144000 and if you leave u off it will
>be evaluated in en's (of the order of 500 feet!).

I confused stings with number registers.

.nr n1 2i
.ds s1 2i

gives, for a device unit of 72000

n1=144000
s1="2i"

Then \[n1]u is in units evaluating to 2 inches again,
and \[s1] is just 2 inches.

So it seems using strings is more natural.

Many thanks

Anton



reply via email to

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