Page LayoutPage number and bottom margin only works on first page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jrhawking
Posts: 2
Joined: Fri Aug 21, 2015 6:59 pm

Page number and bottom margin only works on first page

Post by jrhawking »

Hi,

I have just started using Latex and this is the first document I write. It's a lit review for college. I have everything the way I want it to but my 0.8in margin and centered page number at the bottom only works on my first page - all other pages have no margin and no number. Below is my code. Any help is appreciated!

Code: Select all

\documentclass[11pt]{article}
\usepackage{bm}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=black, citecolor= black, urlcolor= black]{hyperref}
\usepackage{overcite}
\usepackage{footnpag}	  	% make footnote symbols restart on each page
\usepackage{threeparttable}% tables with footnotes
\usepackage{oldgerm}
\usepackage{subfig}             % subfigures
\usepackage{varioref}%  smart page, figure, table, and equation referencing
\usepackage{wrapfig}%   wrap figures/tables in text
\usepackage{listings}
\usepackage[margin=0.6in,bottom=0.8in]{geometry}
\usepackage{listings}
\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
\usepackage{graphicx}
\usepackage{wasysym}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\includegraphics{Fig11.jpg}}
\chead{Final Report 2014-2015}
\rhead{\includegraphics{Fig12.jpg}}
\fancyfoot[C]{\thepage}
Many thanks!
Last edited by Stefan Kottwitz on Fri Aug 21, 2015 7:11 pm, edited 1 time 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

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Page number and bottom margin only works on first page

Post by Stefan Kottwitz »

Hi,

and welcome to the forum!

I think, because of the images in the header, the header is so high that the page numbers go down and are not visible any more. You can verify this by commenting out those lines:

Code: Select all

%\lhead{\includegraphics[height=1cm]{Fig11.jpg}}
%\rhead{\includegraphics[height=1cm]{Fig12.jpg}}
It could be fixed by correcting the head height in a way like

Code: Select all

\setlength{\headheight}{1cm}
with a suitable value. Furthermore, the margin may need to be adjusted. It's extremely small btw. Have a look at books of your field. I guess mostly nobody uses such tiny margins.

But the header causes it. The small margins just make it more quickly moved out of the paper.

Stefan
LaTeX.org admin
jrhawking
Posts: 2
Joined: Fri Aug 21, 2015 6:59 pm

Re: Page number and bottom margin only works on first page

Post by jrhawking »

That worked!

Thank you very much for the prompt reply!

Best regards
Post Reply