Page Layoutfancyhdr | Missing Page Number

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
chamarams
Posts: 2
Joined: Sun Oct 21, 2012 12:15 pm

fancyhdr | Missing Page Number

Post by chamarams »

After apply header and footer no page number display in my document only header and footer

Code: Select all

\documentclass[a4paper,12pt,roman]{report}
\usepackage{thesis}
\usepackage{epsfig}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{fancyhdr}
\usepackage[left=1.57in, right=0.98in,top=0.98in,bottom=1.57in]{geometry}
\usepackage{amsmath}

\pagestyle{fancy}
\fancyhf{}
\chead{\textbf Header }
\cfoot{\textbf Footer }
and there is another problem there is no header or footer display in first chapter page but here can see page number. I need both header and footer and page number all the pages.
Attachments
page-style-usual.jpg
page-style-usual.jpg (68.08 KiB) Viewed 14081 times
chapter-page-style.jpg
chapter-page-style.jpg (64.95 KiB) Viewed 14081 times
Last edited by localghost on Sun Oct 21, 2012 3:25 pm, edited 6 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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fancyhdr | Missing Page Number

Post by localghost »

The page number missing in your specifications for the headers and footers. So it's no surprise that it doesn't occur in the output.

If you want to change the chapter page style, read Section 7 of the fancyhdr manual.


Best regards and welcome to the board
Thorsten
chamarams
Posts: 2
Joined: Sun Oct 21, 2012 12:15 pm

Re: fancyhdr | Missing Page Number

Post by chamarams »

Sir,

for that if you have some code can you give me. Tomorrow is deadline for submit this. I need both page number and header and footer.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: fancyhdr | Missing Page Number

Post by localghost »

Sure, if you give specific information about your headers and footers. I don't think that the example you posted earlier is your actual page style for your document.

Nevertheless the package manual has all necessary information for you to customize the page style for your document in form of concrete examples.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

fancyhdr | Missing Page Number

Post by Stefan Kottwitz »

Welcome to the board!

In header or footer commands, use the macro \thepage to print the page number, such as \rhead{\thepage}. It's impossible to give the code you need since you did not say where the page numbers should be: in the header, in the footer and in the left or the right side or the center then.

Regarding the chapter start pages, just follow Thorsten's reference. There's a short and clear explanation. Try \fancypagestle{plain}{}.

Stefan
LaTeX.org admin
Post Reply