I am writing my thesis. I have a "main" LaTeX file from where I am calling (attaching) pdf file. But the attached pdf file is not showing any page number. Also, it is not showing other page style I have (like, color vertical box at right end of the page, for chapter name). How this problem can be solved ?


\documentclass[11pt, b5paper,twoside, svgnames]{thesis}

% "thesis" uses book class




\includepdf[scale=0.9, pages={-}]{results.pdf}





\fancyfoot[RO]{\thepage}{\slshape \rightmark}
\fancyfoot[LE]{\thepage}{\slshape \leftmark}


2 Answers 2


Using your current settings, the pdfpages inserts the pages of an external PDF file as full page additions to your existing document. That is, the external file page setup is copied to the "main" output PDF on a page-by-page basis. The "main" file's page setup (including header/footer) is ignored.

If you wish to include the same header/footer style of your main document for each of the \includepdf pages, then you need to specify this using the pagecommand key-value:

\usepackage{pdfpages}% http://ctan.org/pkg/pdfpages
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr

Also note that fancyhdr's \fancyhead and \fancyfoot only takes one mandatory argument: \fancyfoot[<page spec>]{<stuff>}.

  • 6
    pagecommand={} should be sufficient.
    – Lev Bishop
    Apr 2, 2012 at 0:53

By default pdfpages uses the options pagecommand={\thispagestyle{empty}}.

if you want the pagestyle on the included pages you need to call includepdf like :


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .