Bottom margin vs. descenders question

Philip Taylor P.Taylor at Hellenic-Institute.Uk
Sat Jun 27 14:10:35 CEST 2020


Peter Flynn wrote:

>
>> With those parameters in effect, I have never found it possible to 
>> use a \vbox with height an integral multiple of \baselineskip to 
>> achieve what you were setting out to do, because said \vbox has only 
>> one reference point. 
>
> I think it only needed one. But it was some decades ago.

The problem is, by defining a \vbox to be $n$ units of \baselineskip 
tall, $n > 1$, you are, by definition, going to overwrite the line(s) 
above with the content of the \vbox, because the lines are /constrained/ 
to be exactly 1 unit of \baselineskip apart (1 unit, not $n$ units) 
[1].  The only way in which I can see it might work is if the \vbox 
were, in fact, a \vtop, and were followed by a \vskip of $n-1$ units of 
\baselineskip [2].

** Phil.
--------
Example 1 :

> % !TeX Program=XeTeX
>
>
> \parskip = 0 pt
>
> \parindent = 0 pt
>
>
> \font \gfont = cmr10 scaled 5000
>
> \def \good {\lower 3,5 ex \hbox {\gfont g}ood }
>
>
> \baselineskip = 5mm
>
> \lineskip = 0 pt
>
> \lineskiplimit = -\maxdimen
>
> \abovedisplayskip = 0 pt
>
> \abovedisplayshortskip = 0 pt
>
> \belowdisplayskip = 0 pt
>
> \belowdisplayshortskip = 0 pt
>
>
> \topglue 12.2mm
>
> \obeylines
>
> The Leith police dismisseth us, for we sufficeth them.
>
> The quick brown fox jumps right over the lazy dog's back.
>
> %\leaders \vbox {$$x^2 = y^2 + z^2$$}\vskip 2\baselineskip
>
> \vbox to 2\baselineskip %
>
> {%
>
> \centerline 
> {111111111111111111111111111111111111111111111111111111111111111}%
>
> \centerline 
> {222222222222222222222222222222222222222222222222222222222222222}%
>
> }
>
> Now is the time for all \good men to come to the aid of the party.
>
> Here endeth the first lesson.
>
> \eject
>
>
> \end
>

Example 2 :

> % !TeX Program=XeTeX
>
>
> \parskip = 0 pt
>
> \parindent = 0 pt
>
>
> \font \gfont = cmr10 scaled 5000
>
> \def \good {\lower 3,5 ex \hbox {\gfont g}ood }
>
>
> \baselineskip = 5mm
>
> \lineskip = 0 pt
>
> \lineskiplimit = -\maxdimen
>
> \abovedisplayskip = 0 pt
>
> \abovedisplayshortskip = 0 pt
>
> \belowdisplayskip = 0 pt
>
> \belowdisplayshortskip = 0 pt
>
>
> \topglue 12.2mm
>
> \obeylines
>
> The Leith police dismisseth us, for we sufficeth them.
>
> The quick brown fox jumps right over the lazy dog's back.
>
> %\leaders \vbox {$$x^2 = y^2 + z^2$$}\vskip 2\baselineskip
>
> \vtop to 2\baselineskip %
>
> {%
>
> \centerline 
> {111111111111111111111111111111111111111111111111111111111111111}%
>
> \centerline 
> {222222222222222222222222222222222222222222222222222222222222222}%
>
> }%
>
> \vskip 1\baselineskip %
>
> Now is the time for all \good men to come to the aid of the party.
>
> Here endeth the first lesson.
>
> \eject
>
>
> \end
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200627/f80527e6/attachment.html>


More information about the texhax mailing list.