{page-numbering} is about how (La)TeX numbers pages and how page numbering can be influenced.

learn more… | top users | synonyms (1)

14
votes
1answer
5k views

Page Numbers and Margins

I am sure this is a very simple question, but here it goes. I am writing a document (using the report document class) that requires one inch margins on the top and bottom of the page. I used the ...
13
votes
2answers
20k views

Page numbering - removing page number from first page

How do you turn off page numbering from the first page in a LaTeX document?
13
votes
2answers
16k views

Top right side page numbering

I want the numbers of pages to be placed at the top right side. I try to do it like this \documentclass[12pt]{article} \usepackage{fancyhdr} \begin{document} \lhead{} \chead{} \rhead{\thepage} \...
13
votes
1answer
192 views

Is it possible to specify page numbers that are words, e.g. “Title”?

I suppose this might also go on SuperUser, but I'm only interested in it insofar as implementing it in LaTeX, so I'll ask here. I feel certain that I've seen PDF's where the actual PDF page number of ...
13
votes
1answer
10k views

Best way to remove page numbers from a TOC?

What is the best way to remove Page Numbers from a Multi-Page TOC without touching the \pagestyle or \thispagestyle? I've seen this post already, but I want to find out if there are more ways to ...
13
votes
1answer
23k views

Removing page number from ToC

How to remove the page number from the table of contents page?
13
votes
4answers
1k views

Change the base of the numeration

In a document, is it possible to change the base in which the numeration is written? The default numeration is decimal, but I would like to use an octal or hexadecimal numeration for instance. Also, ...
13
votes
1answer
399 views

How to know the number of pages in a PDF file?

I use graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?
13
votes
1answer
10k views

How to customize the page header and the page number of classicthesis?

