Page LayoutPage numbers on all pages

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
maheshravi
Posts: 1
Joined: Mon Jun 01, 2009 11:14 pm

Page numbers on all pages

Post by maheshravi »

Hi all,
i have written my entire thesis in latex. I am new to latex and so far have been able to figure stuff out. But there is one last problem.

My university wants pagenumbers displayed on all pages. I am using the "thesis" document class, for which there isnt much online support available. I am using fancy header to diplay the page number. This class doesnt display pagenumbers on starting page of a chapters.
Using \thispagestyle{plain} on the respective pages doesnt work either.
I need to get around this somehow. Any suggestion? I can also manually put in the page numbers, but dont kow how to display it at the right place.

Recommended reading 2024:

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

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Page numbers on all pages

Post by mas »

maheshravi wrote: Using \thispagestyle{plain} on the respective pages doesnt work either.
For plain style to put page numbers, you have to redefine \fancypagestyle{plain}. Try this :

Code: Select all

\fancypagestyle{plain}{%
      \fancyhf{}      % clear all header fields
      \fancyfoot[CO,CE]{\arabic{page}}
}
Regards,

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply