[texhax] headline vertical boxing.

Hartmut Henkel hartmut_henkel at gmx.de
Sun Aug 10 16:11:14 CEST 2008

On Sun, 10 Aug 2008, Nina Mazumdar wrote:

> On Sun, Aug 10, 2008 at 3:51 AM, Ludwig Mises <ludwigmises at gmail.com> wrote:
>  \def\header#1#2{
>  \headline={\vbox{\hbox to \hsize{{\strut\bigfont #1} \hfill {\littlefont #2}}
>   \vskip 2pt
>   \hrule height 2pt}}
>  }
> With the insertion of \strut just before \bigfont kept the rule
> exactly at same location in all page headers.  Sorry, I could not
> replicate your problem.  I do not have cmbx14, instead I have used
> cmbx12, that is the only difference I can see.

if using \strut, it should be in the sequence \bigfont\strut so that the
\strut really uses the dimensions from the \bigfont font. Another way is
to hide vertical box dimensions (height, depth) by \smash{}, which stops
\headline to move vertically depending on its contents, e. g.:

    \smash{\line{{\bigfont #1}\hfill {\littlefont #2}}}
    \vskip 4pt
    \hrule height 2pt

Regards, Hartmut

More information about the texhax mailing list