Standard LaTeX allows you to extract the current page number using the thepage command. That’s an easy one. To get the total number of pages (ie: number of the last page) is a little more involved. To do this, you need to use the \lastpage package and use \pageref{LastPage}. For example: \usepackage{lastpage} … You are [...]
Posts Tagged ‘page numbers’
LaTeX page numbering
Posted: 29th June 2009 by Tim in LaTeXTags: document, LaTeX, layout, newpage, numbering, numbers, page numbers
Getting the page numbering right in LaTeX documents may not seem like a big deal, but it’s frustrating when it’s all wrong. Here’s a brief summary on how to get it sorted. For starters, page numbers will appear on all pages which have a page style of plain, headings or myheadings (ie: anything other than [...]