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 5189 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

First line of text too close to fancy header line

Post by localghost »

How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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: 9201
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

\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}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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