I am using the classicthesis package and would like to customize the page headers and the page numbers. Here is a test project that shows the problem. \documentclass[dottedtoc, headinclude, ...
13
votes
1answer
5k views

Page numbering at the top centre

I'm trying to place page numbering at the top centre (as required by submission guidelines at my university). It should be a very easy thing to do, but it seems impossible... I spent a day ...
13
votes
1answer
315 views

Any progress on Knuth-Plass algorithm?

The pagination problem as posed by Donald Knuth and Michael Plasss is an NP-complete problem. At an intuitive level, this problem is related to the packing problem, so quite difficult to solve. ...
12
votes
1answer
19k views

How can I lower position of page number?

\documentclass{mwrep} %margins \usepackage{anysize} \marginsize{3cm}{3cm}{2cm}{2cm} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{}\chead{}\rhead{}\lfoot{}\cfoot{}\rfoot{\...
12
votes
3answers
739 views

Setting Initial Page number on command-line

I would like to typeset a LaTeX file and set the initial page number from the command line (as I need to often change it to merge with different documents). I thought that the following would work, ...
12
votes
4answers
17k views

Table of Contents incorrect page numbering

I am using the following code. \newpage \section*{Abstract} \addcontentsline{toc}{section}{Abstract} \newpage \tableofcontents \addcontentsline{toc}{section}{Table of Contents} \newpage \...
12
votes
1answer
7k views

Landscape and page numbers with pdfpages

I am using pdfpages to insert PDFs into a master file. Some of the PDFs are portrait and some are landscape. I am using pagecommand=\thispagestyle{plain} so that the page numbers are in sequence ...
12
votes
1answer
4k views

Roman Page Numbering for TOC in Article

I'm writing something with the article class, and I'd like to have the table of contents pages numbered with roman numerals, and in addition and most importantly: to have the arabic numbers reset ...
12
votes
1answer
3k views

Changing page number location

I need to do the following: For the first page of every section, the page number should be at the bottom and centered. The text should stop one "double space" above it. For all other pages, the ...
12
votes
1answer
173 views

Custom “counter” as page number substitute

I'm trying to typeset a book, covering a world trip. Instead of standard page numbers, I want each page to correspond with a digit representing driven kilometers. Of course I can't manually set that ...
11
votes
2answers
868 views

Page number in Fibonacci style

How to display the page number in Fibonacci. Example: Normal page number 1, 2, 3, 4, 5, 6, 7, 8,... Fibonnacci page number style: 1, 1, 2, 3, 5, 8, 13, ...
11
votes
2answers
7k views

Custom page numbering for appendix

For an appendix I want a page numbering which goes like A1, A2, ... How to do that? With \pagenumbering{...} I can only choose between arabic and roman numbering.
11
votes
1answer
11k views

Continuing Page Numbering (Roman to Arabic)

I'm here with weird stuff again. How can i continue numbering while changing numbering style to Arabic from Roman? For example let's assume I have total of 7 pages and I want to number the first 3 of ...
11
votes
2answers
3k views

How to make page numbering continuous after a second \mainmatter?

I am writing a document with multiple \mainmatters and \backmatters. The structure is basically: ... \mainmatter \backmatter ... \mainmatter \backmatter ... Is there a simple way of preventing ...
11
votes
1answer
309 views

Replace individual page numbers with mathematical expressions

I'd like to replace a few individual page numbers in a document with mathematical expressions, like $a^0$ for page 1, $2(2)^1$ for 4, etc. I don't have a ToC or index, so I'm not concerned about the ...
10
votes
3answers
3k views

Stop page count before appendix

I'm trying to find a way to stop the page count in my report. So the count stops, then it comes to the appendix. Then have a separate count for the appendix, with the footer also changing so when the ...
10
votes
2answers
4k views

Problem‎ with redefining \chapter{…} command‎

I want to change the definition of \chapter[...]{...} ‎to‎ \chapter[...]{...‎}‎‎‎\thispagestyle{empty}‎‎.‎ To do this, I'm using the code ‎below:‎ \documentclass{book} \let\origchapter\chapter \...
10
votes
4answers
192 views

Refer to the current page number, but not \thepage, but the real absolute

I want to get the real page number. If I use \thepage, I get problems, when I change the pagenumbering. For pagenumbering gobble, it disappears, if I change from arabic to roman, it resets the counter....
10
votes
2answers
2k views

OldStyle Numbers in Body Text Only—Lining Numbers Otherwise

My main font numbers are set to OldStyle. How can I set Lining numbers for: Titles (chapter, section, subsection, &c...), Beginning of enumeration, Page number, and Footnote numbers (but not ...
10
votes
2answers
4k views

Forcing page number to start from the title page

My code is the following: \documentclass[12pt,titlepage]{article} \usepackage{harvard} \usepackage{setspace} \usepackage{ifthen} \usepackage{booktabs} \usepackage{array} \usepackage{multirow} \...
10
votes
2answers
862 views

Page numbers vertically centered in the outer page margin

Even though it seems to be a non-standard position, I'd like to place my document's page numbers vertically centered in the outer page margin – i.e. where you usually have your thumb when you skim ...
10
votes
1answer
6k views

How to change page number location on ALL pages (including chapter pages) WITHOUT fancyhdr?

Question revised: What must I do to change the page number position on EVERY page (especially for chapters) WITHOUT using fancyhdr? Background and details: I've searched now for many, many hours ...
10
votes
2answers
333 views

Using totcount with lastpage

My goal is to achieve n of m type page numbering if the document has more than 1 page and no page numbers otherwise. I have no problem putting n of m page numbers thanks to How can I add "page # ...
10
votes
1answer
1k views

How to force a page to be odd

How can one trick LaTeX to believe that a given page is odd instead of even? Or alternatively call the odd-page header in a previously defined pagestyle? \thispagestyle{Somehow-define-that-i-want-...
10
votes
2answers
401 views

PDF page references in TeX4ht generated html?

I'm using TeX4ht to make html and epub versions of documents that are also processed to pdf. I'm unclear on how to include some kind of visual page references in the html and epub that correlate to ...
9
votes
3answers
633 views

Different \section for odd and even pages

I would like to make the section titles look different on even and odd pages. I have the following MnWE with the trivial approach. The problem is that you don't know that your section header gets ...
9
votes
4answers
7k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
9
votes
2answers
6k views

Beamer, page/frame numbers, buttons and Appendix slides

I am using beamer and I have a slide in an Appendix section. I hyper-reference it with a button. The Appendix does not appear as a section itself. The Appendix material is at the end of the code. I ...
9
votes
2answers
3k views

Gobble page numbers

In my document I have 5 pages that consist of the chapter name. I want these pages not to have page numbers displayed and not to contribute to the page numbering. This is what I am trying to achieve: ...
9
votes
1answer
17k views

Remove page number from just one (float) page?

Basically I have some text: \section{Section 1} TEXT TEXT TEXT Then I have an image: \begin{figure} \centering \includegraphics[scale=0.6]{images/rlexample.png} \caption{---} \label{rlexample} \...
9
votes
1answer
1k views

How to add a line to the Table of Contents without a page number

In my LaTeX document, I want to add some extra lines in the Table of Contents to show the general topic of the next section of chapters. The syntax I'm using right now, outlined in a quick example: \...
9
votes
4answers
7k views

how to remove page numbers from first page of chapters

My report requires page numbers to start from 1st chapter 1st page. So I use \pagenumbering{arabic} just before I do \include{tex_files/chapter1)Introduction} Now I want the page counting to ...
9
votes
3answers
7k views

Modifying the Page Numbers in the Table of Contents

Is there a way how I could make a section/chapter/any-heading which occurs on page x in my document to appear in the table of contents with the page x-1? (I am using scrbook) I'd like this result not ...
9
votes
1answer
7k views

Document class for a simple one-page assignment

I'm looking for a LaTeX document class which would fit a simple one-page assignment with mostly text. I'd still want sections and subsections like those in article, but would like: more vertical ...
9
votes
2answers
1k views

Page numbering at top of page [duplicate]

Possible Duplicate: How to customize headers and footers? How would I put my name and the page on my CV just like the image below? I would like to do it like the image below from the 2nd page ...
9
votes
1answer
169 views

Roman Numeral Justification Issue in Memoir TOC

I'm typesetting a book with lengthy frontmatter, but any roman numeral page numbers more than three characters are being pushed into the right margin of the TOC. How would I fix this? \documentclass[...
9
votes
5answers
2k views

How do I use locale numbering for page numbers, footers etc.?

I am new to LaTeX and was wondering if it is possible to use another language for page numbers (and any other automatic numbering). I read here: http://www.personal.ceu.hu/tex/pagestyl.htm \...
9
votes
1answer
313 views

Different page labels/numbering in PDF viewer

I am using the report class and would like to have front matter with a different numbering than the main matter. So I use Roman numbering at first and then Arabic numbering later on, but what I would ...
9
votes
3answers
5k views

Preserve page numbering in fancyhdr

I'm using the fancyhdr package to include a header on each page. In order to surpress the section title also being cited in the header of each page, I'm using the command \fancyhf{}, however this also ...
9
votes
1answer
378 views

How do I have two sets of page numbers in a document?

I want to have two sets of page numbers (P and p) in my document. The first one (P) is global, the second one (p) resets to 1 at some predefined points. So, the document will look like, Text P1/5 ...
9
votes
3answers
3k views

How to change the page number from even to odd while keeping the page as verso?

I'm writing a two-sided document with a binding margin. For certain reasons, I need to change the page number at some point, so what used to be an even-numbered page is now odd-numbered. This makes ...
9
votes
2answers
912 views

Get page numbering & page count of a given style

Given a set of page styles, for example plain and butter, in the memoir class how can get the page number and count for that given style? This seems like something that would already have been solved,...