[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vim :hardcopy equivalent
From: |
Tadziu Hoffmann |
Subject: |
Re: vim :hardcopy equivalent |
Date: |
Wed, 24 Jul 2024 22:27:31 +0200 |
User-agent: |
Mutt/1.11.4 (2019-03-13) |
> > a "margin" measures an extent of whitespace (or "negative space"),
> > whereas the `sp` request positions the _text baseline_,
The first is correct and the second incorrect for [g]troff.
In troff (and nroff), if you say
.sp |0
then this does not mean "put the baseline at the top of the page"
but rather "leave zero space above the text", and correspondingly
.sp |50p
means "leave 50 pt of space above the text", as you would expect
for margins. Thus, troff's model somewhat follows the concepts
of metal typesetting.
Of course, troff simplifies this a bit, in the first case by putting
the baseline at 1 vee below the top of the page, and in the second
case at 50 pt + 1 vee.
Groff enables you to follow the metal typesetting model more
closely, by allowing you to split the baseline distance into
".vs" and ".pvs". Thus, to have a baseline spacing of 20 pt,
with 14 pt above the baseline and 6 pt below the baseline, say
.vs 14
.pvs 6
as demonstrated in the attached example.
margin.ro
Description: Text document
margin.pdf
Description: Adobe PDF document
- vim :hardcopy equivalent, me . groff, 2024/07/21
- Re: vim :hardcopy equivalent, Robert Thorsby, 2024/07/21
- Re: vim :hardcopy equivalent, Jan Eden, 2024/07/22
- Re: vim :hardcopy equivalent, me . groff, 2024/07/24
- Re: vim :hardcopy equivalent, Dave Kemper, 2024/07/29
- Re: vim :hardcopy equivalent, G. Branden Robinson, 2024/07/30
- Re: vim :hardcopy equivalent, me . groff, 2024/07/25