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
> .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
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
> 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
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
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
> 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
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
> .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
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 ".
10 matches
Mail list logo