Page LayoutFirst line of text too close to fancy header line

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
maxiness
Posts: 5
Joined: Fri Jan 23, 2009 6:49 pm

First line of text too close to fancy header line

Post by maxiness »

Hi Everyone,

I'm using the fancyhdr package, and all is working well apart from the first line of the text on each page is way too close to the header line.

Any ideas how to move the text down a bit?

Thanks in advance :)

Maxine
Attachments
theproblem.jpg
theproblem.jpg (23.92 KiB) Viewed 5505 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

maxiness
Posts: 5
Joined: Fri Jan 23, 2009 6:49 pm

Re: First line of text too close to fancy header line

Post by maxiness »

Sorry, I wasnt really sure what I have to include to get a MWE.

I fixed it anyway. Used \topskip.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

First line of text too close to fancy header line

Post by localghost »

maxiness wrote:Sorry, I wasnt really sure what I have to include to get a MWE. [...]
Following the links in the mentioned topic would have shown you how to do this. There are detailed instructions. However, this behaviour is not normal. So it would have been interesting to see what's causing it. Your solution appears improper.

Supplement:
A MWE would have been so easy in this case.

Code: Select all

Code, edit and compile here:
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage{blindtext}
% Setup for page layout (fancyhdr)
\fancyhf{}
\lhead{\itshape ST215 Assessment I}
\rhead{\itshape Linear Regression in SPLUS}
\rfoot{\thepage}
\pagestyle{fancy}
\begin{document}
\blinddocument
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sk
Posts: 8
Joined: Wed Sep 08, 2010 10:11 am

Re: First line of text too close to fancy header line

Post by sk »

Just in case anyone wonders I think the strange behaviour is due to the package fullpage. I had the same problema and replaced that package with geometry and everything worked fine.
Post Reply