Open amine-aboufirass opened 2 years ago
as noted in comments on this question, the problem is not headsep but headheight it is a user-setable length that you need to set to be at least the height of the actual content. Especially if as here you change the heading adding tall content after the page head has been set up then there is not really anything geometry can do here.
I would like to use the
geometry
package alongsidefancyhdr
. To control the distance between header and main text in myarticle
documentclass, this question recommends use of theheadsep
parameter:This seems to work fine, and modifying the
headsep
indeed modifies the distance between the header and the section title. However, it so happens that my header is multi-line. as soon as I uncomment line 9 as follows:\fancyhead[C]{A header\\a new line in the header}
The section title clashes with the header, which I do not want. How can I get
headsep
to remain aware that my header is now multi line?