[texhax] \vskip at beginning of file

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

On 19 July 2016 at 12:02, Philip Taylor <p.taylor at rhul.ac.uk> wrote:
> Rodolfo Medina wrote:
>> Is it possible to avoid that ugly trick, and how?
> \leavevmode \vskip ... is one way, \topglue ... is another.
> Philip Taylor

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.


More information about the texhax mailing list