[texhax] Misplaced footer with multicol and fancyhdr

Hironobu YAMASHITA h.y.acetaminophen at gmail.com
Wed Mar 30 09:29:10 CEST 2016


I see footers with fancyhdr.sty (March 22, 2005, v3.2) are
wrongly shifted toward the upper direction in the mulitcols
env defined in the latest multicol.sty (2015/08/19 v1.8n).
I had no problem with multicol.sty v1.8i in TL2014.

%#!pdflatex
\documentclass[a5paper]{article}
\usepackage{lipsum}
\usepackage{multicol} % v1.8n
\usepackage{fancyhdr} % v3.2
\pagestyle{fancy}
\cfoot{Page\\\thepage}
\begin{document}
\lipsum[1-3]
\begin{multicols}{2}
\lipsum[4-8]
\end{multicols}
\lipsum[9-10]
\end{document}

This behavior is due to the change in multicol.sty between
v1.8i and v1.8j, which adds \boxmaxdepth\maxdepth in the
definition of \multi at column@out. It seems that \boxmaxdepth
has affected not only splitting routine itself but also
routines _between_ splitting (such as header and footer).

Is this a bug in fancyhdr.sty, or in multicol.sty? Or am I
doing something wrong?

Hironobu Yamashita


More information about the texhax mailing list