[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] page location traps
From: |
Tadziu Hoffmann |
Subject: |
Re: [groff] page location traps |
Date: |
Thu, 25 Oct 2018 23:48:59 +0200 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
> [...] and groff's devascii:
I was (partly) wrong about the devascii behavior.
In the example I had shown, some newer traps actually *replace*
older traps due to the limited vertical resolution (because the
position rounded to the nearest vertical resolution unit is the
same as that of a similarly rounded earlier trap position).
With the following code change
.wh 10i t1
.ch t1 2.1i
.wh 10i t2
.ch t2 2.2i
.wh 10i t3
.ch t3 2.3i
.wh 10i t4
.ch t4 2.4i
.wh 10i t5
.ch t5 2.5i
.wh 10i t6
.ch t6 2.6i
all the traps are kept, but again not all are sprung:
vertical resolution is 240/in / 40
t1 520
t2 520
t3 560
t4 560
t5 600
t6 640
trap 1 sprung, now at 520 u (2.166666 in), next trap in 40 u (0.166666 in)
trap 3 sprung, now at 560 u (2.333333 in), next trap in 40 u (0.166666 in)
trap 5 sprung, now at 600 u (2.500000 in), next trap in 40 u (0.166666 in)
trap 6 sprung, now at 640 u (2.666666 in), next trap in 2000 u (8.333333 in)