Here is my response, which gives more details:
I have attached a sample letter with "1 of ..." page numbering throughout. fancyhdr works with "letter" just as well as it works with "article." You just have to treat "\opening" just like you do "\maketitle."Of course, you will have to run LaTeX (or PDFLaTeX) at least twice to place the "LastPage" label properly and generate the correct page refeference.
In particular, put this up in your preamble:\usepackage{lastpage}Then, after each "\opening" (in the case of a single letter, there will only be one), put the line:
\usepackage{fancyhdr}
\fancyhead{}
\fancyfoot{}
\cfoot{\thepage{}~of~\pageref{LastPage}}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}\thispagestyle{fancy}Otherwise you will get page numbers on every page except for the first one.
[ Additionally, you may further customize the headings and footers making use of all of the nice features that come with the fancyhdr package. ]
No comments:
Post a Comment