On Sat, Nov 13, 2021, Ulrich Lauther wrote:
> Is there a trick to make a macro or string return a value?
> The only solution I found looks like this:
>
> .de Pos END
> .nr foo (\\n[.d]u-\\[.v]u)*254+1)/72000
> \\n[foo] mm/10
> .END
>
> .fi
> positi
Hi Branden,
> What would an ideal model of output from the above input look like?
What's the argument against CSTR 54's section 11.1 definitions being the
ideal?
--
Cheers, Ralph.
Is there a trick to make a macro or string return a value?
Motivation:
I can write
position: \n[.d]
and get the current position in units.
But I want millimeters, \n[.d]*25.4/72000
or, as arithmetic is in integer, \n[.d]*254/72
The only solution I found looks like this: