I'm quite struggling with footers. After hours spent trying to customize usepackage{fancyhdr} and pagestyle{fancy}, I decided to create as simple document as possible. Something reminding picture below.
Unfortunately, when I use
\documentclass[a4paper,12pt,titlepage,oneside,final]{book}
\begin{document}
\frontmatter
\begin{titlepage}
{\bf Titlepage}
\end{titlepage}
\newpage
\thispagestyle{empty}
{\bf included pdf}
\newpage
{\bf declaration}
\newpage
{\bf Acknowledgement}
\newpage
\thispagestyle{empty}
{\bf included pdf}
\tableofcontents
\mainmatter
\chapter*{introduction}
\addcontentsline{toc}{chapter}{introduction}
\chapter{1st chapter}
\end{document}
two problems occur:
1) Roman numerals (i – iv) are placed in the header, on the right. Maybe it's more convenient, I'm not sure – I would rather put them at the bottom if possible.
2) Final .pdf file starts with 1 instead of i (or nothing for titlepage). I would expect pages to be denoted by Arabic numerals since Introduction.
Do you have any clue? Thanks for your time!
Best Answer
Does this produce the result you are looking for?
This omits the number on the title page and included pdfs but counts them. (Comment the relevant line if you don't want to count the title page.)
EDIT: This does leave one problem which is not to do with the page numbering of the pages as such but, rather, with the way they are designated in a PDF viewer. Although the page shows 'iii', for example, the viewer will call this '3'. And although the introduction is labelled '1', the viewer will refer to it as '7'.
To address this, we need to use a package designed for dealing with electronic versions of documents rather than merely printed ones.
hyperref
will address this problem andbookmark
may optionally be loaded for enhanced, but more experimental, handling of bookmarks.The following code produces the same visual output on the page but persuades the PDF viewer to label the pages correctly. This version also updates the deprecated commands identified by Harish Kumar in the comments.