You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your report.
You are right, the fancyhdr default is not the same as the LaTeX default. It wasn't the intention. In the documentation it is described for the twosided case, but the onesided case is actually the same, except that only the 'odd page' layout is used.
Your document is missing a \pagestyle{fancy} command, therefore the header you get is not the fancyhdr default but some half-baked version of it.
To get the same layout as the default LaTeX layout but with a line under the header, use (only available on fancyhdr version 4):
I could make a change to implement a different default for onesided documents (which would give the same layout as the two lines above), but that would break some existing documents. I tried it on my system, and several of my test files would give a different output. I think this is too risky, so I will not implement it. I will update the documentation to describe the situation more fully.
fancyhdr
version: 2021/01/04 v4.0The code in
\f@nch@initialise
assumes that the document is intwoside
mode. This causes aoneside
document fails to produce the correct header.fancyhdr/fancyhdr.dtx
Lines 4168 to 4187 in 06e1305
The headers of pages 2 and 3 are
1.1. BAR2
, which is inconsistent with that if\usepackage{fancyhdr}
is commented out.Sorry that I created an incomplete issue firstly.
The text was updated successfully, but these errors were encountered: