Re: [Groff] blm blues

2008-11-17 Thread Miklos Somogyi
Good God, I am so pleased with this outpouring of help. Tadziu, Larry, Ted, thank you very much. It was a nice learning exercise, and I love the simplicity of using a string. I would like to add only two things. In case of .../10u*4u like structures I'd like to add that with integer arith

Re: [Groff] blm blues

2008-11-15 Thread Tadziu Hoffmann
> .de blank_aux > .sp \\n[.v]u/10u*4u > .. > .blm blank_aux This is exactly the working principle of Miklos's solution -- multiply the *current* vertical spacing by some factor -- only that he wanted this factor (4/10 in your example) configurable, and not hardcoded in the macro, so that he could

Re: [Groff] blm blues

2008-11-15 Thread Ted Harding
On 15-Nov-08 21:50:15, Tadziu Hoffmann wrote: >> I know I'm coming in late, but there are two things I'd do >> differently: set a default and use relative spacing (v) >> instead of machine units (u). >> >> .de blank_aux >> . if !rblankreg .nr blankreg 0.4v >> . sp \\n[blankreg]u >> .. >> .blm blank

Re: [Groff] blm blues

2008-11-15 Thread Tadziu Hoffmann
> I know I'm coming in late, but there are two things I'd do > differently: set a default and use relative spacing (v) > instead of machine units (u). > > .de blank_aux > . if !rblankreg .nr blankreg 0.4v > . sp \\n[blankreg]u > .. > .blm blank_aux > > Replace the 0.4v above with whatever you want

Re: [Groff] blm blues

2008-11-15 Thread Larry Kollar
Miklos Somogyi wrote: I am trying to produce a macro for request blm that would set space as a given fraction of the current vertical spacing. I did the following: --- .de blank . nr blankreg (c;\\$1) this wo

Re: [Groff] blm blues

2008-11-13 Thread Miklos Somogyi
On 13/11/2008, at 07:46 AM, Miklos Somogyi wrote: That's a nice explanation, Werner. Thank you. About "again": it's good to see that some people have memories. I can't remember what was for dinner yesterday :-) Miklos On 11/11/2008, at 06:15 PM, Werner LEMBERG wrote: I am trying to prod

Re: [Groff] blm blues

2008-11-10 Thread Werner LEMBERG
> I am trying to produce a macro for request blm that would set space > as a given fraction of the current vertical spacing. > > I did the following: > > .de blank > . nr blankreg (c;\\$1) > .. > > .de blank_aux > . sp (\\n[.v]u*\\n[blankreg]u/28340)u > .. > > .blm blank_aux > > This does not

Re: [Groff] blm blues

2008-11-10 Thread Miklos Somogyi
Tadziu, You are one of the eights order of the ninefold celestial hierarchy. That is you are an archangel. Thank you! Miklos On 11/11/2008, at 06:46 AM, Tadziu Hoffmann wrote: .de blank_aux . sp (\\n[.v]u*\\n[blankreg]u/28340)u .. Your number "28340" does not have a unit and will t

Re: [Groff] blm blues

2008-11-10 Thread Tadziu Hoffmann
> .de blank_aux > . sp (\\n[.v]u*\\n[blankreg]u/28340)u > .. Your number "28340" does not have a unit and will therefore be interpreted as "V"s, giving a huge number in the divisor. Try this instead: .sp \\n[.v]u*\\n[blankreg]u/28340u

[Groff] blm blues

2008-11-10 Thread Miklos Somogyi
I am trying to produce a macro for request blm that would set space as a given fraction of the current vertical spacing. I did the following: --- .de blank . nr blankreg (c;\\$1) this would accept things like ".