I have a proposal letter (my latex is in article though)with 6 pages. I have a header that says page # of ##. # is the page number and ## is the total number of pages. So the last page should be page 6 of 6. It works well with lastpage package. Until…
I want to add a two page terms and conditions as an attachment at the end and I am using \includepdf. However, my header count on the 6th page (last page of the proposal) changes to page 6 of 8.
Is there any way to call the 6th page as the last page for page counting.
Best Answer
Option 1 Instead of the
lastpage
package you can usepageslts
which allows for different numbering schemes with a nice feature that might be useful in this case. (Because I guess the added document shouldn't start again with page number 1.)When the page numbering scheme is changed the page numbers are reset. So the appendix will be numbered with roman numbers starting with i, ii, ... while the last page of the main document will remain equal to 6 and the last page of the appendix will be ii.
The file
TermsConditions.tex
is typeset without page numbers and included using the packagepdfpages
. The pages will be numbered by the main document. (By using awidth=\textwidth
the font will be very small as it should be for Terms an Conditions ;-))This is
main.tex
This is
TermsConditions.tex
If you want to keep the same geometry in both documents use in
TermsConditions.tex
(the same setup used in
main.tex
) andin the
main.tex
Option 2 If you want to keep
lastpage
, the following code will achieve the same result by adding the additional document as an appendix.