<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Peter Flynn wrote:<br>
<br>
</div>
<blockquote type="cite"
cite="mid:2f4560df-3ee4-c35c-4bee-ed1a2f617d93@silmaril.ie">I had
to do it for display math once, so I invented an environment which
set the equation, measured it, and output it vertically-centered
in a vbox to an integer number of lines. Not elegant, but it
helped.<br>
</blockquote>
<br>
I think you would agree, Peter, that if one is required to typeset
on a grid, then TeX's normal line-spacing ("leading") behaviour is
useless and one has to over-ride it to enforce what Adobe call
"exact" line spacing (e.g., "exactly 12 pt, come hell or high water,
and certainly regardless of any ascenders, descenders, or other even
more pathological anomolies"). And to accomplish that, one has to
change some of TeX's default values, so (for example) one might
write :<br>
<br>
<blockquote type="cite">\baselineskip = 12 pt
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\lineskip
= 0 pt</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\lineskiplimit
= -\maxdimen</p>
</blockquote>
<br>
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. This is why I formulated and proposed my
\leaders solution. Could I ask you to post a short fragment of code
in which you demonstrate how your idea would work, given the
line-spacing parameters above ?<br>
<br>
** Phil.<br>
<br>
<br>
<br>
</body>
</html>