public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] docs: pdfdocs: Adjust \headheight for fancyhdr
Date: Tue, 12 Oct 2021 14:09:15 -0600	[thread overview]
Message-ID: <87wnmit384.fsf@meer.lwn.net> (raw)
In-Reply-To: <c5a5577e-5de8-9cd4-9253-956ccc748417@gmail.com>

Akira Yokosawa <akiyks@gmail.com> writes:

> Fancyhdr prior to v4.0 outputs a message per document as follows:
>
>     Package Fancyhdr Warning: \headheight is too small (12.0pt):
>     Make it at least 13.59999pt.
>     We now make it that large for the rest of the document.
>     This may cause the page layout to be inconsistent, however.
>
> Fancyhdr v4.0 complains (once a page!) as follows:
>
>     Package fancyhdr Warning: \headheight is too small (12.0pt):
>     (fancyhdr)    Make it at least 13.59999pt, for example:
>     (fancyhdr)    \setlength{\headheight}{13.59999pt}.
>     (fancyhdr)    You might also make \topmargin smaller to compensate:
>
>     (fancyhdr)    \addtolength{\topmargin}{-1.59999pt}.
>
> Related item in fancyhdr v4.0 announcement on 2021-01-04 [1]:
>
>     Backward incompatible changes:
>       - Eliminate adjustments of \headheight or \footskip, when the
>         header or footer is too high.
>
> [1]: https://www.ctan.org/ctan-ann/id/mailman.2685.1609863692.2532.ctan-ann@ctan.org
>
> Silence the warnings by adding a couple of \addtolength commands in
> the preamble.
>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> Hi,
>
> This update doesn't have much visual effects in the final PDFs
> (adjustment of only 1.6pt), but getting rid of harmless warnings
> would help spot potential important ones.
>
> Tested against Sphinx versions 2.4.4 and 4.2.0, with Tex Live
> versions 2017/debian (Ubuntu 18.04), 2019/debian (Ubuntu 20.04),
> and vanilla 2021 (as of 2021-10-08).
>
>         Thanks, Akira
> --
>  Documentation/conf.py | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

jon

      reply	other threads:[~2021-10-12 20:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11  2:05 [PATCH] docs: pdfdocs: Adjust \headheight for fancyhdr Akira Yokosawa
2021-10-12 20:09 ` Jonathan Corbet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnmit384.fsf@meer.lwn.net \
    --to=corbet@lwn.net \
    --cc=akiyks@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox