Page Layoutfancyhdr | Page Geometry is altered

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
skwateur
Posts: 14
Joined: Thu Jun 21, 2012 9:24 pm

fancyhdr | Page Geometry is altered

Post by skwateur »

Hello again guys,

I'm having a strange problem. I modified the document margin :

Code: Select all

\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.85in}
\addtolength{\topmargin}{-.875in}
I've made my footer with fancyhdr. The space between the footer and the bottom of the page isn't the same on the first page and on my others pages, indeed, the first page has a much bigger space..

Do you have any ideas ??
Last edited by localghost on Fri Jul 06, 2012 4:10 pm, edited 3 times in total.

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

fancyhdr | Page Geometry is altered

Post by cgnieder »

Hi,

A suggestion: you can format code using the »Code« button above the textfield. That would improve readability a lot!

You should use geometry for adjusting page geometry. If that doesn't help please provide a Infominimal working example that reproduces your problem.

Regards
site moderator & package author
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr | Page Geometry is altered

Post by localghost »

skwateur wrote:[…] The space between the footer and the bottom of the page isn't the same on the first page and on my others pages, indeed, the first page has a much bigger space. […]
Take a close look at the log file. You may get a warning regarding a too small \headheight. The compiler adjusts this length automatically on the following pages so that the page geometry looks different. cgnieder already mentioned the geometry package as a better method for setting up the page layout.


Thorsten
skwateur
Posts: 14
Joined: Thu Jun 21, 2012 9:24 pm

Re: fancyhdr | Page Geometry is altered

Post by skwateur »

thanks.

I'm trying to use the geometry package right now but I've got the same problem : the first page always has a bigger or smaller margin than the 2 following pages.
:evil:
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr | Page Geometry is altered

Post by localghost »

skwateur wrote:[…] the first page always has a bigger or smaller margin than the 2 following pages. […]
And you have read the assumptions in my last reply? What does the log file (*.log) say? As already requested, you should prepare a proper minimal example to give an adequate problem description.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

fancyhdr | Page Geometry is altered

Post by Stefan Kottwitz »

Perhaps you used geometry but you did not adjust the head height yet.

Stefan
LaTeX.org admin
skwateur
Posts: 14
Joined: Thu Jun 21, 2012 9:24 pm

fancyhdr | Page Geometry is altered

Post by skwateur »

Code: Select all

Package Fancyhdr Warning: \headheight is too small (12.0pt): 
 Make it at least 65.4pt.
 We now make it that large for the rest of the document.
 This may cause the page layout to be inconsistent, however.
I fixed it with \setlength{\headheight}{65.4} and everything is fine now, thanks a lot !
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr | Page Geometry is altered

Post by localghost »

skwateur wrote:[…] I fixed it with \setlength{\headheight}{65.4} and everything is fine now, thanks a lot !
You can do this by passing a corresponding option to the geometry package.

Code: Select all

\usepackage[…,headheight=66pt,…]{geometry}
skwateur
Posts: 14
Joined: Thu Jun 21, 2012 9:24 pm

Re: fancyhdr | Page Geometry is altered

Post by skwateur »

Okay, thank you :)
Post Reply