[texhax] \vskip at beginning of file

David Carlisle d.p.carlisle at gmail.com
Tue Jul 19 21:10:21 CEST 2016

On 19 July 2016 at 19:57, Rodolfo Medina <rodolfo.medina at gmail.com> wrote:
> David Carlisle <d.p.carlisle at gmail.com> writes:
>> The \topglue macro is certainly the best of these options.
>> using \leavevmode or \quad is bad as it introduces a spurious
>> paragraph (and consequent extra space)
>> using \hbox{} (or \null which is same thing) can have unwanted effects
>> via \prevdepth
>> \topglue uses \hrule height 0pt as the basic node to prevent the skip
>> being discarded but takes care not to disturb \prevdepth, and corrects
>> for \topskip.
> \topglue0pt seems to raise the following text up a bit, though...
> Thanks,
yes it negates \topskip, the idea being that if you want an image or a
rule exactly 3cm from the top, `\topglue` is your friend. conversely
\quad \vskip0pt would move things down with a spurious white paragraph

You could of course copy the definition of \topglue but without the
\topskip correction.


More information about the texhax mailing list