Re: macro returning a value?

2021-11-13 Thread Peter Schaffter
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

Re: Should vertical motions be in vees or ems? Where does the baseline go?

2021-11-13 Thread Ralph Corderoy
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.

macro returning a value?

2021-11-13 Thread Ulrich Lauther
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: